Skip to content
Liqueur Librazy edited this page Oct 27, 2019 · 4 revisions

Power: Attract

Full Name: rpgitems:attract

Providing Plugin: RPGItems

Default Trigger: RIGHT_CLICK.
All available Trigger: ATTACHMENT, BOW_SHOOT, HIT_TAKEN, HURT, LEFT_CLICK, OFFHAND_CLICK, RIGHT_CLICK, SNEAK, SNEAKING, SPRINT, TICK, TICK_OFFHAND.

Description

Pull around mobs in to player

Properties

  • attractPlayer

    • Type: boolean
    • Default: false

    Whether allow attracting player.

  • attractingEntityTickCost

    • Type: int
    • Default: 0

    Durability cost per entity one tick when attracting.

  • attractingTickCost

    • Type: int
    • Default: 0

    Durability cost per tick when attracting.

  • conditions

    • Type: Set<String>

    Conditions of this power.

  • cooldown

    • Type: int
    • Default: 0

    Cooldown of the power, in ticks.

  • cost

    • Type: int
    • Default: 0

    Durability cost of the power.

  • duration

    • Type: int
    • Default: 5

    Duration of this power when triggered by click in tick.

  • maxSpeed

    • Type: double
    • Default: 0.4

    Maximum speed when attracting.

  • radius

    • Type: int
    • Required

    Effective range in blocks.

  • requireHurtByEntity

    • Type: boolean
    • Default: true

    Whether only run this power when hurt by entity.

  • selectors

    • Type: Set<String>

    Selectors for this power.

  • triggers

    • Type: Set<Trigger>
    • Default: RIGHT_CLICK

    Triggers of this power.

Example

Note

Clone this wiki locally