#Mapping item texture to item name

1 messages · Page 1 of 1 (latest)

sage sedge
#

I've currently run into a problem revolving not knowing how to map any given item texture to their name. I'm using the "bedrock-samples-1.21.130.3" download to try to attempt this, but I'm still unable to find a solution. So for example, lets say I want to find the "acacia boat" name.

This is what the "...\resource_pack\textures\item_texture.json" gives me:

      "textures": [
        "textures/items/boat_oak",
        "textures/items/boat_spruce",
        "textures/items/boat_birch",
        "textures/items/boat_jungle",
        "textures/items/boat_acacia",
        "textures/items/boat_darkoak",
        "textures/items/mangrove_boat",
        "textures/items/bamboo_raft",
        "textures/items/cherry_boat",
        "textures/items/pale_oak_boat"
      ]
    },```

And this is what I'm trying to get from the "...\resource_pack\texts\en_US.lang":

```item.boat.acacia.name=Acacia Boat```

Now the missing part is finding the "item.boat.acacia.name" in whatever given file. There's some files that have hints on information like "...\metadata\vanilladata_modules\mojang-items.json" like this:

```    {
      "command_name": "minecraft:acacia_boat",
      "name": "minecraft:acacia_boat",
      "raw_id": 411,
      "serialization_id": "item.acacia_boat",
      "serialization_name": "minecraft:acacia_boat"
    },```
But you can still see the "serialization_id" doesnt actually equal the "item.boat.acacia.name" in the "en_US.lang". I'd really appreciate any help with this. Thank you in advance!
errant vapor
#

You can get the localisation key of an item using scripts in behaviour packs