Skip to content

[Bug] Some attack boxes are rendered at double the entity's feet position. #74

@Marmalade-Toast

Description

@Marmalade-Toast

Describe the bug

The attack boxes of some classes of entities (currently projectiles as far as I know) are rendered at double the coordinates of the feet of the projectile, i.e. the position is dilated from the centre of the world. For example, a projectile at 0.0 0.0 0.0 is unaffected, while a projectile at 1.0 2.0 3.0 has its attack box rendering as if the projectile was at 2.0 4.0 6.0. The size of the attack box is unaffected by this dilation.

To Reproduce

  1. Fire an arrow
  2. Run the command /debugentity @e[type=arrow] add attackbox
  3. Look at the position that is double the arrow's position.

Expected behavior

The attack box of projectiles is attached to the projectile, like how the collision box is.

Screenshots

2026-02-21.16-19-18.mp4

Canopy Version

1.5.4

Minecraft Version

26.1

Server Type

Singleplayer

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions