I'm creating an item where when you right click it creates a structure, and I've gotten it to the point where it places the structure. The issue is that I have to relog in order to see the structure. I think the structure could be loading in the ServerWorld but not the ClientWorld? If this is the case how can I make it load in the ClientWorld?
#Structure Placement Rendering issues
1 messages · Page 1 of 1 (latest)
you are passing the Block.NOTIFY_NEIGHBORS flag but not the Block.NOTIFY_LISTENERS flag
if you want blocks around the structure to update (torches, grass, water, etc), you have to notify neighbors.
if you want things to re-render and such, you have to notify listeners
Block.NOTIFY_ALL is value 3 (2+1).
alternatively you can or values together: Block.NOTIFY_NEIGHBORS | Block.NOTIFY_LISTENERS | FORCE_STATE for example
(value 19 = 1 + 2 + 16)
(0b010011 = 000001 OR 000010 OR 010000)