#detect blocks

1 messages · Page 1 of 1 (latest)

thick lintel
#

execute unless block ...

gleaming fiber
thick lintel
#

There's not really a good way to do that besides scanning the whole area

thick lintel
#

Basically, yeah

gleaming fiber
#

its a wildfire minigame where you gotta extinguish the fire and i gotta run something that detects if the fire is gone

thick lintel
#

Does the fire spawn at known/static locations?

gleaming fiber
thick lintel
#

Still, you can place markers at those locations so you can scan smaller individual areas

gleaming fiber
#

but what if theres no fire in that area and it ends the game while theres fire around

thick lintel
#

You can make it only end the game if all the markers find no fire

odd drum
#

I knew about execute if blocks

try it

otherwise, depending on the block type too, you could try something with /fill

oblique walrus
#

@gleaming fiber you can do execute store result success #inarea <scoreboard something> run fill <x> <y> <z> <x> <y> <z> fire replace glass

#

then execute if score #inarea <scoreboard something> matches 1 run fill <x> <y> <z> <x> <y> <z> glass replace fire

#

execute if score #inarea <scoreboard something> matches 0 run <command> then this should run anycommand you want if there is no fire

tulip wrenBOT
#
Question Closed

Your question, #1356307718729633812 (detect blocks), was resolved!

Original Message

#1356307718729633812 message

Duration open

1d2h26m

tulip wrenBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.

tulip wrenBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.