A block is placed

Event trigger "A block is placed": a procedure using it starts when this happens in the game. It gives the procedure world, entity, blockstate, placedagainst, x, y, z, px, py, pz. The event can be canceled.

WhenA block is placed
Cancelable
Yes
Works with
NeoForge 26.1.2NeoForge 1.21.1

Values it gives the procedure

NameType
worldworld
entityentity
blockstateblockstate
placedagainstblockstate
xnumber
ynumber
znumber
pxnumber
pynumber
pznumber

How to use it

  1. Create a new procedure.
  2. Click the trigger at the top of the block area and pick A block is placed.
  3. Snap action blocks under it. Use the values above as dependencies, for example world.
  4. To stop the event from happening, add the Cancel event block.