Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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 by 1Mangomaster1

  • 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.