Started by
owslashbacon
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make a block that has generated data on it that I am saving into NBT number tags. However, I need that data to be saved when the block is broken and replaced. Is there a simpler way to do this without hard coding the item drop when the block is broken, applying the NBT data to the item, and then having the item create a new block with the items NBT data applied when placed?
Did Anyone Find A Solution To This?
Create an itemstack variable.
When block is broken
Set itemstack variable to convert block into item.
Add nbt item data to the item from the block.
Spawn gem itemstack variable.
thank you :)
Does this work for multiplayer??
DiamondGamin Could you post a screenshot of the code? thank you!
Hey did this ever work? and if so can I see the code??