1 chests.yml
Ashen edited this page 2020-08-04 03:04:02 -07:00

chests.yml handles all of your RPG random loot chests! This wiki page is unfinished as there are more loot options and plugin compatibilities that get added to the possible drop tables.

Default Config

'world 59 71 131':

    # Create directly your drop table here.
    drop-table:
        items:
        - 'vanilla{type=DIAMOND} 1 1-3'
        - 'gold{} .9 1-3'
        - 'gold{} .9 1-3'
        - 'gold{} .9 1-3'
        - 'gold{} .9 1-3'
        - 'gold{} .9 1-3'
        - 'gold{} .9 1-3'
        - 'note{min=1;max=10} .9 1-3'
    
    # Ticks the chest takes to appear again.
    regen-time: 40
    
    # The particle played every 4sec around the chest.
    # Types available: helix|offset|galaxy
    # Particle names here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html
    effect:
        type: helix
        particle: FLAME

The name of your chest, in this case "world 59 71 131", defines where the chest is placed. It uses WORLD,X,Y,Z format. You do not actually name your chests, and instead just put different coordinates down where you want a chest.

  • drop-table

This option defines what could possibly be in your chest. It currently supports MMOItems, Vanilla items, MMOCore currency (gold and notes). The format is shown in the default chest.

The 2 sets of numbers after the entry are drop chance and drop amount. In this example .9 (90%) is the chance for the chest to include it, and 1-3 is the randomized amount.

  • regen-time

This is the time it takes for the chest to respawn with randomized loot, in ticks. When a chest is opened and cleared, it will be deleted. Or a chest can be punched to drop all the loot on the ground.

  • Effect

In order to make loot chests stand out, you can put particle effects on them so players know they are special chests. You can also use these particle effects to determine chest tiers. Just give different chests and drop tables, different effects!