There are a ton of illegally placed spawners on my server. I want to create a command block that replaces them with air blocks whenever a player is near them rather than trying to hunt them all down and delete them myself. Is this possible?
How big is the area you need to plow through? And is it at aspecific y level? You can always set up armorstands which move every tick and detect their collision block and replace it with air if its a spawner, but this would only work for a line in 1 direction to be depleted of spawners
Rollback Post to RevisionRollBack
Ex-minecraft map maker
Somewhat of a datapack/command block engineer at your service...?
I need to pretty much clear out all of the spawners within around a thousand blocks of 0,0. y height up isn't so much of a concern, but they are placed all the way down to bedrock I'd suspect.
There are a ton of illegally placed spawners on my server. I want to create a command block that replaces them with air blocks whenever a player is near them rather than trying to hunt them all down and delete them myself. Is this possible?
How big is the area you need to plow through? And is it at aspecific y level? You can always set up armorstands which move every tick and detect their collision block and replace it with air if its a spawner, but this would only work for a line in 1 direction to be depleted of spawners
Ex-minecraft map maker
Somewhat of a datapack/command block engineer at your service...?
I need to pretty much clear out all of the spawners within around a thousand blocks of 0,0. y height up isn't so much of a concern, but they are placed all the way down to bedrock I'd suspect.
/execute @a ~~~ fill ~8~5~8 ~-8~-5~-8 air 0 replace mob_spawner
in a repeating command block with a 20 tick delay