mojira.dev
MCPE-76643

Rabbits Spawned with Spawn Event String Are About 2x Normal Size

Summoning a rabbit with the spawnEvent field filled will summon a massive rabbit.

What I expected to happen was...:
Rabbit should be spawned with normal size or the command should fail.

What actually happened was...:
A rabbit ~2x the size of a normal rabbit was spawned.

Steps to Reproduce:

  1. Load up a world with commands enabled

  2. Use command

    /summon rabbit ~~~ gesulgkjwga Toast
  3. Observe Rabbit that has consumed popeyes spinach

Linked issues

Comments 2

tryashtar

Caused by MCPE-48587

GoldenHelmet

This is caused by MCPE-48587, yes, but it can be fixed separately. The issue is that the rabbit base components include

"minecraft:collision_box": {
        "width": 0.67,
        "height": 0.67
      },

Naturally-spawned rabbits have either an adult or a baby component group, and those use minecraft:scale to set the size to 60% for adult or 40% for baby. You should be able fix this by putting the adult collision box in the base components and setting the baby scale to 50% like all other animals do. However, that does not work, as it seems that the rabbit base collision box is hard-coded to be 0.67 and any collision_box components put in the rabbit.json entity file are ignored. You can fix this bug instead by copying the adult scale into the base component section.

DeeFeeCee

(Unassigned)

354361

Confirmed

Windows

Win10

event, rabbit, summon

1.16.230.54 Beta, 1.16.220, 1.16.0.63 Beta, 1.16.0.60 Beta, 1.14.60 Hotfix, 1.16.40 Hotfix, 1.16.100, 1.17.2 Hotfix

1.17.20.22 Beta, 1.17.30

Retrieved