Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
viktorstrate edited this page Nov 15, 2014 · 7 revisions

Config Setup

The config file is located under ~/plugins/RandomRewards/config.yml

###Adding custom items Example on, how to change the rewards.

rewards:
  - (ITEM_ID) [AMOUNT] [DATAVALUE] [ENCHANTMENTS]

Change (ITEM_ID) to a item id fx. 276 for a Diamond Sword
You can find item id's here Minecraft ID List. Only the item id is required.

[AMOUNT] is the amount of items the player will get, if he gets that item.

[DATAVALUE] is the datavalue of the item, fx. black wool has a datavalue of 15.

See how to add custom enchantments, for more information on enchantments on items.


Adding custom enchantments

rewards:
  - 276 [NAME] [LEVEL]
  - 276 unbreaking 2 sharpness 3

[NAME] is the name of the enchantment, see the list down below for avaliable enchantments.

[LEVEL] is what level the enchantment is, fx. unbreaking II is level 2

Name Description
protection Gives protection
fire_protection gives protection against fire
feather_falling Gives protection against falldamage
blast_protection Gives protection against explotions
projectile_protection Gives protection against projectiles fx. arrows
respiration You can be under water in longer time
aqua_affinity Faster to break blocks under water
thorns Dammages anyone who attacks you
sharpness Item does more damage
smite More damage against undead
bane_of_arthropods Deals more damage to "arthropod" mobs
knockback Pushes the entity it hits away
fire_aspect Sets entities on fire
looting Entities drop more items
efficiency Breaks blocks faster
silk_touch You get the precise block you're mining
unbreaking More durability
fortune Mined blocks drop more items
Power Arrow damage increases
punch Arrow knockback
flame Arrows sets entities on fire when hit
infinity Bows doesn't use up arrows
luck_of_the_sea Decreases the chance of catching worthless junk
lure Increases the chance of fish biting your hook

Default config.yml file

View config.yml file

Clone this wiki locally