#(kylo_011) MythicMob entity TP

37 messages · Page 1 of 1 (latest)

last prawn
#

Hello, I'm looking for a way so that I can TP a spawned mythic mob to a flagged location I set also how can I make an if statment that for example says :
if the entity moves 10 blocks away from the flagged location TP the entity to the flagged location.

sage palmBOT
#

(kylo_011) MythicMob entity TP

sage palmBOT
#

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.

last prawn
#

Or how can I make the spawned entity move to a specific flagged location

upper zephyr
#

!c walk

chrome skiffBOT
# upper zephyr !c walk
Group

entity

Syntax

walk (<entity>|...) [<location>/stop] (speed:<#.#>) (auto_range) (radius:<#.#>) (lookat:<location>)

Short Description

Causes an entity or list of entities to walk to another location.

Description

Causes an entity or list of entities to walk to another location.

Specify a destination location to walk to, or 'stop' to stop all walking.

Optionally, specify a "speed:<#.#>" argument to control the speed of the NPCs.

Optionally, specify "auto_range" to automatically set the path range for the walk instruction
(if not specified, an NPC will not be able to walk to a location outside of its existing path range, by default 25 blocks).
(Does not apply to non-NPC entities).

Note that in most cas...

upper zephyr
#

Or

#

!c teleport

chrome skiffBOT
# upper zephyr !c teleport
Group

entity

Syntax

teleport (<entity>|...) [<location>] (cause:<cause>) (entity_options:<option>|...) (relative) (relative_axes:<axis>|...) (offthread_repeat:<#>) (offthread_yaw) (offthread_pitch)

Short Description

Teleports the entity(s) to a new location.

Description

Teleports the entity or entities to the new location.
Entities can be teleported between worlds using this command.
You may optionally specify a teleport cause for player entities, allowing proper teleport event handling. When not specified, this is "PLUGIN". See !language teleport cause for causes.

Instead of a valid entity, an unspawned NPC or an offline player may also be used.

Optionally specify "relative" to use relative teleportation (Paper only). This is primarily useful only for...

upper zephyr
#

However, if you want an entity to go back or get teleported back to a specific noted area.

#

Consider..

#

!c entity exits area

chrome skiffBOT
#
Possible Confusion

Did you mean to search for equip?

upper zephyr
#

Er

chrome skiffBOT
#
Possible Confusion

Did you mean to search for mechanism quantity?

upper zephyr
#

!e entity exits area

chrome skiffBOT
upper zephyr
#

!e entity enters|exists

chrome skiffBOT
#
Possible Confusion

Did you mean to search for entity enters|exits area?

upper zephyr
#

Okay

chrome skiffBOT
# upper zephyr !e entity enters|exists
Group

Entity

**WARNING**

cancelling this event will have different results depending on the cause. Teleporting the entity away 1 tick later might be safer.

Event Lines

<entity> enters|exits <area>

Triggers

when an entity enters or exits a noted area (cuboid, ellipsoid, or polygon). On Spigot servers, only fires for players. Paper is required for other mob types.

Has Player

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

Context

<context.area> returns the area object that was entered or exited.
<context.cause> returns the cause of the event. Can be: WALK, WORLD_CHANGE, JOIN, QUIT, TELEPORT, VEHICLE.
<context.to> returns the location the entity moved to (might not be available in exit events).
<context.from> returns the location the entity moved from (when available, depending on cause).
<context.entity> returns the entity that entered/exited an area.

Cancellable

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

upper zephyr
#

Use this event for entities entering and leaving noted areas.

#

Be mindful of that teleporting suggestion.

#

I suppose alternatively you could consider

#

!e entity pathfinds

chrome skiffBOT
# upper zephyr !e entity pathfinds
Required Plugins or Platforms

Paper

Group

Paper

Event Lines

<entity> pathfinds

Switches

to:<area> to only process the event if the entity is pathfinding into a specified area.
at:<entity> to only process the event when the entity is pathfinding at a specified entity.

Triggers

when an entity starts pathfinding towards a location or entity.

Has Player

when the target entity is a player. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Has NPC

when the target entity is an NPC.

Context

<context.entity> returns the EntityTag that is pathfinding.
<context.location> returns the LocationTag that is being pathfound to.
<context.target> returns the EntityTag that is being targeted, if any.

Has Known Location

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

Cancellable

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

upper zephyr
#

And check if the location matches any blocks in your areaobject blocks.

#

Or uh

#

!t locationtag.is_in

chrome skiffBOT
upper zephyr
last prawn
#

thanks

haughty citrusBOT
#
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.)

#

@last prawn