Disable block being able to be placed on air/water

Started by Griy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Disable block being able to be placed on air/water

I'm trying to make it so my block can't be placed in the air and water but I can't figure it out.

This is what I have for the procedure. It's not working so could someone tell me what I'm doing wrong? All it's doing right now is making me unable to place the block at all.
 

 

Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On your is air at block…
Sat, 11/07/2020 - 04:00

On your is air at block should have [y: {y-1}] instead of just [y: {-1}] You can use one of the math blocks to achieve this. Right now its scanning all blocks ay y level -1 lol

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ohh I'm an idiot lmao. Thank…
Sat, 11/07/2020 - 07:57

Ohh I'm an idiot lmao. Thank you so much, it works fine now! :)