mojira.dev
MC-307880

Inconsistent is_on_ground predicate with attributes bounciness 1 and air_drag_modifier 0

Summary

When the player has a bounciness attribute of exactly 1, and an air_drag_modifier attribute of exactly 0, using a predicate to test is_on_ground is inconsistent, even within a single tick.

When in the air, the predicate always returns false, as expected. When on ground, the predicate mostly returns true, but sometimes returns false.

Note that I am not jumping or dropping of a ledge before running the predicate. This happens when standing perfectly still, even after holding the crouch key to prevent bouncing.

Steps to reproduce:

  1. Create a new world in creative mode with cheats

  2. Stand on the ground

  3. Run the following 2 commands:

    1. /attribute @s minecraft:bounciness base set 1

    2. /attribute @s minecraft:air_drag_modifier base set 0

  4. Run the following command multiple times to observe the result:

    1. /execute if predicate {condition:"minecraft:entity_properties",entity:"this",predicate:{flags:{is_on_ground:true}}}

  5. Note that the result is sometimes true, and sometimes false. You can even observe different results within a single tick, like when using /tick freeze

Expected behavior:

Using this exact combinations of attributes should not cause different behavior; the predicate should always return true when the player is standing on the ground.

Attachments

Comments 3

Thank you for helping us improve Minecraft! We saved your files:

[media]

Can confirm in 26.2-snapshot-6

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

42Richtofen42

(Unassigned)

Confirmed

26.2 Snapshot 5, 26.2 Snapshot 6

Retrieved