If I make a custom command using skript, is there any way to run it as an entity using /execute?
I have the following command defined, and it works fine when a player runs it:
and when I try to use /execute @e[type=Zombie,c=1] ~ ~ ~ /sktest, it returns the message "all invocations failed: /sktest". Is there any way around this, and if so, how do I format my command to work when executed as an entity?
(p.s: the /mm command comes from MythicMobs. The command format is correct, as proven by the fact that players can run it correctly)
I have the following command defined, and it works fine when a player runs it:
code_language.skript:
command /SkTest:
description: A thing
trigger:
set {x.%player%} to the player's x-coordinate
set {y.%player%} to the player's y-coordinate
set {z.%player%} to the player's z-coordinate
make player execute "/mm mobs spawn AHorse 1 world,%{x.%player%}%,%{y.%player%}%,%{z.%player%}%"
and when I try to use /execute @e[type=Zombie,c=1] ~ ~ ~ /sktest, it returns the message "all invocations failed: /sktest". Is there any way around this, and if so, how do I format my command to work when executed as an entity?
(p.s: the /mm command comes from MythicMobs. The command format is correct, as proven by the fact that players can run it correctly)