#(skullfurious) Any way to teleport dogs, allays, other following pets with the player during a tel
64 messages · Page 1 of 1 (latest)
(skullfurious) Any way to teleport dogs, allays, other following pets with the player during a tel
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.
!c entity.owner
Did you mean to search for action?
oop
Did you mean to search for mechanism owner?
!t entity.owner
Returns the owner of a tamed entity.
properties
PlayerTag
EntityTag.owner
you can listen to the tames event and make a pets flag
for allays i got no clue since i dont even know what that is
pseudocode:
on tame:
- flag <player> pets:->:<entity>
ez
kinda looks like a vex
What does -> do
Several commands function as a way to modify data values,
including !command flag, !command yaml, and !command define.
These commands each allow for a set of generic data change operations.
These operations can be used with a syntax like "<key>:<action>:<value>"
For example "mykey:+:5" will add 5 to the value at 'mykey'.
The following actions are available:
Actions that take no input value:
Increment: '++': raises the value numerically up by 1. Example: - define x:++
Decrement: '--': lowers the value numerically down by 1. Example: - define x:--
Remove: '!': removes the value entirely. Example: - define x:!
Actions that take an input value:
Add: '+': adds the input value to the value at the key. Example: - define x:+:5
Subtract: '-': subtracts the input value from ...
Useful Lists
List insert: '->': adds the input value as a single new entry in the list (see also 'List split'). Example: - define x:->:new_value
anyways, good to know there is a shorthand
you mean a tag to insert stuff to lists?
I thought there was an explicit way to type it out
Returns a new ListTag including the items specified.
ListTag
# Narrates a list of "one|two|three|four"
- narrate <list[one|two].include[three|four]>
!t list.insert
Returns a new ListTag with the items specified inserted to the specified location.
Note the index input options described at !objecttype listtag
ListTag
# Narrates a list of "one|two|three|four"
- narrate <list[one|four].insert[two|three].at[2]>
this one inserts stuff at a specific index
but for your pets thingy you wont need it
Ah right on
well...... surely there's an event to listen to figure out if it should be added to the list?
idk allay starts following player or something
no clue
Yeah, I'll definitely look into it shortly.
I'll report back here when i get something working
!e player right clicks entity
Player
this event may in some cases double-fire, requiring usage of the 'ratelimit' command (like 'ratelimit <player> 1t') to prevent doubling actions.
player right clicks <entity>
with:<item> to only process the event when the player is holding a specified item.
type:<entity> to only run if the entity clicked matches the entity input.
when a player right clicks on an entity.
Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
<context.entity> returns the EntityTag the player is clicking on.
<context.item> returns the ItemTag the player is clicking with.
<context.hand> returns "offhand" or "mainhand" to indicate which hand was used to fire the event. ...
<context.click_position> returns a LocationTag of the click position (as a world-less vector, rela...
True - this adds switches in:<area> + location_flagged:<flag name>.
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
this sets who the allay starts following, can listen to this event to determine who the allay "belongs to"
@errant pike ^
Ah, good idea. I'm thinking of just making it so you slap a custom item on the NPC and that's what will determine that you own it. Maybe if it's a dog just convert it to a citizens NPC or something so I have more control.
!search mount
[Perfect Name Match] !Command mount,
[Partial Name Match] !Tag quaterniontag.slerp, !Mechanism playertag.fake_mount_health, !Tag entitytag.last_damage.amount,
[Semi-Strong Match] !Command wait, !Command playerpoints, !Event player changes xp, !Event entity enters vehicle, !Event entity exits vehicle,
[Semi-Decent Match] !Command hurt, !Command shoot, !Command light, !Command quests, !Command feed, !Command heal, !Command tick, !Command repeat, !Action death, !Command oxygen, !Command fakespawn, !Command worldborder, !Command discordconnect, !Mechanism jobsjobtag.xp, !Mechanism materialtag.count, !Mechanism tradetag.uses, !Tag towntag.plottax, !Tag materialtag.count, !Tag tradetag.uses, !Property materialtag.count, !Property tradetag.uses, !Event entity breeds, !Tag factiontag.size, !Tag playertag.money, !Language pushable trait, !Command fakeinternaldata, !Tag factiontag.power, !Tag cuboidtag.expand, !Tag locationtag.drops, !Tag locationtag.light, !Event vehicle damaged, !Mechanism entitytag.damage, !Mechanism entitytag.health, !Mechanism entitytag.temper, !Mechanism materialtag.level, !Mechanism tradetag.max_uses, !Tag jobsjobtag.max_xp, !Tag entitytag.damage, !Tag entitytag.temper, !Tag itemtag.with_flag, !Tag materialtag.level, ...
[Semi-Decent Match] !Command tick,
[Just Barely Matched] !Command equip.
Did you mean to search for gliding?
!search vehicle
[Partial Name Match] !Event vehicle moves, !Event vehicle created, !Event vehicle damaged, !Tag entitytag.vehicle, !Event vehicle destroyed, !Event entity exits vehicle, !Event entity enters vehicle, !Tag entitytag.is_inside_vehicle, !Event vehicle collides with block, !Event vehicle collides with entity,
[Semi-Strong Match] !Event player steers entity,
[Semi-Decent Match] !Command mount, !Event entity enters|exits area,
[Just Barely Matched] !Command equip.
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.)
@errant pike
For anyone curious, I just did a find within check and teleport them using that. Just making sure the dogs are owned by the player.