Skip to content

Commit

Permalink
Update custom-item.md
Browse files Browse the repository at this point in the history
changed  the item shortname definition to match the allowed pattern of "^[a-z0-9_:\-]*$".
  • Loading branch information
MinecraftBedrockArabic authored Nov 6, 2024
1 parent 1962767 commit 47281dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/guide/custom-item.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,14 @@ Under `texture_data` will our list of item shortname definitions. An example def
<CodeHeader>RP/textures/item_texture.json/texture_data</CodeHeader>

```json
"wiki.ectoplasm": {
"wiki_ectoplasm": {
"textures": "textures/items/ectoplasm"
}
```

Here `wiki.ectoplasm` is our shortname and under `textures` we have the path to our item. Notice that this is relative to the resource pack, and does not include the file extension. Your shortname should be short and unique. We recommend setting it as the namespace and id for the item we are assigning it to.
Here `wiki_ectoplasm` is our shortname and under `textures` we have the path to our item. Notice that this is relative to the resource pack, and does not include the file extension. Your shortname should be short and unique. We recommend setting it as the namespace and id for the item we are assigning it to.

Now whenever we want to refer our image, we will use the shortname `wiki.ectoplasm`.
Now whenever we want to refer our image, we will use the shortname `wiki_ectoplasm`.

### Icon

Expand All @@ -221,7 +221,7 @@ To finally apply our texture to our item, we add the `minecraft:icon` component
```json
"components": {
"minecraft:max_stack_size": 16,
"minecraft:icon": "wiki.ectoplasm"
"minecraft:icon": "wiki_ectoplasm"
}
```

Expand Down Expand Up @@ -277,7 +277,7 @@ Your folder structure should look like this:
},
"components": {
"minecraft:max_stack_size": 16,
"minecraft:icon": "wiki.ectoplasm"
"minecraft:icon": "wiki_ectoplasm"
}
}
}
Expand All @@ -294,7 +294,7 @@ Your folder structure should look like this:
"resource_pack_name": "Ghostly Guide",
"texture_name": "atlas.items",
"texture_data": {
"wiki.ectoplasm": {
"wiki_ectoplasm": {
"textures": "textures/items/ectoplasm"
}
}
Expand Down

0 comments on commit 47281dd

Please sign in to comment.