need help checking if a block is underground

Started by ellingtonisland on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
need help checking if a block is underground
Sat, 09/16/2023 - 00:21 (edited)

i need help creating a procedure that will check if a block at x,y,z location is underground 

the block i am placing is a light that turns on and off automatically and if placed underground it needs to come on even if something with a light level of 15 is placed right next to it.

Edited by ellingtonisland on Sat, 09/16/2023 - 00:21
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a procedure block…
Sat, 09/23/2023 - 01:41

There is a procedure block under world called "can location at x y z see the sky". This should check if there is anything above the block, either directly, or far up. You can further specify using the "is biome tagged as (cave or other underground biome name as seen in the F3 menu)".