mojira.dev
MC-277010

`stepping_on` check in `entity_properties` predicate is incorrect when sharing the same coordinate as a partial block

How to Reproduce:
1. Place an Oak Slab on the ground
2. Start flying
3. Set your position to be slightly above the Oak Slab, but still in the same block coordinates
4. Run the following command in chat and notice how it succeeds:

/execute if predicate {condition: "minecraft:entity_properties", entity: "this", predicate: {stepping_on: {block: {blocks: "minecraft:oak_slab"}}}} run say Test failed

This effects any blocks with a top face lower than a full block where the player can share the same block x/z coordinates (eg. Farm land, enchanting table, snow, etc.)

It also effects blocks such as the inside space of a door.

Linked issues

Attachments

Comments 4

Related bug: https://bugs.mojang.com/browse/MC-276755

Command/datapack users/map-makers need a reliable way to detect whether the player is colliding with a block, regardless of if they're in a special state like being teleported, if this bug is resolved using the same code path as {{is_on_ground}} then we're back to square one. Due to the inefficient nature of commands, being forced to do our own collision math is quite a burden and ideally could be avoided. 

We do not have enough information to find the cause of this issue.

Please record a video of this happening and attach it to this report.
If you are on Windows, you can use Windows+Alt+R to open a built-in app for recording game footage.
If you are on Mac (Mojave or later), you can use Shift+Command+5 to open a built-in app for recording your screen.
In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

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

Description is updated and simplified, a new attachment is added

Please attach a video to showcase this bug.
Please also confirm this happens in the latest snapshot.

MulverineX

(Unassigned)

Unconfirmed

(Unassigned)

1.21.1, 24w39a, 1.21.2 Pre-Release 1

Retrieved