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.