#(BillGates) is it possible to check if a player is crawling?

1 messages · Page 1 of 1 (latest)

abstract grotto
#

when a player is crawling through a 1-block tall hole, is it possible to check that, like a .is_crawling?

neat muralBOT
#

(BillGates) is it possible to check if a player is crawling?

neat muralBOT
#

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>

orchid gate
#

i believe that is technically swimming

#

!t is_swimming

sterile hawkBOT
#
Possible Confusion

Did you mean to search for entitytag.swimming?

sterile hawkBOT
abstract grotto
#

nope, returned false

orchid gate
#

D:

abstract grotto
#

.is_sneaking doesn't do it either

#

this sounds like a feature request

lucid cape
#

Pretty sure that is swimming, unless something changed

#

But could try

#

!t pose

sterile hawkBOT
# lucid cape !t pose
Cannot Specify Searched Tag

Multiple possible tags: <NPCTag.pose[<name>]>, <NPCTag.has_pose[<name>]>, <LocationTag.with_pose[<entity>/<pitch>,<yaw>]>, <EntityTag.armor_pose>, <ItemTag.armor_pose>, <EntityTag.visual_pose>, <EntityTag.armor_pose_map>, <EntityTag.armor_pose_list>.

lucid cape
#

!t visual_pose

sterile hawkBOT
abstract grotto
#

yeah visual_pose returns swimming, but <player.swimming> returns false

#

im on latest dev, latest paper

lucid cape
#

It might be more strict then, I.e. only if the player is actually swimming in water

#

It's just a bukkit method, I.e. not any Denizen-specific logic

abstract grotto
#

hm so i could do if <player.visual_pose> == swimming && !<player.swimming>?

lucid cape
#

Probably yeah, or check if they're not in water

abstract grotto
#

alright imma try it out

#

yeah that works

#

is checking if crawling a viable feature request?

#

i feel like it should be native to denizen

lucid cape
#

Well, all it could do is pretty much that ^, I don't think there's any specific API method

abstract grotto
#

yeah paper and spigot's javadocs dont seem to have any specific event for that

#

oh well, i'll close this for now

upper echoBOT
#
Resolved

Thread closed as resolved.

#
Resolved

Thread closed as resolved.

brittle epoch
#

coming back to this to check if in the meantime something got changed ?

upper echoBOT
#
Thread Reopened

Thread was manually reopened by @brittle epoch.

brittle epoch
#

cause i would like to get the feature of <player.is_crawling>

sage eagle
brittle epoch
#

An procedure for?

long lynx
#

a procedure is like a custom tag

brittle epoch
#

Thanks👍