Disable block being able to be placed on air/water

Started by Griy on

Topic category: Help with modding (Java Edition)

Last seen on 04:30, 13. Apr 2022
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.
 

 

Last seen on 19:59, 3. Oct 2023
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

Last seen on 04:30, 13. Apr 2022
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! :)

Last seen on 19:59, 3. Oct 2023
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem :)
Sat, 11/07/2020 - 15:24

No problem :)