-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 1.10 Pre-Release 1, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w40a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w16a, Minecraft 17w16b, Minecraft 17w17a, Minecraft 17w17b, Minecraft 1.12.2, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w16a, Minecraft 18w22a, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, 1.15.2, 20w18a, 1.16.5, 21w05b, 21w06a, 21w08b, 21w11a, 1.18.2, 22w17a, 1.19, 1.19.2, 24w44a
-
Confirmed
-
Commands, Mob behaviour
Mobs which have to walk to attack or flee from the player don't seem to move anymore when they are using the NoGravity-tag. The only mob able to move and attack the player is the skeleton.
What I expected to happen was...:
The mobs would float in the air and at least try to attack me.
What actually happened was...:
They just stand/float on their spot and don't move.
Steps to Reproduce:
- Put up a repeating commandblock with the command
execute as @e run data merge entity @s {NoGravity:1b}
- Activate the commandblock
- Spawn in some zombies
- Switch into survival mode
- Notice how they don't try to attack you
Note: If you spawn in zombies before you switch on the commandblock and they try to attack you and THEN you activate the commandblock, they will suddenly spin in their spot. If you walk to them they will hit you once and get knocked back, however afterwards they won't deal damage anymore.
Note 2: If you move near creepers, they will still explode.
Code analysis
Code analysis by Avoma can be found in this comment.