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

Power: Repair

Full Name: rpgitems:repair

Providing Plugin: RPGItems

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

Description

Repair the item with some material

Properties

  • abortOnFailure

    • Type: boolean
    • Default: false

    Abort subsequence execution of powers when fail

  • abortOnSuccess

    • Type: boolean
    • Default: false

    Abort subsequence execution of powers when success

  • allowBreak

    • Type: boolean
    • Default: true

    Allow repairing with negative durability to breaking the item

  • amount

    • Type: int
    • Default: 1

    Amount of material required

  • conditions

    • Type: Set<String>

    Conditions of this power.

  • cooldown

    • Type: int
    • Default: 0

    Cooldown of the power, in ticks.

  • customMessage

    • Type: String

    Custom message when not enought material

  • display

    • Type: String
    • Required

    Display text of this power.

  • durability

    • Type: int
    • Default: 20

    Durability to be repaired

  • isSneak

    • Type: boolean
    • Default: false

    Whether require sneaking to trigger this power

  • material

    • Type: ItemStack
    • Required

    Material to be consumed

  • mode

    • Type: Repair$RepairMode
    • Default: DEFAULT

    Whether allow repairing when durability would overflow

  • requireHurtByEntity

    • Type: boolean
    • Default: true

    Whether only run this power when hurt by entity.

  • showFailMsg

    • Type: boolean
    • Default: true

    Whether to show message when not enought material

  • triggers

    • Type: Set<Trigger>
    • Default: RIGHT_CLICK

    Triggers of this power.

Example

Note

Clone this wiki locally