ChestRestock
This plugin allows admin to set up chests that automatically restock based on configurable parameters. This will allow you to create special chests for a variety of situations. You could create a chest for people new to your server containing a set of starter gear that they can only loot once. Or make reward chests in dungeons where you don't have to worry about them being empty. All kinds of things are possible!
Features:
- Automatically-restocking chests
- Chests can either add to or replace their current stock
- Configurable restock period
- Can either be set to start timing based on the time a player last opened the chest or at fixed intervals
- Can be set to preserve the position of the items in the chest
- Restocking chests are indestructible by default
- Limit # of times a player may loot each chest
- Restock chest by command
- Full multi-world support
- Chest naming
- Unique properties per chest (for any of the chest properties)
- Global default settings for all chests and optionally world specific defaults
- NEW in 2.0 Option for chests to have unique inventories per player (No loot theft!)
- NEW in 2.0 Option for chests to redstock when they receive redstone power
- NEW in 2.0 Commands are more dynamic
- NEW in 2.0 Now works with ANY block based inventory (dispensers, crafting benches, etc)
- NEW in 2.1 Option for chest to broadcast a global message when it restocks
- NEW in 2.2 Randomized loot for chests!
- NEW in 2.3 Command to restock all chests or chests with specific names and/or in specific worlds
- NEW in 2.3 Ability to set all chests in a world to restock with what is currently inside of them (This is limited by default to NOT include newly created chests!)
Instructions
- Place ChestRestock.jar in your plugins folder.
- Start your server.
- Type while in game for a list of commands
/cr
- Or target a chest and type This will set up the chest with default settings (adjustable in config.yml) and will restock with the items currently in the chest.
/cr create
Permissions
All permissions are default: OP
- chestrestock.*: grants all permissions
- chestrestock.cmd.*: grants all command permissions
- chestrestock.cmd.<cmdname>: grants specific command permission
- chestrestock.break.*: allows breaking any chest
- chestrestock.break.<chestname>: allows breaking specific chest
- chestrestock.bypass.lootlimit.*: allows unlimited looting of any chest
- chestrestock.bypass.lootlimit.<chestname>: allows unlimited looting of specific chest
- chestrestock.cmd.*: grants all command permissions
Further Help
- Type /cr help for a list of commands.
- Type /cr set while targeting a chest you have initialized with /cr create to see a list of properties you can set for it.
- Type /cr set <propertyname> to see a description of what the property does.
- Type /cr set <propertyname> <value> to set a value for a property.
- global_defaults.yml contains default chest settings for when a world does not have a specific default.
- defaults/<worldname>.yml contains default chest settings for specific worlds.
- If a default setting is missing for a world, the default in global_defaults.yml will be used.
- Loot Table Tutorial
IF YOU ARE HAVING LOOT TABLE PROBLEMS
First, go here: http://yaml-online-parser.appspot.com/
Paste your loot table file into the left-hand box. If it says you have problems in the right-hand box, this is why it doesn't work for ChestRestock.
Yaml is a very particular file format and it doesn't like when you don't enter things correctly. Read a tutorial.
OK, Someone please help me!!! I have made a MineZ map and have filled up all the chest dispensers and furnaces and now I want to know how to I set them all so they restock with the same items they have inside? I want them to restock about 3 minutes after someone takes the items but how to I do this? I dont want them to fill with random items, I just want it to restock every 3 minutes. Please help I am reaching my deadline for my server pay and havent started my server because of this problem!!! If this plugin doesnt have the features I want can someone tell me another plugin that does?
It would be cool if you could set it so a player can take the items once per day, hour etc.
How can you make it so all chest in a world restock automaticlly?
Please add a permission node to be able to open these chests.
I want a vote reward to be "You can now open the chest at spawn" i.e the chest restock chest
@dumptruckman
Works great! Thanks a lot!
@xlii1356
2.3.1-SNAPSHOT-b100
@dumptruckman
Sorry, is that the next version, or the current version?
@xlii1356
The latest version should be able to support them.
@ongakuneko
This is already possible. If not by simply doing chance: 0.0001 then by creating a sub section with a chance: 0.01 in a section with a chance: 0.01
Great plugin! Could you possibly add in a lower chance rate some thing like 0.001 (0.1%) or even lower like 0.0001 (0.01%) because that would make really rare items appear alot less frequently :) Thanks!
Is there anyway this plugin could support named items? Thats the only issue I've ever had with it
nice pluging and work fine for me
@zrocweb
This doesn't work to my
can you help me?
@Saberstormer
This doesn't work to my
can you help me?
Not sure if this has already been pointed out but enchated books and written books don't save their data. The books just appear blank.
Hi all, the plugin works fine but i have just one question. I really want to make all the chests on the world restock (NEW in 2.3 Ability to set all chests in a world to restock with what is currently inside of them (This is limited by default to NOT include newly created chests!)) but i dont know how.
@Saberstormer
U have to set player_limit to 1
can some one please explain how i can set it up to be so that players can only loot the chest one time for each player.
i tried to set the player_limit: '-1' to 0 but that didn't change anything if the restock time is for example 6 seconds
@Adondriel @PAL18 @Xikage @jellehen @hatanu
To all of you stating your chests won't restock properly. It would appear you did not read the == BIG FAT WARNING == in the patch notes. I apologize that it had to happen this way but given my very limited time I am able to put into working on this plugin AND the fact that the issue that broke everything to begin with, there was just no way I could produce a reliable converter. Backup all your old files, delete the originals, go through and manually recreate them. Alternately, if someone can produce a converter tool to automatically convert them it would be MUCH appreciated.
@Adondriel
Somehow you have faulty data in one of the yaml files. You may just need to delete the invalid file and recreate the chest.
@kyxoan
This works fine for me in the latest version.
@StealthOO7
Make sure the chest's unique property is FALSE
Just a bug for you, if you use a trapped chest and create a refillable chest it will loose it's functionality with redstone
@Xikage
My problem is i just read the changelog, and you made it so that with the new update, ALL of my chests break. we have about 120 chests that our server uses. So theres a bit of a problem there, any way you could convert the old files oveR?