Skip to content

Boomerang #7

@DerToaster98

Description

@DerToaster98

A boomerang is a adventure item.

It flies on a straight path until it reaches a certain distance or collides with a collidable block or a entity.

On return, the boomerang uses a normal pathfinder to return to it's owner.

While returning, damage is reduced by 50%.

Boomerangs trigger all triggerable blocks they collide with similar to windcharges (datatag controlled)

Collided mobs will receive a small amount of damage.

A boomerang can have a potion effect applied when a potion is in the offhand while throwing the boomerang. Hit entities will have that effect applied to it.

A boomerang can carry other entities it collides with:

  • Max amount of 1 by default (data component property)
  • Exception: Itemstacks: Itemstacks will increase the stack size until maxStacksize of that itemstack
  • Entity must be in a entity tag for this
  • Entity hitbox volume must be under a certain value (by default: 0.5m³; Value is defined by a data component on the boomerang)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions