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.
-
View User Profile
-
Send Message
Posted Jan 25, 2013@sk3tch2
Go into your plugins folder open up ChestRestock and edit the loot_example.yml it explains quite a bit. Also loot_tables.yml has further info
I -DO- have to admit that I have NO idea how to activate the tables on the chests you want.
-
View User Profile
-
Send Message
Posted Jan 23, 2013@smeths
How do loot tables work? how do you set them up i have an idea what they are used for but the in game desc doesn't explain anything, please help. :(
-
View User Profile
-
Send Message
Posted Jan 20, 2013i have a bug on 1.4.7, plugin only works if container or chest is full, BUMP
-
View User Profile
-
Send Message
Posted Jan 15, 2013ChestRestock doesnt appear to be compatible with Creative worlds (im using it to give players access to blocks that can't normally be obtained).
When i set a chest, all the contents inside disappear.
-
View User Profile
-
Send Message
Posted Jan 14, 2013@CJHacker
It will be in a feature in the future... I plan to someday overhaul how loot tables are designed to make it MUCH easier and more intuitive for the user. I have an idea for how to do this I just need the time.
-
View User Profile
-
Send Message
Posted Jan 13, 2013@Mannollo
Loot is outdated?
-
View User Profile
-
Send Message
Posted Jan 13, 2013@Teecle
Use plugin "Loot" to auto refill chest with random items.
There is an option to use all chest of the map without sign
-
View User Profile
-
Send Message
Posted Jan 11, 2013@sammy3597
I would like to see this feature as well.
-
View User Profile
-
Send Message
Posted Jan 9, 2013Is it possible to use written books in loot tables? Or could this be a possibility in the future?
-
View User Profile
-
Send Message
Posted Jan 8, 2013Is it possible so you can add a radius of how far away a player needs to be before the chest will respawn?
-
View User Profile
-
Send Message
Posted Jan 7, 2013@CJHacker
Thank you so much
-
View User Profile
-
Send Message
Posted Jan 6, 2013@numskull34
You need to use the data: modifier after the id like this:
http://pastebin.com/qsd9QuQn
-
View User Profile
-
Send Message
Posted Jan 6, 2013cant figure out how to do potions in the loot tables file if you do 373:16310 then it dosent work pls help just need to know how i would put that in the yaml file
-
View User Profile
-
Send Message
Posted Jan 4, 2013Any hopes of another dev release now that we're in a new year? Most things work for me, just that darn error when I create new chests. :-/
-
View User Profile
-
Send Message
Posted Jan 3, 2013It works pretty good but when i make a chest that i want loot in and i type /cr create The chest have to be full of things to work, is this a bug or is it anyway i can fix this.
please help me:)
-
View User Profile
-
Send Message
Posted Dec 29, 2012I downloaded chestrestock because i wanted all my chests on my map to spawn random items in them but i dont know how to have them all do that so if someone can tell me step by step how that would be helpful
-
View User Profile
-
Send Message
Posted Dec 27, 20122.3 works with 1.4.6
however 2.3.1 does not, lol (And that is the really fun one!!!)
-
View User Profile
-
Send Message
Posted Dec 24, 2012Doesn't work with the latest beta or dev builds.
-
View User Profile
-
Send Message
Posted Dec 24, 2012please update to 1.4.6!
-
View User Profile
-
Send Message
Posted Dec 24, 2012Updated to snapshot #99, and now when I try to create a new chest, I aim at a new chest, and type /cr create and get this:
http://pastebin.com/WXXbAJ1v
It still appears to work because i can go on an edit the settings, but it keeps spamming that error. I'm using CB #2571 and tried it on #2569. Thanks!