an example code:
command /LiveForThreeSecond:
trigger:
spawn cow
set {_theCow} to last spawned cow
wait 3 seconds
delete {_theCow}
The delete {_theCow} effect just deleting a variable. But we can not delete the spawned cow with using a variable.
Maybe you can use this effect: delete random element of {_theCow} or delete random element of {_theCows::*} (save the cow in a list variable.)
So, i think developers should add an effect like this: delete entity of {_theCow}
an example code:
The
delete {_theCow}effect just deleting a variable. But we can not delete the spawned cow with using a variable.Maybe you can use this effect:
delete random element of {_theCow}ordelete random element of {_theCows::*}(save the cow in a list variable.)So, i think developers should add an effect like this:
delete entity of {_theCow}