#(Darwin) on player steps IN block

32 messages · Page 1 of 1 (latest)

midnight pawn
#

just like on player steps on block but checks <player.location> instead of <player.location.below>
useful for water, lava, grass blocks etc

quiet juniperBOT
#

(fuckdisc_rd) on player steps IN block

#

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 block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

halcyon mistBOT
#
Changed to Feature

Thread is now a Feature thread. This indicates a request for a new feature to the plugin, that both (A) does not already exist and (B) reasonably can be added. If you are unsure whether this applies, use </helpthread:1028674284870180883> to change back to a normal help thread.

midnight pawn
#

(Darwin) on player steps IN block

halcyon mistBOT
#
Marked Invalid

Thread closed as invalid.

midnight pawn
#

can I bump this?

halcyon mistBOT
#
Thread Reopened

Thread was manually reopened by @midnight pawn.

knotty axle
#

Monkey rejected it

midnight pawn
#

nah. he banned me

knotty axle
#

oh gotcha

supple hamlet
#

perhaps use the player walks in conjunction with the collides_at tag?

#

!e player walks

finite tinselBOT
# supple hamlet !e player walks
Group

Player

**WARNING**

This event fires very very rapidly!

Event Lines

player walks

Triggers

when a player moves in the slightest.

Has Player

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

Context

<context.old_location> returns the location of where the player was.
<context.new_location> returns the location of where the player is.

Has Known Location

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

Cancellable

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

supple hamlet
#

!t collides_at

finite tinselBOT
# supple hamlet !t collides_at

Returns whether the entity's bounding box would collide if the entity was moved to the given location.
This checks for any colliding entities (like boats and shulkers), the world border and regular blocks.
(Note that this won't load chunks at the location.)

Required Plugins or Platforms

Paper

Group

paper

Returns

ElementTag(Boolean)

supple hamlet
#

actually, im unsure if it'd work for liquids & grass

#

let me check o.o

#

okay so, <player.collides_at[<player.location.up[1]>]> returns true

#

so you could check using that tag with the event above

midnight pawn
# supple hamlet so you could check using that tag with the event above

why walks?
why collides?

I could use

    on player steps on block:
    - if <context.new_location> matches water

But the thing is I have a lot cases when I need to check player location material.
Like right now I'm making rabies disease and I want water damage infected players.
Or I need to check if player steps on 1 layer snow.

I know it's a small optimization but if there is a lot of player steps events it could have performance impact.
And switches work faster than if checks inside an event.
Plus it's just a nice clean shortcut

supple hamlet
#

you could use the steps one as well, collides checks for any collision with the player and other blocks (like tall grass, liquids) but doesn't seem to work with snow

halcyon mistBOT
#
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.)

#

Error: Missing thread owner. Did they leave the Discord? If so, just use </resolved:1028673926114594866> yourself.

supple hamlet
#

ah right