Posted May 3, 20223 yr I've noticed that data that is on the BlockEntity remains if I break and place the block again. However, if I place annother block that requires a block entity, break it, and place the original block back, it resets. Also, if I place that block anywhere else the data does not reamin, but placing it on that position where it was changed keeps that data I suspect that perhaps the BlockEntity is not "destroyed" when the block is, and actually remains there altho there's no air in there and not the block that previously was there... I thought it is something MC is supposed to do on its own, I don't get any console errors or anything but when I checked I noticed there are some BlockEntites of my blocks that the block in their position is air, and those positions are ones my blocks were placed before... Quitting and joining the world resets this. Why does it happen and how can I fix this? EDIT: The BlockEntity only changes if I place another block in that position THAT ALSO HAS A BLOCK ENTITY! If I place a block that does not implement EntityBlock, then that BlockEntity stays there I have noticed Level#removeBlockEntity, but I assume I am not supposed to use that on every Block#onBreak... it just makes no sense.. does MC not supposed to do it on its own? Edited May 3, 20223 yr by 1Mangomaster1
May 3, 20223 yr Author Oh.. Appearntly I did not do super Block#onRemove.... that was dumb of me... sorry for this whole thing but if anyone does the same mistake as me... here's why it happens!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.