Cancelling the "A block is placed" procedure

Started by thxlotl on Mon, 07/26/2021 - 02:33

Topic category: Help with modding (Java Edition)

Last seen on 18:21, 12. Aug 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Cancelling the "A block is placed" procedure
Mon, 07/26/2021 - 02:35 (edited)

I'm trying to make a block that can't be placed in the air and a couple of other different conditions and basically I'm trying to cancel the global event so that you can't place it when certain conditions aren't met since it messes up the placement of the block. I can go more in detail if it helps but there is a lot.
https://imgur.com/a/NUGPAvi

Edit: The problem I'm having is that it gets rid of the block but sort of creates a phantom item in your inventory rather than giving the item right back it doesn't even appear in your inventory until you pick up another one of the items.

Edited by thxlotl on Mon, 07/26/2021 - 02:35