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

Power: Sound

Full Name: rpgitems:sound

Providing Plugin: RPGItems

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

Description

Play a sound

Properties

  • 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.

  • display

    • Type: String
    • Default: Plays sound

    Display text of this power.

  • pitch

    • Type: float
    • Default: 1.0

    Pitch of sound

  • requireHurtByEntity

    • Type: boolean
    • Default: true

    Whether only run this power when hurt by entity.

  • sound

    • Type: String

    Sound to be played

  • triggers

    • Type: Set<Trigger>
    • Default: RIGHT_CLICK

    Triggers of this power.

  • volume

    • Type: float
    • Default: 1.0

    Volume of sound

Example

Note

Clone this wiki locally