(Question) Passing a target to a new spell?
NightScythe1 opened this issue ยท 2 comments
Is there any way to pass a target to a new spell via something like the 'Cast' action? I have quite a complex spell system set up in a Magic Mob's interact spell, with multiple 'Cast' actions within it, but I want to keep the original target (as interact_spell_target
is set to 'mob').
Unless there is already a way to do this, perhaps could we have a parameter for the 'Cast' action such as keep_target
?
Hm I think the easiest path is if I add something like "$target_uuid" as a variable you could use in the second spell, like entity: $target_uuid
We do have $uuid
already but I can't remember if that works in spell parameters, I think it may only work in commands and messages. So this may not be a super easy add, I will keep it on my very-slowly-moving list.
Oh actually, there does seem to be a $tuuid
placeholder for the target uuid, but as you said it only seems to be for commands or messages. I'll give it a try in parameters though, as I didn't realise the entity
parameter could use uuids which is very handy! In any case, thanks for adding it to the list!