Skip to content

Replace hitbox_type in move and raycast with a callbackΒ #473

@aksiome

Description

@aksiome

πŸ—‚οΈ Request Type

Feature

🧩 Feature or Module Name

bs.hitbox, bs.move, bs.raycast

πŸ“ Description

Refactor move and raycast to accept a custom callback that returns a shape hitbox based on the block being processed. This would replace the current hitbox_type parameter and offer more flexibility.

We can provide a set of built-in callbacks (e.g. in the hitbox module), including variants that correctly handle fluids and waterlogged blocks.
This change will:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions