#detect blocks
1 messages · Page 1 of 1 (latest)
no i mean, in a ~100x50 block area
There's not really a good way to do that besides scanning the whole area
block by block?
Basically, yeah
holy 😭
is there a way to go around that
its a wildfire minigame where you gotta extinguish the fire and i gotta run something that detects if the fire is gone
Does the fire spawn at known/static locations?
yea but it spreads
Still, you can place markers at those locations so you can scan smaller individual areas
but what if theres no fire in that area and it ends the game while theres fire around
You can make it only end the game if all the markers find no fire
I knew about execute if blocks
try it
otherwise, depending on the block type too, you could try something with /fill
@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
Your question, #1356307718729633812 (detect blocks), was resolved!
#1356307718729633812 message
1d2h26m
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.
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.