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.
okay well it was just a suggestion. I see dispenserator plug in does it , Maybe i will ask them to add chest restocking support =)
@tarahere81
Regarding books and renamed items… Bukkit needs to add an API for those NBT tags, many plugin authors don’t want to code that themselves and possibly lose all this work with each Minecraft release.
This plug in only works for dispensers if you click on the dispenser to "update it" and trigger the restock.
Also, This plug in could use some written book support love =) And maybe some Anvil rename support on weapons/armor as well =)
Can you make this work with dispensers as well?
1 question: I set in random loot to always place one of these weapons in chest: bow, iron sword or diamond sword. Bow have other enchants than swords. problem is sometimes chest isnt spawning weapon, there is no sword, no bow... i did somth wrong in this code?:
http://pastie.org/5427445
Hello dumptruckman, thank you for making this plugin. It’s fixing the biggest obstacle on my superflat server where resources are scarce and new players join constantly.
I have a small issue that I’m not sure is even worth fixing, but I thought I would let you know.
The overlap is worrying me… it’s almost like the randomizer didn’t try making a brand new set, but used existing information – based on the very first chest contents.
Here are my files:
Version of the plugin I run:
Build #98 (Nov 8, 2012 3:55:02 PM)
Thank you!
@aczchef
The link is at the bottom of the main page... However, 2.3 is the last build with actual changes: http://dev.bukkit.org/server-mods/chestrestock/files/17-2-3/
i was sure this was abandon link to jenkins plox?
@S1lverK3y
Le sigh... This plugin isn't abandoned. Until someone can provide some evidence of it not working then it IS working. Eventually I'll get around to adding features but I'm currently the main developer for Multiverse and have been working furiously on updating that.
As far as the request for Item meta data... This will probably not be added UNTIL Bukkit has API for it.
He aborted the last Jenkins build. Two weeks ago. Sad, but i think its true: This Plugin might get abandoned :< Seems so. To dumptruckman: Don't you dare to abandone it!! In my opinion, it was, it is and it will be the best Bukkit Loot-Plugin forever. Don't give it up, dear Dev. Add the latest NBT/Datavalue stuff like written books, Renamed (Anvil-ed) Items and other stuff with custom values, but: Take the time you need Thanks, S1lver
cool plugin, but would be nice if You could add option for more random generating chests loot. For example: I put 6 items in loot table, then set plugin to refill 1 of those item all the time, and next 2 will be chosed randomly (but they cant be same). What u think about it?
My chests won't restock in Bukkit for 1.4.4 :(
everything works, but when the server gets reloaded my loot_tables.yml gets wiped to default.
If I dont reload the server, the loot_tables.yml is pulled correctly...I wonder if I change the name....hhmmmm.
help me dumptruckman!
I want to donate, but have to get this straight first!
ok. so i decided to check it out anyway. But it doesn't seem to be giving me the permissions. I'm using essentials group manager. Is it not supported, or whats up?
funny thing is if i set - chestrestock.cmd.help i can see the help menu, but no commands. Seems like - chestrestock.* isn't working.
I'm running 1.3.2, so i know i can't exactly complain. But just wondering ^^
ps. Where can i find a full command/permissions list?
@berserkvampire
Not to be mean, but if you don't know how to install a plugin, you probably ought not be running a server.
can someone post a video on how to install this plugin and how to use it and mak eit work for my quest server owo
soe.... this haven't been updated to 1.3.2, and 1.4 is out... is it abandoned?
Thanks. I mainly just wanted to know if this was abandoned or not. I will try what you mentioned.
@bizzig
Good luck finding something similar that works. I can almost guarantee you your issue is because Bukkit 1.4.2 only JUST made it to beta and there are still bugs! Not to mention 1.4.2 Minecraft is quite buggy itself.
If I had to guess at a more specific reason for this not working, Virtual Inventories are probably malfunctioning. If you disable the unique property for your chests they may work as intended.