#(evermore2k23) Make a cuboid?!
14 messages · Page 1 of 1 (latest)
(evermore2k23) Make a cuboid?!
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.
You can make and note areas (cuboids, ellipsoids, spheres, polygons) easily using this Drop-In Ready area selector tool script: https://forum.denizenscript.com/resources/area-selector-tool.1/.
Thank you, and now how can I check if a player enters this area?
!e enters area
Did you mean to search for entity enters|exits area?
Entity
cancelling this event will have different results depending on the cause. Teleporting the entity away 1 tick later might be safer.
<entity> enters|exits <area>
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.
When the entity is a player. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
<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.
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
thar
Works, thanks.