mojira.dev
MC-252478

Ender dragon's sub-hitboxes are positioned at 0, 0, 0 until the entity's first AI tick

The ender dragon's sub-hitboxes (the green ones) are positioned at 0, 0, 0 in any dimension until the dragon starts its first AI tick. For dragons with NoAI NBT set, the dragon will never have a hitbox. For naturally occurring dragons, this will result in the dragon lacking any sub-hitboxes for 1 tick.

Steps to Reproduce:

Method 1:

  • Tick freeze the game:

    /tick freeze
  • Summon or spawn an ender dragon

  • Step 1 tick

Method 2:

Run the command:

/summon ender_dragon ~ ~ ~ \{NoAI:1b}

Expected Behavior:

The dragon would have all necessary hitboxes and sub-hitboxes when spawned.

Observed Behaviour:

The dragon has only has it's outer (white) hitbox, but that hitbox cannot be interacted with or attacked.

Linked issues

Attachments

Comments

migrated

I suggest changing the title to "Ender dragon with NoAI only has the main hitbox", as the current title is a bit misleading.

migrated

No

migrated

this also affects 22w24a
but in 22w24a, the smaller hitboxes appear to be at 0 0 0

 

[media]
Avoma

Can confirm in 1.19.1.

Avoma

Can confirm in 1.19.2.

migrated

Affects 24w12a

[Mod] Jingy

MC-278174 has outlined how this issue is broader than originally reported. I have updated the report accordingly to reflect this new discovery.

migrated

(Unassigned)

Confirmed

Platform

Low

Entities, Hitboxes

ender_dragon

1.18.2, 1.19 Release Candidate 2, 1.19, 22w24a, 1.19.1, ..., 1.20.4, 24w11a, 1.21.3, 24w45a, 1.21.5

Retrieved