#[Solved] Custom component sync issue (I think)

1 messages · Page 1 of 1 (latest)

sharp cape
#

I am working on a mod that will, among other things, allow players to dye shulker boxes in a similar fashion to what Mojang recently added to bundles. I have this mostly working, including a custom item renderer, custom component type to store the color data, etc. However, whenever I reload the world, placed shulker boxes revert back to their vanilla color.

I have confirmed that my custom component is still present on the block itself via /data get block (pos), so I suspect there is some issue syncing that component to the block entity on the client side.

Here are a couple screenshots of several dyed shulker boxes I placed, then the same set of shulker boxes after reloading my test world.

Any help figuring this out would be greatly appreciated.

mossy loom
#

You're already handling BlockEntity#toInitialChunkDataNbt?

sharp cape
#

...

#

no

#

this is what I get for working past 1am

#

That did the trick. Thank you!

#

And now that it is past 2am, I should probably go to sleep.