Moving while sneaking is impossible with high generic.step_height attribute
- Give yourself some netherite boots with this command:
item replace entity @p armor.feet with minecraft:netherite_boots{display:{Name:'{"text":"Step-boots","color":"#0FF82E","italic":false}'},AttributeModifiers:[{AttributeName:"generic.step_height",Name:"generic.step_height",Amount:2.0,Operation:0,UUID:[I;1024845256,1045783364,1007170712,1113454942]}]}
- You can only move while sneaking: (where x is step_height)
- when there are x+1 solid blocks below you (for x <10)
- when there are 10 solid blocks below you (for x >= 10)
Linked Issues
is duplicated by5
Created Issue:
Sneaking is impossible when holding item with attribute generic.step_height
- Give yourself some netherite boots with this command:
item replace entity @p armor.feet with minecraft:netherite_boots{display:{Name:'{"text":"Step-boots","color":"#0FF82E","italic":false}'},AttributeModifiers:[{AttributeName:"generic.step_height",Name:"generic.step_height",Amount:2.0,Operation:0,UUID:[I;1024845256,1045783364,1007170712,1113454942]}]}
- You can only move while sneaking: (where x is step_height)
- when there are x+1 solid blocks below you (for x <10)
- when there are 10 solid blocks below you (for x >= 10)
Sneaking is impossible when holding item with attributegeneric.step_heightMoving while sneaking is impossible with high generic.step_height attribute
is duplicated by
- Give yourself some netherite boots with this command:
item replace entity @p armor.feet with minecraft:netherite_boots{display:{Name:'{"text":"Step-boots","color":"#0FF82E","italic":false}'},AttributeModifiers:[{AttributeName:"generic.step_height",Name:"generic.step_height",Amount:2.0,Operation:0,UUID:[I;1024845256,1045783364,1007170712,1113454942]}]}
- You can only move while sneaking: (where x is step_height)
- when there are x+1 solid blocks below you (for x <10)
- when there are 10 solid blocks below you (for x >= 10)
is duplicated by
is duplicated by
is duplicated by
Thank you for your report!
We're actually already tracking this issue in MC-267381, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote or any additional information to the main ticket it would be appreciated.
Please be sure to use the search feature before creating a ticket to see if the issue has already been reported.
Quick Links:
📗 Tracker Guidelines – 🛠 Community Support – 📧 Mojang Support – 🔑 Account Support – ✍️ Feedback Discord – 💬 Mojira Discord
Please provide your findings on MC-267381 instead of here.
Are you sneaking? (MC-267381)
Thank you for your report!
We're actually already tracking this issue in MC-267381, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote or any additional information to the main ticket it would be appreciated.
Please be sure to use the search feature before creating a ticket to see if the issue has already been reported.
Quick Links:
📗 Tracker Guidelines | 🛠 Community Support | 📧 Mojang Support | 🔑 Account Support | ✍️ Feedback Discord
Duplicates MC-267381
Thank you for your report!
We're tracking this issue in MC-267381, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Thank you for your report!
We're tracking this issue in MC-267381, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
From my testing, seems like any step_height value >= 2.5 will prevent you from move while sneaking if you're standing in a single full block (with no other blocks below it).
If you put a slab below the block you're standing on, you'll be able to move again.
Players cannot move while sneaking when player's generic.step_height ≥(Collidable block's hitbox total height under the player)+1.5.
For example, if there are only 2 solid blocks under players, they cannot move while sneaking when their generic.step_height is ≥3.5.
Code analysis by @Nickid2018 :
This is because player avoids to fall from block edge, but the checking method is wrong.
It should search the collision from player's feet to its max step height, not just move the collision box to the max step height and check whether it collides.
I don't know if this is already mentioned by the code analysis post, but the player's scale also plays into this. The smaller the player's scale, the smaller the block's collision below them can be (Assuming a constant step size of 0.6) so they stop moving while crouching. A scale of 0.25 and step size of 1 cannot crouchwalk on closed trap doors for example.
Actually, the cheaking method of prevent falling when sneaking checks if they move down a distance equal to their max step height whether it collides.
If it doesn't collide, player won't move.
For example, when a player of step_height 0.6 and scale 0.25 is standing on a closed trapdoor without blocks under it, trapdoor's thickness=0.1875, player's height=1.5*0.25, 0.6-1.5*0.25=0.225>0.1875, so he can't move when sneaking.
Also, a player with scale 1 and step_height 4 can move while sneaking on a floating block 2 blocks above the ground, because his feet is in the ground if he moves 4 blocks down.
Affects 24w03a.
Affects 1.20.5 pre1.