#Actor entities?

1 messages · Page 1 of 1 (latest)

floral sparrow
#

Heya!

So, for example, let's say I have a cutscene in mc, which uses entities as "pawns" (moves them around, check from their perspective, etc.)

Should I js use tags, or would it be more effitient/better to "assign" those entities' uuids to a specific "tag" in a storage?

For example, I don't call out to any entity with the tag "mister7", but rather when the specific entity is summoned, it's assigned to a "variable" inside a storage.
/data modify storage example actors append from entity @s UUID (or something like that)

And then the function is ran with macros?

Example Usage:
function example:as_actor {"actor":"mister7","command":"function example:actor/mister7"}

:function example:as_actor:
$data modify storage example actor.id set from storage example actors."$(actor)" $data modify storage example actor.c set value $(command) function example:_as_actor with storage example actor

function example:_as_actor:
$execute as $(id) run $(c)

function example:actor/mister7:
say Example

(^ not tested, js how I think it could work)

Is it better to stick to tags, or should I use a system like that (I do have patience to implement it), and if so, how would you improve this concept?

dark magnetBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1748320188:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

verbal slate
#

Tags, for sure

floral sparrow
#

Alright

#

👍✌️