Skip to content
Liqueur Librazy edited this page Mar 17, 2019 · 4 revisions

Power: Repair

Full Name: rpgitems:repair

Providing Plugin: RPGItems

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

Description

Repair the item with some material

Properties

  • amount

    • Type: int
    • Default: 1

    Amount of material required

  • display

    • Type: String
    • Required

    Display text of this power.

  • durability

    • Type: int
    • Default: 20

    Durability to be repaired

  • triggers

    • Type: Set<Trigger>
    • Default: RIGHT_CLICK

    Triggers of this power.

  • mode

    • Type: PowerRepair$RepairMode
    • Default: DEFAULT

    Whether allow repairing when durability would overflow

  • abortOnSuccess

    • Type: boolean
    • Default: false

    Abort subsequence execution of powers when success

  • abortOnFailure

    • Type: boolean
    • Default: false

    Abort subsequence execution of powers when fail

  • material

    • Type: ItemStack
    • Required

    Material to be consumed

  • cooldown

    • Type: int
    • Default: 0

    Cooldown of the power, in ticks.

  • showFailMsg

    • Type: boolean
    • Default: true

    Whether to show message when not enought material

  • customMessage

    • Type: String

    Custom message when not enought material

  • isSneak

    • Type: boolean
    • Default: false

    Whether require sneaking to trigger this power

  • allowBreak

    • Type: boolean
    • Default: true

    Allow repairing with negative durability to breaking the item

  • conditions

    • Type: Set<String>

    Conditions of this power.

Example

Note

Clone this wiki locally