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.
I have no bloody idea what I'm doing...
Is there a more comprehensive video tutorial on this??
Sorry, I'm a noob through and through.
I guess I'm looking for an explanation of where I can find ALL the possible commands, what each of them means, and what I should be typing in to get the result I want, which is to have all chests on my map stock themselves with loot from a loot table that I can set.
I THINK that's what this mod is...
The 1.17 of Spigot is our for now..
so here som issue that accour currently
Does it work on 1.12.2?
In reply to bestgamer2008yt:
Yes!
In reply to bestgamer2008yt:
We are using this plugin on our 1.16.5 Server :-)
We are using a version 2.5.0.
In the console its called ChestRestock vmaven-version-number*
(You can change that by yourself in plugin.yml, replace it with 2.5.0)
This Update Version that Even works with 1.16.5 you find on the github page of the Developer Fabrimat.
Looks like he took over this plugin long time ago and made it to 2.5.0 alllready
Link here - Release 1.13 compatibility · Fabrimat/ChestRestock (github.com)
Hey is there a chance you could make a 1.8 version? My friend and I are setting up a PVP server slimier to Hypixel's Blitz and we would like a 1.8 version to randomize loot around the map. If not then that's ok but it would be very appreciated if you could.
Is there 1.14.0 Version?
In reply to Forge_User_33022748:
Test version 2.5.0
Love to see a update for this..
Get the following with latest 1.13.2
anyother plugin like this that it is 1.13?
In reply to realtoyz62108:
Use version 2.5.0
Update 1.13?
does it work now on 1.13?
how do i view how much time it got left to restore?
Will there be a 1.13 version for the plugin?
El peor plugin que e visto
ok no es el mejor :D
Hey I run a factions server and I have 4 loot chests that are with this plugin and they are in a protected region but my users can't open this can someone help me please.
Anyone know a way to get fireworks in the loot table ( or can this be added if not)
I see they work in the chest but not having any luck converting it over to the loot table
I would love to make my evening fireworks show more randomized..
I have several droppers (set to restock once a MC day) that drop into hoppers feeding offset timed dispensers. and would be nice to have a loot table to randomize things more.. and this plugins loot randomization options look amazing!!!
I have a question about items not staying in chests. I went and had a look at the particular chest that appeared to have nothing in it, even after a /cr restock and a /cr restockall command. i did read something in your notes about chests that are inactive for a while may loose their inventory? You mentioned it had something to do with garbage collection settings? If the chests inventories were wiped because of this, how do i fix that? The yml for several of the chests have this "null" for every space like below -
player_limit: '10'
unique: 'true'
name: ''
restock_mode: replace
period: '900'
indestructible: 'true'
players:
Masta_Rynz:
restockCount: 2
lastRestockTime: 1509256883697
period_mode: player
only_restock_empty: 'false'
loot_table: ''
enabled: 'true'
global_message: ''
accept_poll: 'false'
preserve_slots: 'true'
items:
- null
- null
(The rest of the spaces I removed to shorten this message but they all say the same thing as above^)
lastRestockTime: '0'
redstone: 'false'
other chests that have items in them have a AIR block in the empty item spaces instead of a - null. so.... huh?
In the config if I remember correctly, I have the chests setup to restock for each player up to 10 times and restock every 15 minutes. It looks like the chests I have taken items from all have this "null" thing going on with them and these chests wont restock with the command. Maybe its something as simple as me not setting something up in the config? Anyways - I am not getting any errors in game or in the console and the plugin is responsive so what am I doing wrong here if anything. here is a copy of my config. As far I know I have it configured to restock each chest 10 times for each player and restock is suppose to happen every 15 minutes for each player and its time is based on when a player has taken items. How come some chests are empty and wont restock? Thank you for any insight you may have regarding this issue im having! Here is a copy of my config-
I removed the notes in the config to make this copy of my config shorter for this message.
player_limit: '10'
unique: 'true'
other:
auto_create: 'false'
empty_loot_table: ''
auto_create_new_chests: 'false'
name: ''
restock_mode: replace
period: '900'
indestructible: 'true'
period_mode: player
only_restock_empty: 'false'
loot_table: ''
enabled: 'true'
global_message: ''
accept_poll: 'false'
preserve_slots: 'true'
redstone: 'false'
In reply to masta_rynz:
How do I "target" a chest?