Entities with their "NoGravity" tag set to "1b" don't receive any vertical knockback
The Bug:
Entities with their "NoGravity" tag set to "1b" don't receive any vertical knockback.
Steps to Reproduce:
- Summon a husk that has its "NoGravity" NBT tag set to "1b" by using the command provided below.
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b} - Attack the husk and as you do this, watch it closely.
- Take note as to whether or not entities with their "NoGravity" tag set to "1b" receive any vertical knockback.
Observed Behavior:
Entities don't receive any vertical knockback.
Expected Behavior:
Entities would receive vertical knockback.
Linked Issues
- Unresolved
[Mod] AvomaBlock twenty-eight
- 17
- 7
- Confirmed
Low
- Platform
- Combat
- NoGravity
16w21a - 1.21.4
16w21a 16w21b 1.10-pre1 1.10 1.10.2 16w35a 16w36a 1.11 1.11.2 17w06a 17w13a 17w13b 17w16a 17w16b 17w17a 17w17b 1.12.2 18w11a 18w14a 18w14b 18w16a 18w22a 1.13-pre1 1.13-pre2 1.13.2 19w12b 19w13b 1.16.1 20w45a 20w51a 1.16.5 21w05b 21w06a 21w07a 21w08b 21w11a 21w16a 1.17 1.17.1 21w38a 21w39a 21w40a 21w41a 21w42a 21w43a 1.18-pre1 1.18-pre7 1.18 1.18.1 22w03a 22w05a 22w06a 1.18.2-rc1 1.18.2 1.19 1.19.2 22w43a 1.19.3 1.19.4 1.20 1.20.1 1.20.4 23w51b 1.20.6 1.21 1.21.1 1.21.2-pre3 1.21.3 1.21.4
Created Issue:
No knockback on y-axis when using the NoGravity tag
When you punch a mob from below, it doesn't receive any knockback upwards even if it has the NoGravity-tag. Same applies for knockback downwards if you're punching from above.
What I expected to happen was...:
The mob should be moving into the direction you are punching as it is getting pushed away from the player.What actually happened was...:
Instead, the mob only moves on the x- and z-axis and it isn't even considered whether you're punching from above or from below which is strange when you're in air.Steps to Reproduce:
{NoGravity:1b}
1. Set up a commandblock with the command "entitydata @e"
2. Set that commandblock into the repeat-mode and apply a redstone signal to it
3. Spawn some mobs
4. Punch them so they are in the air or spawn them above air.
5. Now try to punch them from above or below. You will notice that it isn't even considered in which direction you are punching and the mobs only move on the x- and z-axis.Environment
Windows 10, Java 1.8.0_91 64bit
When you punch a mob from below, it doesn't receive any knockback upwards even if it has the NoGravity-tag. Same applies for knockback downwards if you're punching from above.
What I expected to happen was...:
The mob should be moving into the direction you are punching as it is getting pushed away from the player.What actually happened was...:
Instead, the mob only moves on the x- and z-axis and it isn't even considered whether you're punching from above or from below which is strange when you're in air.Steps to Reproduce:
{NoGravity:1b}
1. Set up a commandblock with the command "entitydata @e"
2. Set that commandblock into the repeat-mode and apply a redstone signal to it
3. Spawn some mobs
4. Punch them so they are in the air or spawn them above air.
5. Now try to punch them from above or below. You will notice that it isn't even considered in which direction you are punching and the mobs only move on the x- and z-axis.When you punch a mob from below, it doesn't receive any knockback upwards even if it has the NoGravity tag. Same applies for knockback downwards if you're punching from above.
What I expected to happen was...:
The mob should be moving into the direction you are punching as it is getting pushed away from the player.What actually happened was...:
Instead, the mob only moves on the x- and z-axis and it isn't even considered whether you're punching from above or from below which is strange when you're in air.Steps to Reproduce:
- Set up a command block with the command
entitydata @e {NoGravity:1b}- Set that command block into the repeat-mode and apply a redstone signal to it
- Spawn some mobs
- Punch them so they are in the air or spawn them above air.
- Now try to punch them from above or below. You will notice that it isn't even considered in which direction you are punching and the mobs only move on the x- and z-axis.
When you punch a mob from below, it doesn't receive any knockback upwards even if it has the NoGravity tag. Same applies for knockback downwards if you're punching from above.
What I expected to happen was...:
The mob should be moving into the direction you are punching as it is getting pushed away from the player.What actually happened was...:
Instead, the mob only moves on the x- and z-axis and it isn't even considered whether you're punching from above or from below which is strange when you're in air.Steps to Reproduce:
- Set up a command block with the command
entitydata@e{NoGravity:1b}- Set that command block into the repeat-mode and apply a redstone signal to it
- Spawn some mobs
- Punch them so they are in the air or spawn them above air.
- Now try to punch them from above or below. You will notice that it isn't even considered in which direction you are punching and the mobs only move on the x- and z-axis.
When you punch a mob from below, it doesn't receive any knockback upwards even if it has the NoGravity tag. Same applies for knockback downwards if you're punching from above.
What I expected to happen was...:
The mob should be moving into the direction you are punching as it is getting pushed away from the player.What actually happened was...:
Instead, the mob only moves on the x- and z-axis and it isn't even considered whether you're punching from above or from below which is strange when you're in air.Steps to Reproduce:
- Set up a command block with the command
execute as @e run data merge entity @s {NoGravity:1b}- Set that command block into the repeat-mode and apply a redstone signal to it
- Spawn some mobs
- Punch them so they are in the air or spawn them above air.
- Now try to punch them from above or below. You will notice that it isn't even considered in which direction you are punching and the mobs only move on the x- and z-axis.
When you punch a mob from below, it doesn't receive any knockback upwards even if it has the NoGravity tag. Same applies for knockback downwards if you're punching from above.
What I expected to happen was...:
The mob should be moving into the direction you are punching as it is getting pushed away from the player.What actually happened was...:
Instead, the mob only moves on the x- and z-axis and it isn't even considered whether you're punching from above or from below which is strange when you're in air.Steps to Reproduce:
- Set up a command block with the command
execute as @e run data merge entity @s {NoGravity:1b}- Set that command block into the repeat-mode and apply a redstone signal to it
- Spawn some mobs
- Punch them so they are in the air or spawn them above air
.- Now try to punch them from above or below. You will notice that it isn't even considered in which direction you are punching and the mobs only move on the x- and z-axis.
The bug
When you punch a mob from below, it doesn't receive any knockback upwards even if it has the NoGravity tag. Same applies for knockback downwards if you're punching from above.
Expected behavior would be that the mob should be moving into the direction you are punching as it is getting pushed away from the player. Instead, the mob only moves on the x- and z-axis and it isn't even considered whether you're punching from above or from below which is strange when you're in air.How to reproduce
- Set up a command block with the command
execute as @e run data merge entity @s {NoGravity:1b}- Set that command block into the repeat-mode and apply a redstone signal to it
- Spawn some mobs
- Punch them so they are in the air or spawn them above air
- Now try to punch them from above or below
→ You will notice that it isn't even considered in which direction you are punching and the mobs only move on the x- and z-axis
Windows 10, Java 1.8.0_91 64bit
relates to
The bug
When you punch a mob from below, it doesn't receive any knockback upwards even if it has the NoGravity tag. Same applies for knockback downwards if you're punching from above.
Expected behavior would be that the mob should be moving into the direction you are punching as it is getting pushed away from the player. Instead, the mob only moves on the x- and z-axis and it isn't even considered whether you're punching from above or from below which is strange when you're in air.How to reproduce
- Set up a command block with the command
execute as @e run data merge entity @s {NoGravity:1b}- Set that command block into the repeat-mode and apply a redstone signal to it
- Spawn some mobs
- Punch them so they are in the air or spawn them above air
- Now try to punch them from above or below
→ You will notice that it isn't even considered in which direction you are punching and the mobs only move on the x- and z-axisThe Bug:
Entities with the NoGravity tag do not receive any vertical knockback.
Steps to Reproduce:
- Summon a husk with the NoGravity tag.
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b}
- Attack the husk.
- →
Notice how it doesn't receive any vertical knockback upon being attacked.
The Bug:
Entities with the NoGravity tag do not receive any vertical knockback.
Steps to Reproduce:
- Summon a husk with the NoGravity tag.
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b}
- Attack the husk.
- →
Notice how it doesn't receive any vertical knockback upon being attacked.
No knockback on y-axis when using the NoGravity tagEntities with the NoGravity tag do not receive any vertical knockback
The Bug:
Entities with the NoGravity tag do not receive any vertical knockback.
Steps to Reproduce:
- Summon a husk with the NoGravity tag.
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b}
- Attack the husk.
- →
Notice how it doesn't receive any vertical knockback upon being attacked.
The Bug:
Entities with the NoGravity tag do not receive any vertical knockback.
Steps to Reproduce:
- Summon a husk with the NoGravity tag.
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b}
- Attack the husk.
- →
Notice how it doesn't receive any vertical knockback upon being attacked.
The Bug:
Entities with the NoGravity tag do not receive any vertical knockback.
Steps to Reproduce:
- Summon a husk with the NoGravity tag.
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b}
- Attack the husk.
- →
Notice how it doesn't receive any vertical knockback upon being attacked.
Expected Behavior:
The expected behavior would be that entities with the NoGravity tag would receive vertical knockback.
The Bug:
Entities with the NoGravity tag do not receive any vertical knockback.
Steps to Reproduce:
- Summon a husk with the NoGravity tag.
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b}
- Attack the husk.
- →
Notice how it doesn't receive any vertical knockback upon being attacked.
Expected Behavior:
The expected behavior would be that entities with the NoGravity tag would receive vertical knockback.The Bug:
Entities with the NoGravity tag do not receive any vertical knockback.
Steps to Reproduce:
- Summon a husk with the NoGravity tag.
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b}
- Attack the husk.
Observed Behavior:
Entities with the NoGravity tag do not receive any vertical knockback.
Expected Behavior:
Entities with the NoGravity tag would receive vertical knockback.
The Bug:
Entities with the
NoGravity tagdo not receive any vertical knockback.Steps to Reproduce:
- Summon a husk
with theNoGravity tag./summon minecraft:husk ~ ~1 ~ {NoGravity:1b}
- Attack the husk.
Observed Behavior:
Entities with the
NoGravity tagdo not receive any vertical knockback.Expected Behavior:
Entities with the
NoGravity tag would receive vertical knockback.The Bug:
Entities with their "NoGravity" tag set to "1b" don't receive any vertical knockback.
Steps to Reproduce:
- Summon a husk that has its "NoGravity" tag set to "1b".
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b}
- Attack the husk and as you do this, watch it closely.
- Take note as to whether or not entities with their "NoGravity" tag set to "1b" receive any vertical knockback.
Observed Behavior:
Entities with their "NoGravity" tag set to "1b" don't receive any vertical knockback.
Expected Behavior:
Entities with their "NoGravity" tag set to "1b" would receive vertical knockback.
Entities with theNoGravity tagdo not receive any vertical knockbackEntities with their "NoGravity" tag set to "1b" don't receive any vertical knockback
The Bug:
Entities with their "NoGravity" tag set to "1b" don't receive any vertical knockback.
Steps to Reproduce:
- Summon a husk that has its "NoGravity" tag set to "1b".
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b}
- Attack the husk and as you do this, watch it closely.
- Take note as to whether or not entities with their "NoGravity" tag set to "1b" receive any vertical knockback.
Observed Behavior:
Entities
with their "NoGravity" tag set to "1b"don't receive any vertical knockback.Expected Behavior:
Entities
with their "NoGravity" tag set to "1b"would receive vertical knockback.The Bug:
Entities with their "NoGravity" tag set to "1b" don't receive any vertical knockback.
Steps to Reproduce:
- Summon a husk that has its "NoGravity" tag set to "1b" by using the command provided below.
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b}- Attack the husk and as you do this, watch it closely.
- Take note as to whether or not entities with their "NoGravity" tag set to "1b" receive any vertical knockback.
Observed Behavior:
Entities don't receive any vertical knockback.
Expected Behavior:
Entities would receive vertical knockback.
The Bug:
Entities with their "NoGravity" tag set to "1b" don't receive any vertical knockback.
Steps to Reproduce:
- Summon a husk that has its "NoGravity" NBT tag set to "1b" by using the command provided below.
/summon minecraft:husk ~ ~1 ~ {NoGravity:1b}- Attack the husk and as you do this, watch it closely.
- Take note as to whether or not entities with their "NoGravity" tag set to "1b" receive any vertical knockback.
Observed Behavior:
Entities don't receive any vertical knockback.
Expected Behavior:
Entities would receive vertical knockback.

The command I gave in the bug report doesn't seem to work in the 1.13. snapshots anymore. It would be great if anybody knew how to fix the commandblock necessary for NoGravity-tests.
Done
Thanks a lot! I have added the command to my other reports as well
Confirmed in 1.16.1.
In 20w28a
Can confirm in 20w51a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Video attached.
Can confirm in 21w07a.
Can confirm in 1.16.5 and 21w08b.
Can confirm in 21w11a.
Can confirm in 21w16a.
Can confirm in 1.17.
Can confirm in 1.17.1.
this also aplies to mobs floating in water
This feature was introduced in version 1.9. It modifies the game so that entities experience vertical knockback only when they have solid ground beneath them. This adjustment aims to prevent entities from being launched excessively high into the air.