Chest Randomizer
Description
This is a plugin that allows you to randomize the contents of a chest. This can be useful for minigames such as: Skywars, HungerGames, and games that require any random chests.
Features
- Configurable item list
- Configurable Messages
- Configurable Percentages
- Allows for systematic resetting of chests through console and command blocks
- Auto-Updater
Quick Start
Give yourself the permission node: 'cr.*'
Then type /cr randomize as a player to place a chest at feet level containing random items in it.
Permissions
| Permission Node | Default Value | Description |
|---|---|---|
cr.*
|
op | Allows access to all the commands |
cr.access
|
op | Allows the use of /cr |
cr.randomize.*
|
op | Allows the use of all /cr randomize groups |
cr.reload
|
op | Allows the use of /cr reload |
Commands
| Command | Permission | Description | Arguments |
|---|---|---|---|
/chestrandomizer
|
cr.access | Allows you to see all command | admin, randomize, reload, metrics, updater |
/chestrandomizer admin
|
cr.admin | Admin commands | add, create, remove |
/chestrandomizer admin add
|
cr.admin | Adds the item in your main had to the specified group | /cr admin add <percent> [group]
|
/chestrandomizer admin create
|
cr.admin | Creates a group with the specified name | /cr admin create <name>
|
/chestrandomizer admin remove
|
cr.admin | Removes the specified group | /cr admin remove [group]
|
/chestrandomizer randomize
|
cr.randomize | Places a chest at feet level with randomized contents | /cr r <group> <x> <y> <z> [facing] [world]
|
/chestrandomizer reload
|
cr.reload | Reloads chestrandomizer’s config files | N/A |
/chestrandomizer updater
|
cr.updater | Allows force-updating and opting in/out of updating | opt-out, opt-in, update-now |
/chestrandomizer metrics
|
cr.metrics | Allows opting in/out of metrics logging | opt-out, opt-in |
To-do:
- Leave suggestions in the comments or pm me
Configuration
The configuration is self-explanatory.
The auto updater will only connect to bukkit.org. The auto updater can be disabled in the configuration file.
This plugin sends statistics about the usage to the server http://mcstats.org/ This can be disabled in the config
This plugin uses only code I have made with a few exceptions. Gravity's Auto Updater and Hiendra's Plugin Metrics have been included.
-
View User Profile
-
Send Message
Posted Jul 6, 2017Is there a way to limit the amount of items that can be in a chest?
If not, please can you make one?
-
View User Profile
-
Send Message
Posted Apr 1, 2017Make it so you can change dropper inventories too
-
View User Profile
-
Send Message
Posted Nov 21, 2015@zeh1mRAAAH
The data value is meant for changing the color of glass, wool, etc. A update containing enchantments will be released soon.
-
View User Profile
-
Send Message
Posted Nov 21, 2015@Mrsnuffle1
The redstone blocks are set in the configuration as a default place holder.
-
View User Profile
-
Send Message
Posted Nov 21, 2015@Jacke1012
You should be able to do: /cr r <x> <y> <z> <facing> [world] and it should replace the chest already there. For example: /cr r 0 100 0 north
-
View User Profile
-
Send Message
Posted Oct 25, 2015Hi!
I'd like to add enchanted armor. Tried '- 50% 310 protection:4'
console gave error in reading the item. Also tried 310:#1 (iteminfo / itemDB) but none of them work. Would love to see this work!
Great plugin anyway.
-
View User Profile
-
Send Message
Posted Oct 25, 2015How can I add like Prot IV diamond chestplate into the randomization?
-
View User Profile
-
Send Message
Posted Oct 4, 2015Well you type in as you know the item id : - 60% 50 That means that i got 60% of getting a torch in my chest you dont use - 60% torch that doesnt work Hope this helped you
-
View User Profile
-
Send Message
Posted Sep 9, 2015If i do cr randomize i get redstoneblocks in the chest what do i do please help me
-
View User Profile
-
Send Message
Posted Aug 17, 2015Hi! Your plugin is awesome and I have an idea for it. Could you add a feature where it handles the items spawned in generated chests throughout the world? Basically any chest not placed by a player would be randomly filled by this plugin.
I'm using the plugin Terrain Control, so I'm looking for a method to fill the chests in custom spawned dungeons! Thanks for your time <3
Wrenn
-
View User Profile
-
Send Message
Posted Aug 6, 2015Is it possible to place down a chest and then just hit a command and the chest that is already placed down will get randomised?
-
View User Profile
-
Send Message
Posted Jul 9, 2015@spooksdf
I think an API would be good too. The only features it would really need would be a reset feature to reset chests. All other stuff can stay in the config.
Edit: Maybe a config reload feature too.
-
View User Profile
-
Send Message
Posted Jun 26, 2015@stefvanschie
There currently is not. What are some features you would like the API to have? I'm planning on releasing it in a later version.
-
View User Profile
-
Send Message
Posted Jun 25, 2015Is there an API for this, so I can hook into it?
-
View User Profile
-
Send Message
Posted May 5, 2015it would be nice to have chest thet can have iron an the oter chest will never have iron so you can use it as a tear sistem like T1 hase the basic stuff but like T5 has diamonds an obsidian an you can set the difrent inv in the config an have the commands be like
/rc Tear [the tear level]
if you implement this you can have a lot more freedom whit the chests
-
View User Profile
-
Send Message
Posted Mar 5, 2015@KreatorB The config file and a fix for the direction of the chest will be added in 2.0 update.
-
View User Profile
-
Send Message
Posted Mar 5, 2015this is a great start. but I think if you ALSO set a time option for respawn of chest and or player area entry into game. Also would love if you made the item config work so we can control the chests. Last little thing the chest always face one direction. Thank you
-
View User Profile
-
Send Message
Posted Feb 15, 2015If you can add percentage chances to the configs then I would use your plugin.
-
View User Profile
-
Send Message
Posted Oct 14, 2014Please add new support with lore :D
and if you have time add new support with mod items :P