#Is it possible to change food component of specific item after its been initialized?
12 messages · Page 1 of 1 (latest)
default food component?
new FoodComponent and also preferrably ConsumableComponent.Builder().build()
no, i mean default components that are set during item registration
anything else, you can only set on an itemstack
does that mean i can change the settings.food() thing?
yes
declaration: package: net.fabricmc.fabric.api.item.v1, class: DefaultItemComponentEvents
can you show an example of how i can do this
i don't have one
yo, i searched a bit more about "components" and found the ItemStack.set() func which worked only for specific item stack