#Default NBT on an item?

8 messages · Page 1 of 1 (latest)

weak basin
#

How do I make it so a custom item always has default NBT? As in, if you simply use a /give command it will give you the item with the NBT, or JEI shows the item with the NBT?

maiden sableBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

weak basin
#

bump

weak basin
#

bump 2: electric boogaloo

dreamy minnow
#

Add the nbt along the item result on a recipe

#

Or be like me and add a inventoryChanged event incase the item is not craftable or something

#

Although i've heard that inventoryChanged isn't very consistent

atomic jasper
#

use ItemBuilder::component()
ItemBuilder is the whole spiel with event.create('mod:id') in the StartupEvents.Registry callback
Just chain .component(component-you-want-to-add)

My bad, forgot that components were added in 1.21. Sorry about that