#(phromge) match_player but for entities

44 messages · Page 1 of 1 (latest)

karmic hawk
#

Hi, Is something like match_player an option for entities?

im tyring to do - define target_entity <entity[<context.args.get[1]>]> or <entity.uuid[<context.args.get[1]>]> (its for linking something from another plugin) but it doesnt seem to work

untold berryBOT
#

(phromge) match_player but for entities

untold berryBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

spare owl
#

what specifically are you trying to do?

karmic hawk
# spare owl what specifically are you trying to do?

Its kinda hard to explain but another plugin can only supply the mobs uuid via its placeholder system, so it runs that command like /command {mobuuid} so id like to be able to define that mob via the supplied uuid so I can do denizen things to it

spare owl
#

you can use the <entity[uuid]> tag to construct an EntityTag

#

!l entitytag

gritty pineBOT
#
Possible Confusion

Did you mean to search for objecttags?

spare owl
#

!object entitytag

gritty pineBOT
# spare owl !object entitytag

An EntityTag represents a spawned entity, or a generic entity type.

Note that players and NPCs are valid EntityTags, but are generally represented by the more specific
PlayerTag and NPCTag objects.

Note that a spawned entity can be a living entity (a player, NPC, or mob) or a nonliving entity (a painting, item frame, etc).

This object type is flaggable.
Flags on this object type will be stored in the world chunk files as a part of the entity's NBT.

Prefix

e

Base Type

ElementTag

Implements

FlaggableObject, PropertyHolderObject

Format

The identity format for entities is a spawned entity's UUID, or an entity type.
For example, 'e@abc123' or 'e@zombie'.

karmic hawk
#

whenever i do that i just get an error :l

spare owl
#

!haste

gritty pineBOT
karmic hawk
spare owl
#

server.match_player shouldn't be used here since it's not a player

karmic hawk
#

it can be a player though

#

i want it to check if its a player

#

if its not then its a mob

#

the mob uuid part is the only part im having trouble with

spare owl
#

can you run a debug?

#

!debug

gritty pineBOT
# spare owl !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

karmic hawk
#

it works on my test server but not my main one, wth

spare owl
karmic hawk
#

is there a special one to do, b/c the normal one isnt very interesting

[05:20:38 INFO]: Additional Error Info: Tag-base 'entity' returned null. 
[05:20:38 INFO]: Additional Error Info: Tag <entity[6551a335-621f-41f3-8895-20e9a4672]> is invalid! 
[05:20:38 INFO]: Additional Error Info: Unfilled or unrecognized sub-tag(s) 'entity[6551a335-621f-41f3-8895-20e9a4672]' for tag <entity[<context.args.get[1]>```
#

sorry im having to ask someone to send me them lol

#

i had a issue with stuff not working the other day that should work too

spare owl
#

i think i may see your issue, but it's a bit niche...

#

your first debug had an entity uuid of a6f992cc-95ef-4fd5-a7b1-f37764644e33

#

your second debug had an entity uuid of 6551a335-621f-41f3-8895-20e9a4672

#

if you notice, the first one is a proper uuid with 32 digits

#

the second one is not

karmic hawk
#

the first one was an armadillo and the second was a llama

#

maybe i can ask our dev for more help :l

#

this is why i dont have perms...

spare owl
karmic hawk
#

maybe its not copied properly

#

thanks for help i will ask

analog belfryBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@karmic hawk