Skip to content

ItemStack

small_jiu edited this page May 26, 2022 · 31 revisions

item have 5 method to add:

// NBT's '"' need use ", // looks like "str": "this is string nbt", // and dont not use line feed

  1. "name@count@meta@nbt"

"minecraft:stone@2@10@{"str":"Hi_This_Is_Custom_Drop_Item"}"

// the item will not hava nbt // looks like 'name@count@meta@{}' 2. "name@count@meta"

"minecraft:stone@2@10"

// the item with use 'meta 0' // looks like 'name@count@0' 3. "name@count"

"minecraft:stone@2"

// the item with use '1 count' and 'meta 0' // looks like 'name@1@0' 4. "name"

"minecraft:stone"

  1. JsonObject

Clone this wiki locally