#Make an entity execute a command

1 messages · Page 1 of 1 (latest)

nimble ore
#

I want to spawn a custom zombie from the MythicMobs plugin at the death location of any killed snowman. To do this, I would need to execute the command /spawnmob zomboid at the death location. However, apparently entities cannot execute commands.

How can I execute the command /spawnmob zomboid at the death location? If it helps, the /spawnmob command can have coordinates inputted into it. (/spawnmob zomboid 1 world,x,y,z)

Current Skript:

     victim is a snowman
     if attacker is a zombie:
          execute victim command "spawnmob zomboid"```
boreal kraken
#

well here's your answer (/spawnmob zomboid 1 world,x,y,z)

#

you just use the values of the location of victim

nimble ore
#

is location of victim already in the form x,y,z

boreal kraken
#

no

#

you'll need to get x coord of ... and such

nimble ore
#

Ok thanks! this worked

boreal kraken
#

technically the location of is redundant

#

you can use x coord of victim

nimble ore
#

👍 thanks