1
1.13 NBT
I arleady asked about testing if somebody has something in his inventory
How can I test the amount? And better: Has somebody a better "tutorial" than this confusing thingy: minecraft-de.gamepedia.com/NBT
How can I test the amount? And better: Has somebody a better "tutorial" than this confusing thingy: minecraft-de.gamepedia.com/NBT
5
I may also do a better NBT tutorial soon. Hope you are patient enough!
For now, you may use this NBT template if you want to:
Simply replace <item> with the ID of the item you want to detect. Here are some other tips you may want to use to your advantage:
{Inventory:[{id:"minecraft:<item>",Count:1b}]}
Simply replace <item> with the ID of the item you want to detect. Here are some other tips you may want to use to your advantage:
- You may modify the amount in the Count tag in order to specify a different amount for that item.
- You may also add a tag tag after that in order to detect specified data for that item as well.
- {Inventory:[{id:"minecraft:crafting_table"}]} detects players who have a Crafting Table in their inventory
- {Inventory:[{id:"minecraft:diamond_sword",tag:{Enchantments:[{id:"minecraft:sharpness"}]}}]} detects players who have a Wooden Sword with at least the Sharpness enchantment
Did you write that now or copied from your tutorial? Anyways thank you! I would like if you message me when you have written the tutorial!
You are welcome! The tutorial I will be writing should hopefully clear the confusion you are having right now. It may take a while, so please be patient once again!
:)
