Minigames Perks | Prizes

Oct 20, 2019
Minigames Perks | Prizes
  • Usage:
    Put the prizes under the prizes: part of the perk and follow the examples. Some prizes may require additional prize in order for it to work. Check the examples!
    Example for a prize:
    Code (YAML):
    prizes:
          feed
    : 2
          heal
    : 2
    NOTE: When you have possible values of player or victim - the victim is used only in events that has damage taking or death
    Example events about player or victim:
    hit-arrow-player (player is the player who shot the arrow, victim is the player who got hit)
    damage-take (player is the player who deals damage, victim is the player who takes the damage)
    consume (player is the player who consumes the potion/food, there is no victim, so typing victim will use the player)


    items(top)

    Description: Gives items to the player.
    Possible values: hand-item, broken-block or any minecraft item in item:[amount]:[data] format (check examples)
    Needed prizes: items-give-type
    Examples:
    Gives the item in the player's hand to the player when he places a block:
    Code (YAML):
       event: place
        prizes
    :
           items
    : hand-item
           items-give-type
    : all
    Gives the broken block when the player breaks it:
    Code (YAML):
       event: break
        prizes
    :
           items
    : broken-block
           items-give-type
    : all
    Gives 2 random items from the list when the player kills another player (Iron sword, 5 diamonds or 1 red glass):
    Code (YAML):
       event: kill-player
        prizes
    :
           items
    :
            - IRON_SWORD
            - DIAMOND:5
            - STAINED_GLASS:1:14 (for versions < 1.13)
            - RED_STAINED_GLASS:1 (for versions >= 1.13)
           items-give-type
    : 2

    items-give-type(top)

    Description: How many of the listed items to give to the player
    Possible values: all or integer
    Needed prizes: items​

    fire-arrow(top)

    Description: Sets the arrow from arrow-shoot event on fire. Works only with arrow-shoot event.
    Possible values: true of false
    Needed event: arrow-shoot
    Examples:
    Sets the arrow on fire
    Code (YAML):
       event: arrow-shoot
        prizes
    :
           fire-arrow
    : true

    heal(top)

    Description: Heals the player.
    Possible values: integer
    Examples:
    Heals the player with 1 heart:
    Code (YAML):
    prizes:
           heal
    : 2

    feed(top)

    Description: Feeds the player.
    Possible values: integer
    Examples:
    Heals the player with 1 bar:
    Code (YAML):
    prizes:
           feed
    : 2

    increase-damage(top)

    Description: Increases the damage taken with specific percentage.
    Possible values: double
    Use in events: arrow-hit events, hit-hand events, snowball hit and damage take
    Examples:
    Deals double damage on arrow hit:
    Code (YAML):
       event: hit-arrow-player
        prizes
    :
           increase-damage
    : 100.0
    Deals 1/3 more damage on arrow hit:
    Code (YAML):
       event: hit-arrow-player
        prizes
    :
           increase-damage
    : 33.3

    decrease-damage(top)

    Description: Decreases the damage taken with specific percentage.
    Possible values: double
    Use in events: arrow-hit events, hit-hand events, snowball-hit events and damage-take
    Examples:
    Player deals 50% less damage with arrows to other players:
    Code (YAML):
       event: hit-arrow-player
        prizes
    :
           decrease-damage
    : 50.0
    Take 1/3 less damage:
    Code (YAML):
       event: damage-take
        prizes
    :
           increase-damage
    : 33.3

    spawn-tnt(top)

    Description: Spawns a primed TNT.
    Possible values: player or victim
    Examples:
    Spawns a TNT at the hit player:
    Code (YAML):
       event: hit-arrow-player
        prizes
    :
           spawn-tnt
    : victim
    Spawns a TNT on death:
    Code (YAML):
       event: death
        prizes
    :
           spawn-tnt
    : player

    spawn-mob(top)

    Description: Spawns a mob out of a list of mobs.
    Possible values: player or victim
    Needed prizes: spawn-mob-types
    Examples:
    Spawns a wolf next to the player on kill:
    Code (YAML):
       event: kill-player
        prizes
    :
           spawn-mob
    : player
           spawn-mob-types
    : WOLF
    Spawns endermite or silverfish next to the victim of hit-arrow-player event:
    Code (YAML):
       event: hit-arrow-player
        prizes
    :
           spawn-mob
    : victim
           spawn-mob-types
    :
            - ENDERMITE
            - SILVERFISH
    Spawns a red colored sheep at the player when he consumes something:
    Code (YAML):
       event: consume
        prizes
    :
           spawn-mob
    : player
           spawn-mob-types
    :
            - SHEEP:14

    spawn-mob-types(top)

    Description: List of the mobs
    Possible values: List of any minecraft entity, for colored sheep use SHEEP:color (Check spawn-mob examples)
    Needed conditions: spawn-mob

    exp-level(top)

    Description: Gives exp levels to the player
    Possible values: integer
    Examples:
    Gives 1 exp level on player kill:
    Code (YAML):
       event: kill-player
        prizes
    :
           exp-level
    : 1

    console-command(top)

    Description: Executes a command from the console. Possible placeholders - {player} and {victim}
    Possible values: List of strings (commands)
    Examples:
    Gives 100$ to the player on player kill:
    Code (YAML):
       event: kill-player
        prizes
    :
           console-command
    :
            - eco give {player} 100
    Sends some broadcasts when the player kills another player
    Code (YAML):
       event: kill-player
        prizes
    :
           console-command
    :
            - broadcast {player} killed {victim}
    - broadcast That was epic![/code]

    player-command(top)

    Description: Executes a command from the player. Possible placeholders - {player} and {victim}
    Possible values: List of strings (commands)
    Examples:
    Says some stuff in the chat on kill:
    Code (YAML):
       event: kill-player
        prizes
    :
           console-command
    :
            - say I am {player}!
    - say And I killed {victim}![/code]

    effects(top)

    Description: Gives effects to a player
    Possible values: player or victim
    Needed prizes: effects-list and effects-give-type
    Bonus placeholders: The following placeholders can be used in the activation message: {effect}, {amplifier}, {duration}
    Examples:
    Gives damage strength 2 for 5 seconds on kill:
    Code (YAML):
       event: kill-player
        prizes
    :
          effects
    : player
          effects-list
    :
          - INCREASE_DAMAGE:5:2
    Gives damage strength 2, speed 2 and haste 2 for 5 seconds on kill:
    Code (YAML):
       event: kill-player
        prizes
    :
          effects
    : player
          effects-list
    :
          - INCREASE_DAMAGE:5:2
          - SPEED:5:2
          - FAST_DIGGING:5:2
          effects-give-type
    : all
    Gives wither 2 or weakness 2 for 5 seconds to the player that was hit:
    Code (YAML):
       event: hit-arrow-player
        prizes
    :
          effects
    : victim
          effects-list
    :
          - WITHER:5:2
          - WEAKNESS:5:2
          effects-give-type
    : 1

    effects-list(top)

    Description: List of the effects
    Possible values: List of any minecraft effect
    Needed prizes: effects and effects-give-type

    effects-give-type(top)

    Description: How many of the effects to give
    Possible values: all or integer
    Needed prizes: effects and effects-list

    enchants(top)

    Description: Enchants the player's items
    Possible values: List of any minecraft enchants
    Needed prizes: enchants-items and enchants-give-type
    Bonus placeholders: The following placeholders can be used in the activation message: {enchant}
    Examples:
    Enchants all swords of the player with 1 level of 1 of the listed enchants below on kill:
    Code (YAML):
       event: kill-player
          enchants-items
    :
          - WOOD_SWORD
          - STONE_SWORD
          - GOLD_SWORD
          - IRON_SWORD
          - DIAMOND_SWORD
          enchants-give-type
    : 1
          enchants
    :
          - DAMAGE_ALL
          - DAMAGE_ARTHROPODS
          - FIRE_ASPECT
          - KNOCKBACK
          - DURABILITY
          - DAMAGE_UNDEAD
    Enchants the player's hand item with 1 level of sharpness on kill:
    Code (YAML):
       event: kill-player
          enchants-items
    :
          - hand
          enchants-give-type
    : 1
          enchants
    :
          - DAMAGE_ALL
    Enchants the player's bow with 1 leve of all enchants on kill:
    Code (YAML):
       event: kill-player
          enchants-items
    :
          - BOW
          enchants-give-type
    : all
          enchants
    :
          - ARROW_DAMAGE
          - ARROW_FIRE
          - DURABILITY
          - ARROW_KNOCKBACK

    enchants-items(top)

    Description: List of items that will be enchanted with the enchant
    Possible values: hand or list of any minecraft items
    Needed prizes: enchants and enchants-give-type

    enchants-give-type(top)

    Description: How many of the enchants to give
    Possible values: all or integer
    Needed prizes: enchants and enchants-items


    <- Back to the main page[/INDENT][/code][/SPOILER][/INDENT]
  • Loading...
  • Loading...