Add a command to replace all sponges with mossy cobblestone walls, but only in a 50 block radius of the nearest baby zombie pigman with slowness II

๐ŸŽ™๏ธ reythedrummer ยท 41 points ยท Posted at 00:45:06 on August 9, 2018 ยท (Permalink)


The aquatic update was cool and all, but I have a world with a lot of sponges, and I need to turn them into mossy cobblestone walls. Luckily there's a baby zombie pig man with slowness 2 and all the sponges are in a 50 block radius of him. So why can't I do a command for this scenario!? Mojang, step up your game.

Athame-The-Voidindex ยท 13 points ยท Posted at 03:44:18 on August 9, 2018 ยท (Permalink)

Sadly due to the limitations of the fill command it has a radius of 30, but otherwise it is exactly as you asked for:

/execute as @e[type=minecraft:zombie_pigman,sort=nearest,nbt={IsBaby:1b,ActiveEffects:[{Id:2b,Amplifier:1b}]}] at @s run fill ~15 ~15 ~15 ~-15 ~-15 ~-15 minecraft:mossy_cobblestone_wall replace minecraft:sponge

๐ŸŽ™๏ธ reythedrummer ยท 5 points ยท Posted at 12:49:18 on August 9, 2018 ยท (Permalink)

Good

Cattack64 ยท 3 points ยท Posted at 03:59:19 on August 9, 2018 ยท (Permalink)

Good job

Mince_rafter ยท 2 points ยท Posted at 02:08:02 on August 10, 2018 ยท (Permalink)

That's the joke, the command exists, but the range limitation makes it unusable for the described purpose, so technically there isn't one single command that serves the purpose.

Axoladdy ยท 10 points ยท Posted at 02:38:00 on August 9, 2018 ยท (Permalink)

Im almost certain you can actually set up a command block machine to pull this off lol.

pud_ ยท 7 points ยท Posted at 03:15:51 on August 9, 2018 ยท (Permalink)

But theres no single command that does specifically this, for shame mojang

Axoladdy ยท 3 points ยท Posted at 04:59:38 on August 9, 2018 ยท (Permalink)

Oh yes indeed.

S H A M E

TotesMessenger ยท 2 points ยท Posted at 12:54:35 on August 9, 2018 ยท (Permalink)

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

ย If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)

blattoid ยท 1 points ยท Posted at 11:20:09 on August 9, 2018 ยท (Permalink)

This could simplify mob grinders.

MathCatRules11 ยท 0 points ยท Posted at 03:42:40 on August 9, 2018 ยท (Permalink)

This is pure gold