mojira.dev
MC-295975

Armor stands with NoGravity:1b completely ignore block face collisions

Video: (attached below)

  • Expected behavior: entities with NoGravity:1b obey solid face collisions

  • Observed behavior: they dont :/


How to replicate:

  1. Load up the attached structure file: [mediaInline]

  2. execute the provided command (it will give you a spawn egg which spawns an armor stand with NoGravity:1)

/give @p cod_spawn_egg[entity_data={id:"minecraft:armor_stand",NoGravity:1b,Glowing:1b}] 1
  1. Spawn an armor stand with said egg.

  2. Push said armor stand with a horizontal piston, in such a way that it pushes the armor stand into a solid block

  3. observe the armor stand getting inside the block, completely ignoring the block face collision.

  4. observe the entity ignoring solid block face collisions.

Please see the video for further information

Attachments

Comments 6

Note that there exist entities which intentionally ignore block face collisions
For example:

  • loyalty tridents in the state of returning to the player,

  • item entities that are stuck within a block - (they turn off their collisions to succesfully jump upwards, thats how item elevators work),

  • etc

They do so by settnig their noPhysics flag to true. Please make sure to not accidentally change that behavior.

Please provide all the commands used in the video and provide steps to reproduce this issue. A video is not subsitiution for steps to reproduce

Here is the command:
/give @p cod_spawn_egg[entity_data={id:"minecraft:armor_stand",NoGravity:1b,Glowing:1b}] 1

Also looks like it only affects armor stands, doesnt seem to work with other entities.

Please provide comprehensive steps to reproduce the issue, rather than saying to watch the video. A video is not a subsitituion for steps to reproduce.

The steps to reproduce:

  1. execute the provided command (it will give you a spawn egg which spawns an armor stand with NoGravity:1)

  2. Spawn an armor stand with said egg.

  3. Push said armor stand with a horizontal piston, in such a way that it pushes the armor stand into a solid block

  4. observe the armor stand getting inside the block, completely ignoring the block face collision.

The showcase part of the video is literally 14 seconds long and is visually much more descriptive than whatever text one can write. Please reconsidr your policy about showcase videos.

Can replicate in 25w16a (cant add that to the report directly, cus for some reason report editing feature doesnt work)

Savvvage_

(Unassigned)

Confirmed

Platform

Low

Collision, Commands

1.21.5, 25w16a, 25w17a

Retrieved