Minecraftforge: [1.13.2] BlockEvent.PlaceEvent not getting fired

Created on 15 Feb 2019  ·  3Comments  ·  Source: MinecraftForge/MinecraftForge

Hello, so i seems the BlockEvent.PlaceEvent event only get fired when placing a lily pad not any block.

Seems ForgeHooks#onPlaceItemIntoWorld seems to be commented out..

1.13 Bug Needs Update Stale

Most helpful comment

Seems to me this might be best addressed by splitting it into 2 separate events: a cancelable pre-placement event and an uncancelable post-placement notification event. The way it's set up now, it actually places the block and then tries to remove it if it gets canceled. That's not a cancel; that's an undo. Some blocks cause changes to neighboring blocks when placed and will be a pain to "reverse/rollback".

All 3 comments

Seems to me this might be best addressed by splitting it into 2 separate events: a cancelable pre-placement event and an uncancelable post-placement notification event. The way it's set up now, it actually places the block and then tries to remove it if it gets canceled. That's not a cancel; that's an undo. Some blocks cause changes to neighboring blocks when placed and will be a pain to "reverse/rollback".

This issue has been automatically marked as stale because it has not had activity in a long time. If this issue is still relevant and should remain open, please reply with a short explanation (e.g. "I have checked the code and this issue is still relevant because ___." or "Here's a screenshot of this issue on the latest version"). Thank you for your contributions!

This issue has been automatically closed because it has not had activity in a long time. Please feel free to reopen it or create a new issue.

Was this page helpful?
0 / 5 - 0 ratings