#Check entity motion

1 messages · Page 1 of 1 (latest)

patent spade
#

How do i check if a players x and y motion is zero

#

execute if data only allows for checking the entire array of motion values

[nbt={}] is basically the same

i can't execute store result score because the values will be rounded to 0 most of the time

mighty torrent
# patent spade How do i check if a players x and y motion is zero

for this kind of thing i usually just use an absurdly large scale-up, Y motion is technically a very slight downward movement when the player is standing on a surface (im assuming its gravity or something) so you can basically sub that result as the “0” for Y movement (e.g. iirc if you get Y movement at a scale of 1000 it comes out as -79)

patent spade
mighty torrent
#

oh did you mean x and z?

patent spade
#

yea

#

oops

mighty torrent
#

anyways same method would work, no? just large scale?

hard gust
#

I think u'll have to make a marker and if the maker is at the same position as before u didn't move

patent spade
#

yea but how do scale it up- hold up what the heck is wrong with me i never wanted to check motion in the first place

mighty torrent
#

dang

patent spade
#

i wanted to compare rotation values

#

yea i know how to do that

mighty torrent
#

but if you execute store result score run data get entity @s Motion[0] 1000 it would be a scale of 1000

#

but anyways

patent spade
#

why did i not know that

mighty torrent
patent spade
#

i tried using execute store result score int 100 but that only works for storages because scores are always ints probably

patent spade
#

thank you for your help anyways :D

finite crystalBOT
#
Resolve Help Channel

:white_check_mark: Marked this channel as resolved!

mighty torrent