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.
@dumptruckman
its possible ? to fill chest when chest is placed ?
@Eyeball114
Maybe set the period to 86400 (seconds) so the chest restocks once a day?
I can't use /cr create, no matter how I do it, it tells me to first target the chest (I assume it means look at it and have the mouse hover on it so it's highlighted) but nothing else can be done
What do I need to set so that each player can take the stock out once a day?
@dumptruckman
Please help me with my problem down below
I wanna set example there are individual
@KrustyLv
'period_mode' is what determines if the timer counts for individual players or for everyone. I believe the options are 'player' and 'fixed', respectively. Also, you may want to set them to 'unique' also. You can get a description of a property while targeting a chest and typing /cr set <propertyname>
Hey, I really need this plugin for my server, but I dont understand it since I'm not so good with computers and stuff. I will pay $15 for someone that makes me the loot table etc. I already selected the chests in my map. Thanks in advance Please contact me on this mail if you are interested. [email protected]
I have question. When example i take items from chest and i have to wait time for restock, can other players take stuff? Or its for everyone? Hope its individually
@jalapeno122
Maybe it is because you set player-limit: -1. If you want that they get their stuff one time and not more set player-limit: 1
Hello, i have server that we use chest restock on chests at parkours. We noticed that there is bug with restocking, everyone can get infinite things from chest, they instantly restock. Now our economy is ruined because players took valuables from chests and its almost impossilbe to see where they are now. Is this bug or something on config? Settings:
why doesnt it work for me :(
Can you let the chests get restocked by using a command? I want to use it for a minigame
I would like to see you fix firework colors. would love to build a firework show with this mod.
@TorchuVadergear
set chest to unique and loot_limit 1
Is there a way for this plugin to configure single-use-per-player chests?
For example; A new player joins in and opens the chest; gets loot from it and never finds anything in it again. Another new player joins in and opens the chest; gets loot from it and never finds anything in it again.
Please PLEASE keep updating this amazing plugin! Thank you so so much for it!!!! :D
@Nekrage
I don't think period of 0 will work for polling.
@Nekrage
Ya polling does not seem to work correctly. I set the chest respawn to 0 and but put polling on, it NEVER respawns now.
Idk, seems like polling it broken to me.
@dumptruckman
I set the chest to accept_poll and I changed the restock_task_interval to the appropriate time...but still no luck. It only respawns and sends the message once someone opens the chest.
Any idea dumptruckman?