Home›Java›Mods›★Random Loot Chest★ (Fork)
ModsJava

★Random Loot Chest★ (Fork)

★ Random Loot Chest ★ The Next Generation Orignal plugin: Author of the original plugin: RestrictedPower ​ This fork adds new features: Che sts will spawn…

⬇ Download on Spigot
★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:

Compatible with Multiverse
​
Spoiler: Commands+Permissions+Config
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 :)

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

★Random Loot Chest★ (Fork) is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 10,458 times (via Spigot). Download it and open it directly in the game.

Explore more