Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Adding Items

Minimine edited this page Apr 28, 2018 · 1 revision

JSON format

{
  "items": [
    {
      "id": 1,
      "parent": "diamond_sword",
      "texture": "blocks/birch_log"
    },
    {
      "id": 2,
      "parent": "diamond_sword",
      "model": "block/anvil"
    }
  ]
}
  • For an item we have to manually define the parent. Because it has another parent as the diamond_hoe, we can take an id we already used for the blocks, the 1. Here we can just define one side of the texture, because an item texture has only one side. You can use the following parent types:
wooden_sword
golden_sword
stone_sword
iron_sword
diamond_sword
wooden_pickaxe
golden_pickaxe
stone_pickaxe
iron_pickaxe
diamond_pickaxe
wooden_shovel
golden_shovel
stone_shovel
iron_shovel
diamond_shovel
wooden_axe
golden_axe
stone_axe
iron_axe
diamond_axe
wooden_hoe
golden_hoe
stone_hoe
iron_hoe
diamond_hoe
leather_helmet
golden_helmet
chainmail_helmet
iron_helmet
diamond_helmet
leather_chestplate
golden_chestplate
chainmail_chestplate
iron_chestplate
diamond_chestplate
leather_leggings
golden_leggings
chainmail_leggings
iron_leggings
diamond_leggings
leather_boots
golden_boots
chainmail_boots
iron_boots
diamond_boots
elytra
carrot_on_a_stick
fishing_rod

To get the Item from the last example just type

/give @s minecraft:diamond_sword{Unbreakable:1b,Damage:1}
  • The second item is nearly the same as the first, but this time it has a custom model, no custom texture. With this model it will look like an anvil. To get it just type
/give @s minecraft:diamond_sword{Unbreakable:1b,Damage:2}
Clone this wiki locally