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.
wondering if you will add support for 1.4.6 r0.1 re: fireworks at the moment all firework related items revert to default form upon creation of restocking chest.
i know its early since 1.4.6 was only just released but just wondering when
Could you please remove the version number from the download? It is unnecessary and makes it more difficult to install because unless you remove the version number, it will cause a bunch of errors becuase you have two of the same plugin on the same server. It is not needed because most server hosts have a pretty good method of keeping track of their plugins to update and if they dont, they can always check the plugin.yml in the .jar. Thank you.
Aiming at a chest... /cr create
''An internal error .... lala''
Hi there :) I downloaded this plugin which is a fantastic idea perfect for what I need but I have obviously done something wrong and was looking for a bit of guidance from anybody who has worked with this plugin if possible please. I have set the chest with the player limit set to '2' but my players can continuously pull the items out more than two times and i have no idea what I have done wrong. If anybody could help would be much appreciated Cheers :)
Sounds awesome - will probably replace the "Replicator" plugin I'm running just because of all the user-side features. :)
Time to make a completely out-of-theme dungeon! :D
New update is amazing.
There is only one thing that I need to run server. This plugin to suppert written books, desrtoyed items and named items.
Is there a way to check a players chest restock? So for example if i give players a chest at spawn and they take all but one item is there a way to check that chest to see what they take? If not that would be cool. maybe make a command like /cr <PlayerName> Then u open the chest and it shows what they see!
Is it possible to change that only one person can loot the chest?
How about adding a database option? Our superflat world is 1 week old and has accumulated 4000 files. Startup takes forever…
Its still working perfectly for me with the latest dev version of craftbukkit.
Is it possible to set written book as loot/named item/ or damaged armor?
@S1lverK3y
As I explained in the private message you sent me, ChestRestock DID NOT BREAK with the latest Bukkit changes. If you don't stop pestering me with these messages I am going to delete any further comments and ignore any of your requests for help.
ChestRestock is Plugin #112 that broke with the latest Bukkit API changes. Please update it soon. Also, still much better than every other Chest-Regeneration out there. Don't drop this gem.
WTF I did wrong... The file my_loot.yml is located in the folder "loot tables".
jon67 are your chests unlocked? Are they placed in a protected area (world guard) where you did not use the flag to enable chest access?
nice looks good, can't wait to add it to my server!!! :D
Can you add Multiverse-Core to the soft depend? I don't use the adventure and I think your plugin loaded before multiverse-core I got errors that it couldn't find some worlds
hello, ive sent you a pm, but now i write it here also
i have a server, where is have a advent calender, but the chests cant be accessed by the players, only admins, but why cant my players access chestrestock chests
please help me
I found a puzzling “feature” – when using a loot table, not only all chests in the world are populated with loot, all furnaces too. This might be good for custom maps, but for a map with NPC villages, it’s kind of terrible. Can we have a preference to limit map-wide restocking only to chests?
Or maybe I’m stupid and I don’t know how to use loot tables. I know that in NPC villages chests have random loot (which I want to restock… but also make it so that every player gets different loot, not for example the same 3 diamonds, 1 iron pick and 2 apples) and furnaces are empty. If I disable loot tables and restock chests, it works (but as I said, loot is always the same)… but if I use loot tables, furnaces gain loot in their slots. It’s a bit ridiculous if you ask me.