spawn json nbt syntax
Closed this issue ยท 4 comments
According to the wiki it should be possible to specify nbt data in the spawn.json but I am having trouble figuring out what syntax is acceptable. I'm simply trying to change the name on the mobs that spawn.
{
"dimension": 0,
"mob": "animalium:bear",
"nbt": "{CustomName:}"
},
Do it like in the example here:
https://wiki.mcjty.eu/mods/index.php?title=InControl
i.e. just include the nbt as regular json. Don't put it in a string
I don't see anything on the wiki to let us know how meta data on a loot item should work. Is it just placed in the string like:
"item": "minecraft:wool:10"
or does it have a seperate tag like:
"item": "minecraft:wool",
"meta": 10
The wiki says this:
Note, everywhere in the rules below that you can specify items you can use the following notations:
minecraft:sand (just normal minecraft sand)
minecraft:stained_hardened_clay@13 (adds metadata 13)
With NBT (same format as for /give command): minecraft:stained_hardened_clay@13/{display:{Lore:["My Clay"]}}