1

Execute command help

AgilityDude 3/17/19 9:36 am
207
3/17/2019 10:57 am
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
Posted by
AgilityDude
Level 1 : New Miner
0

  Have something to say?

JoinSign in

2

AgilityDude
03/17/2019 10:57 am
Level 1 : New Miner
It works now thank you
1
Jewelman
03/17/2019 10:37 am
He/Him • Level 54 : Grandmaster Dog
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 zombie
I 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.
1

Welcome