-
Bug
-
Resolution: Duplicate
-
None
-
Minecraft 1.8.9, Minecraft 16w02a, Minecraft 16w03a
-
None
-
- Create a dummy objective called "isMoving"
"/scoreboard objectives add isMoving dummy"
- Set the display of this objective
"/scoreboard objectives setdisplay sidebar isMoving"
- Place a repeating command block and a Chain command block connected to it
- In the repeating command block, write the command
"/scoreboard players set @e isMoving 1"
- In the chain command block, write the command
"/scoreboard players set @e isMoving 0 {Motion:[0.0,0.0,0.0]}
- Power the repeating command block
- Look at the values on the sidebar
- Create a dummy objective called "isMoving" "/scoreboard objectives add isMoving dummy" - Set the display of this objective "/scoreboard objectives setdisplay sidebar isMoving" - Place a repeating command block and a Chain command block connected to it - In the repeating command block, write the command "/scoreboard players set @e isMoving 1" - In the chain command block, write the command "/scoreboard players set @e isMoving 0 {Motion:[0.0,0.0,0.0]} - Power the repeating command block - Look at the values on the sidebar
-
Unconfirmed
I created a contraption which is supposed to set any entity's score of an "isMoving" objective to 0 if it has a motion of
{Motion:[0.0,0.0,0.0]}(if it's still), otherwise the value defaults to 1.
Unfortunately the value is constantly set to 0 even though the player is moving, unless you're sprinting + jumping at the same time. But it works for mobs.
This ruins a quick way for mapmakers to determine whether the player is standing perfectly still or not.
See a video of the bug in action here : https://youtu.be/lkKwvwwA0xo
- duplicates
-
MC-73887 NBT list comparison tests if item in list, but ignores position
- Open