1
Execute command help
I had figured this out on my world a week ago although my world didn't save. How do you make an execute command such that when you spawn a zombie into the game it creates a 3x3 stone block relative to its position? Thanks
2
It works now thank you
What I would do is tag any zombies immediately after /execute is run to keep track of which zombies the command had already been run at, in which case this chain of commands should work well on a loop:
/execute at @e[type=minecraft:zombie,tag=!zombie] run fill ~1 ~-1 ~1 ~-1 ~-1 ~-1 minecraft:stone
/tag @e[type=minecraft:zombie,tag=!zombie] add zombieI haven't tested that, but I think it should summon a 3x1x3 stone platform below any zombies immediately after they're detected and given the tag, preventing them from summoning more platforms.
