Configure drops

ENTITY

With this you set components(commands) to run when you will kill an entity/entites

# For an entity
entity: ZOMBIE
# For more then one entity
eneties:
  - ZOMBIE
  - SHEEP
# For an selection of mobs (HOSTILE/PASSIVE/ALL)
entity: HOSTILE
# or
entity: PASSIVE
DROP VALUE
# Any value 
drop_value: 10
# Random decimals values from x to y (4.3,5.3,1.6,7.5)
drop_value: random_decimal(x,y)
# Random integer values from x to y (4,6,2,5)
drop_value: random_number(x,y)
DROP CHANCE

Here you can set a drop chance from 0 to 100

# Any value from 0-100
drop_chance: 100
DROP ACTION
# Any value from 0-100
drop_chance: 100
REQUIREMENT
# Example
requirement: "check(permission;flaremobcoins.example)"
# for more then one
requirements: 
  - "check(permission;flaremobcoins.example)"
  - "check(mobcoins;1000)"

Examples

drops.yml
entity:
  zombies:
    entity: ZOMBIE
    drop_value: random_decimal(1,2)
    drop_action:
      - "[mobcoins_give] %pl_mobcoins%"
      - "[title] title=&2&l+%pl_mobcoins% subtitle=You killed a mob and recived %pl_mobcoins%"

Last updated