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
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)
Contents
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
Code (YAML):event: break
prizes:
items: broken-block
items-give-type: all
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: 2items-give-type(top)
Description: How many of the listed items to give to the player
Possible values: all or integer
Needed prizes: itemsfire-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: trueheal(top)
Description: Heals the player.
Possible values: integer
Examples:
Heals the player with 1 heart:
Code (YAML):prizes:
heal: 2feed(top)
Description: Feeds the player.
Possible values: integer
Examples:
Heals the player with 1 bar:
Code (YAML):prizes:
feed: 2increase-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
Code (YAML):event: hit-arrow-player
prizes:
increase-damage: 33.3decrease-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
Code (YAML):event: damage-take
prizes:
increase-damage: 33.3spawn-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
Code (YAML):event: death
prizes:
spawn-tnt: playerspawn-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
Code (YAML):event: hit-arrow-player
prizes:
spawn-mob: victim
spawn-mob-types:
- ENDERMITE
- SILVERFISH
Code (YAML):event: consume
prizes:
spawn-mob: player
spawn-mob-types:
- SHEEP:14spawn-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: 1console-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
Code (YAML):event: kill-player
prizes:
console-command:
- broadcast {player} killed {victim}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}!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
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
Code (YAML):event: hit-arrow-player
prizes:
effects: victim
effects-list:
- WITHER:5:2
- WEAKNESS:5:2
effects-give-type: 1effects-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
Code (YAML):event: kill-player
enchants-items:
- hand
enchants-give-type: 1
enchants:
- DAMAGE_ALL
Code (YAML):event: kill-player
enchants-items:
- BOW
enchants-give-type: all
enchants:
- ARROW_DAMAGE
- ARROW_FIRE
- DURABILITY
- ARROW_KNOCKBACKenchants-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-typeenchants-give-type(top)
Description: How many of the enchants to give
Possible values: all or integer
Needed prizes: enchants and enchants-itemstriple-arrow(top)
Description: Shoots 2 more arrows 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:
triple-arrow: true
<- Back to the main page[/INDENT][/code][/SPOILER][/INDENT] - Loading...
- Loading...
XenCarta PRO
© Jason Axelrod from 8WAYRUN.COM