★Random Loot Chest★ (Fork) 3.2.0

The perfect reward for your fastest and most active players!

  1. bottomdumber
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    Random Loot Chest
    The Next Generation
    :rolleyes: :rolleyes: :rolleyes:

    Orignal plugin: https://www.spigotmc.org/resources/★random-loot-chest★.26009/
    Author of the original plugin: RestrictedPower

    This fork adds new features:

    • Chests will spawn also on snow, carpet etc. and restore them after disappering
    • Chests will spawn not only under the sky, but also in houses and caves
    • Chest orientation is random: north, south, east, west
    • Allow to disable/enable spawn messages (not only loot and kill messages)
    • There are not only random-position, but also fixed-position chests :)
    Compatible with Multiverse
    Code (Text):

    ########################################################################################################################
    ### Commands and permissions
    ########################################################################################################################
    # +------------------+---------------------------------------------------------+-----------------------------+
    # |      Command     |                      Description                        |       Permission            |
    # +------------------+---------------------------------------------------------+-----------------------------+
    # | /rlc             | Show help                                               | randomlootchest.general     |
    # | /rlc additem     | Open the item sumbition Gui                             | randomlootchest.additem     |
    # | /rlc addchest    | Add fixed chest to collection by right-click on it      | randomlootchest.fixedchest  |
    # | /rlc delchest    | Delete fixed chest from collection by right-click on it | randomlootchest.fixedchest  |
    # | /rlc delall      | Delete all fixed chests from collection                 | randomlootchest.delall      |
    # | /rlc killall     | Clear all random chests from the server                 | randomlootchest.killall     |
    # | /rlc togglebreak | Be able to clear a random chest by breaking it          | randomlootchest.togglebreak |
    # | /rlc forcespawn  | Forcespawn a random chest                               | randomlootchest.forcespawn  |
    # | /rlc rndtime     | Randomize time left to kill/update chests               | randomlootchest.rndtime     |
    # +------------------+---------------------------------------------------------+-----------------------------+
    ########################################################################################################################

    ########################################################################################################################
    ### Common options
    ########################################################################################################################
    # Wolrd where chests will be present (both random and fixed chests)
    World: "world"

    ########################################################################################################################
    ### Random-position chest
    ########################################################################################################################
    # region where chests are spawning
    LargestDinctance_X: 10
    SmallestDinctance_X: -10
    LargestDinctance_Y: 255
    SmallestDinctance_Y: 0
    LargestDinctance_Z: 10
    SmallestDinctance_Z: -10
    # Delay before new chest spawning (seconds)
    SpawnChestPerTime: 10
    # Set to false to disable kill chest
    KillChest: true
    # Time in seconds after which chest will be killed (seconds)
    KillChestAfterTime: 60
    # Message when player is not allowed to break chest
    NotAbleToBreakAchest: "&cYou can't break a loot chest!"
    # Set message '' to disable it at all
    MessageOnSpawn: "&6&l--------------------------------------\n&cA chest has spawned at &ax: &6{X} &ay: &6{Y} &az: &6{Z}.\n&6&l--------------------------------------"
    # Set message '' to disable it at all
    MessageOnLoot: "&6&l--------------------------------------\n&4{Player} &clooted the chest at &ax: &6{X} &ay: &6{Y} &az: &6{Z}.\n&6&l--------------------------------------"
    # Set message: '' to disable it at all
    MessageOnKill: "&6&l--------------------------------------\n&4The chest at &ax: &6{X} &ay: &6{Y} &az: &6{Z} &4has been removed!\n&6&l--------------------------------------"
    # commands (string list) to execute, when player open chest
    CommandsToExecuteOnLoot:
      - eco give {player} 100
    # Chest effect while it is active (for available values see below)
    RandomChestEffect: MOBSPAWNER_FLAMES
    # Chest sound when it is spawning (for available values see below)
    RandomChestSound: NONE
    # Chest sound when it is opened (for available values see below)
    RandomChestOpenSound: CHEST_OPEN|BLOCK_CHEST_OPEN

    ########################################################################################################################
    ### Conditions where chests can be spawned. WARNING! CHANGE IT AT YOUR OWN RISK
    ########################################################################################################################
    # There are three conditions that must be satisfied simultaneously:
    # SpawnBlockCondition - Condition for block which chest can overwrite
    # UnderBlockCondition - Condition for block under chest
    # SideBlockCondition - Condition for blocks on chest sides
    #
    # Conditions chek block material. Each condition is a string with material names and/or materials properties.
    # Use ' ', ',', ';' as separator to specify several parameter in one condition
    #
    # All condition parameters are divided in two groups: positive and negative
    # Positive condition group is checked as "one of ..." and negative - as "not one of ..."
    # Use '!' to negative condition parameter.
    #
    # You can use not only material names, but also material properties. They are:
    # _FUEL_, _RECORD_, _OCCLUDING_, _TRANSPARENT_, _BLOCK_, _BURNABLE_, _EDIBLE_, _FLAMMABLE_, _SOLID_, _GRAVITY_
    # For details see: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
    #
    # There are always additional hard-coded conditions. Chest can't be spawned:
    # over block that have BlockState (see: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/BlockState.html)
    # when there are another chest on the side
    #
    # Example: "!RAILS, _TRANSPARENT_, !SAPLING" means:
    # "Material must be transparent and not of rails or sapling "
    #
    # Plugin saves the block data when chest overwrites it. This is block material and its extra number (for eaxmple CARPET:3)
    # Then it restores that data when chest is disappeared. Also, plugin does not save blocks under the chest, above
    # the chest and on it sides. So, don't set conditions to allow overwrite double plants, long grass, signs etc.
    # They can be restored incorrectly.
    #
    # SpawnBlockCondition works fine with torches, fires, flowers, diodes. You can add them to condition to look
    # how it works. But I recomends to test it first in small region.
    ########################################################################################################################
    # Condition for block which chest can overwrite
    SpawnBlockCondition: "AIR,SNOW,CARPET"
    # Condition for block under chest
    UnderBlockCondition: "!_TRANSPARENT_,!WATER,!STATIONARY_WATER,!LAVA,!STATIONARY_LAVA,!SOIL,!GRASS_PATH"
    # Condition for blocks on chest sides
    SideBlockCondition: "!CACTUS"

    ########################################################################################################################
    ### Fixed-position chest
    ########################################################################################################################
    # Times in seconds after which chest updates its inventory. Time will be random in Min:Max interval (seconds)
    FixedChestUpdateTimeMin: 10
    FixedChestUpdateTimeMax: 20
    # Fixed-chest effect when it is updated (for available values see below)
    FixedChestEffect: EXPLOSION
    # Fixed-chest sound when it is updated (for available values see below)
    FixedChestSound: DIG_GRASS|BLOCK_GRASS_BREAK

    ########################################################################################################################
    ### Inventory GUI
    ########################################################################################################################
    Inventory_Name: "&cCongratulations!"
    Inventory_Slots: 27
    ItemAmountToAdd: 5

    ########################################################################################################################
    ### Effects and Sounds values in options
    ########################################################################################################################
    # Use NONE as value to disable any effect/sound option or use legal name
    #
    # Legal effect names you can find here:
    #   https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Effect.html
    # you can also use particle names as effect (for spigot 1.9 and above.
    # Plugin first tries to find value among effect names and then (on failure) among particles names.
    # Legal particle names you can find here:
    #  https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html
    #
    # Legal sound names you can find here:
    #   https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
    #   https://dev.bukkit.org/projects/justsound/pages/sound-list
    # Note: Sounds names for 1.8 and 1.9-1.12 are different
    #
    # You can also specify several effects/sounds in one option, but only first available value will be used
    # Use '|', ' ', ',', ';' as separator to specify several values in one option
    # This is useful to set value both for all versions of spigot servers
    # If first value is not found on current spigot server, then second value will be analyze. And so on,
    #
    # Notes. To help you with effect and sound values, plugin writes three files to plugin folder (if they are absent):
    # legal_effects.txt, legal_particles.txt and legal_sounds.txt. You can look for available values there.
    ########################################################################################################################

    ########################################################################################################################
    ### When you completely configure plugin set EnablePlugin: true
    ########################################################################################################################
    EnablePlugin: false
     

    Installation:
    1. Download plugin and place it to "your_server/plugin" folder
    2. Restart Server. At first time plugin will be disabled.
    3. Open "your_server/plugin/config.yml" and adjust options you want. At the end, set EnablePlugin: true
    4. Restart server again
    Upgrading old version:
    The new config.yml is little different than it was in version 2.0. Some new options have been added, some have been deleted and some options have changed their names. After replacing old plugin with new one and restarting server you will see a message in the console that you need to fix the configuration file. This message will be appeared every time the configuration file does not meet the requirements. Also, you will see config-example.yml in the plugin folder. Change your config.yml in accordance with config-example.yml and restart server again. Plugin should understand the old format of the file database.yml, so you don't need to change or delete it.

    Please, post all bugs and questions to "Discussion" section (not in reviews)

    Thank you for viewing this resource! And many thanks to RestrictedPower, who had created so wonderfull plugin :)
    If the author wants, then I will gladly give him the source code
    Positive reviews welcome, not only here but also there :)
    insanerc, Osqai, rukzen and 1 other person like this.

Recent Reviews

  1. Choubatsu
    Choubatsu
    5/5,
    Version: 3.2.0
    This is an amazing plugin! Can you add tier 2 chests? So tier 1 chests where u can configure and tier 2 chests are enderchests with much better items :)
  2. AsCrAnyelo
    AsCrAnyelo
    5/5,
    Version: 3.2.0
    Update to 1.14 what I read this super plugin and I would like to use it on my server :,3
  3. HenrikoMagnifico
    HenrikoMagnifico
    4/5,
    Version: 3.2.0
    Great plugin, except the loot inside the spawned chests doesn't stay when the plugin is removed, causing the spawned loot chests to become empty normal chests. If the loot could stay even after the plugin was removed I would give 5 stars instantly!
  4. lehuubi
    lehuubi
    5/5,
    Version: 3.2.0
    -------------------------------------
    Best plugin random chest
    tks author ... goodluck day !
    -------------------------------------
  5. Drexl_Levante
    Drexl_Levante
    5/5,
    Version: 3.1.2
    Very nice plugin. Is there a simple way to turn off random chests and only use fixed for loot tables?
  6. silent322
    silent322
    5/5,
    Version: 3.1.2
    thank you, this is a great plugin.
    and thanks for update to 1.13.2. Love this plugin
  7. 01627221464
    01627221464
    5/5,
    Version: 3.1.1
    -------------------------------------
    How to position it with api
    -------------------------------------
  8. ekoro
    ekoro
    5/5,
    Version: 3.1.1
    you're a life saver. been looking for a plugin like this everywhere. .
  9. Supreme123452
    Supreme123452
    4/5,
    Version: 3.1.1
    Very good Plugin, but when will it update to 1.13? Pls update than i will give you 5 stars!
  10. juniorcraft2008
    juniorcraft2008
    5/5,
    Version: 3.1.1
    SpawnBlockCondition: "AIR,SNOW,CARPET,STEP,STAIRS,FENCE"

    Help me for this list!
    1. bottomdumber