#(skullfurious) Any way to teleport dogs, allays, other following pets with the player during a tel

64 messages · Page 1 of 1 (latest)

errant pike
#

Curious if anyone knows how I could iterate through all current following pets / entities to teleport them with the player.

misty haloBOT
#

(skullfurious) Any way to teleport dogs, allays, other following pets with the player during a tel

misty haloBOT
#

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.

digital socket
#

!c entity.owner

gloomy snowBOT
#
Possible Confusion

Did you mean to search for action?

digital socket
#

oop

gloomy snowBOT
#
Possible Confusion

Did you mean to search for mechanism owner?

digital socket
#

!t entity.owner

gloomy snowBOT
digital socket
#

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

errant pike
#

this thing

#

i dont think it can be owned

digital socket
#

ez

digital socket
errant pike
#

What does -> do

digital socket
#

adds to list

#

!lang data actions

gloomy snowBOT
# digital socket !lang data actions

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 ...

Group

Useful Lists

digital socket
#

List insert: '->': adds the input value as a single new entry in the list (see also 'List split'). Example: - define x:->:new_value

errant pike
#

is there a pets.add[<obj>]

#

or insert

#

i thought there was for some reason

digital socket
#

the -> is insert

#

wdym

errant pike
#

anyways, good to know there is a shorthand

digital socket
#

you mean a tag to insert stuff to lists?

errant pike
#

I thought there was an explicit way to type it out

digital socket
#

that'd be include

#

!t list.include

gloomy snowBOT
digital socket
#

!t list.insert

gloomy snowBOT
digital socket
gloomy snowBOT
digital socket
#

this one inserts stuff at a specific index

#

but for your pets thingy you wont need it

errant pike
#

Ah right on

digital socket
#

idk allay starts following player or something

#

no clue

errant pike
#

Yeah, I'll definitely look into it shortly.

#

I'll report back here when i get something working

buoyant geyser
#

!e player right clicks entity

gloomy snowBOT
# buoyant geyser !e player right clicks entity
Group

Player

**WARNING**

this event may in some cases double-fire, requiring usage of the 'ratelimit' command (like 'ratelimit <player> 1t') to prevent doubling actions.

Event Lines

player right clicks <entity>

Switches

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.

Triggers

when a player right clicks on an entity.

Has Player

Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<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...

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

Cancellable

True - this adds <context.cancelled> and determines cancelled + cancelled:false.

buoyant geyser
#

this sets who the allay starts following, can listen to this event to determine who the allay "belongs to"

#

@errant pike ^

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

gloomy snowBOT
# errant pike !search mount
Search Results

[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, ...

errant pike
#

!riding

#

!search riding

gloomy snowBOT
#
Possible Confusion

Did you mean to search for gliding?

errant pike
#

!search vehicle

gloomy snowBOT
# errant pike !search vehicle
Search Results

[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.

undone jungleBOT
#
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.)

#

@errant pike

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.