mojira.dev
MC-110067

Bat spawn egg spawns bat inside non-full block

Bat spawn egg spawns bat inside non-full block.

Affected blocks:

  • Soul sand

  • Honey block

  • Farmland

  • Drit path

  • Snow layers 8

  • Slab

  • Sea pickle

  • Big dripleaf

  • Chorus plant

  • Chest

  • Trapped chest

  • Ender chest

  • Cactus

  • Chain(axis: x, z)

  • Enchanting table

  • End portal frame

  • Flower pot

  • Skull or head

  • Grindstone

  • Stonecutter

  • Bell

  • Lantern

  • Soul lantern

  • Campfire

  • Soul campfire

  • Candle

  • Small amethyst bud

  • Medium amethyst bud

  • Large amethyst bud

  • Amethyst cluster

  • Pointed dripstone

  • Hopper

  • Lectern

  • Daylight detector

  • Turtle egg

  • Conduit

  • Cake

  • Brewing stand

  • Mud

  • Sculk shrieker

  • Sculk sensor

  • Carpet

  • Moss carpet

  • Flower pot

  • Lightning rod(facing: east, west, north, south)

  • End rod(facing: east, west, north, south)

  • Calibrated sculk sensor

Use the following command:

Bat(Reconfirmed in 19w14a)

/give @p bat_spawn_egg{EntityTag:{id:"minecraft:bat",NoAI:1b}} 1

Code analysis

Based on 1.11 decompiled using MCP 9.35 rc1

For bats the method net.minecraft.entity.passive.EntityBat.onUpdate() is causing this which sets their y position to floor(y) + 1 - height if it is hanging.

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media]
[Mod]Les3awe

This issue relates to MC-108226.

marcono1234

Removed gamemode because you can use spawn eggs in survival mode as well

[Mod]Les3awe

Since shulkers and bats could be different issues, decided to split the ticket.

[Mod]Les3awe

Now this ticket is only about bats.
Shulker is MC-174876.

j_p_smith

Also applies to farmland and grass paths.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a.

Avoma

Video attached.

Avoma

Can confirm in 21w11a.

Avoma

Can confirm in 21w13a.

Avoma

Can confirm in 21w17a.

Avoma

Can confirm in 1.17.

Avoma

Can confirm in 1.18.

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2.

Avoma

Can confirm in 21w11a. This same concept can also be seen with mud.

[Mod]Les3awe

(Unassigned)

Confirmed

Platform

Low

Block states, Mob spawning

Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, ..., 25w05a, 25w09b, 1.21.5 Release Candidate 1, 1.21.5, 25w17a

Retrieved