ModsJava
ChestRegen
PLEASE REVIEW & MAKE ANY POSSIBLE RECOMMENDATIONS IN DISCUSSION PAGE! Purpose: This plugin creates a chest that automatically restocks on a custom time…
⬇ Download on SpigotPLEASE REVIEW & MAKE ANY POSSIBLE RECOMMENDATIONS IN DISCUSSION PAGE!
Purpose: This plugin creates a chest that automatically restocks on a custom time interval! Possible uses are giving the first players to it get a reward, or maybe first person on in the morning or something! I'm not creative but I'm sure you can find some uses!
Explanation
Requirements:
Commands:
Permissions:
= ChestRegen.admin - Gives you perms for everything
Notes:
Donations: Although this plugin isn't very big, I don't charge for very much so if you wish to support me _- https://paypal.me/AaronSkeels -_
Purpose: This plugin creates a chest that automatically restocks on a custom time interval! Possible uses are giving the first players to it get a reward, or maybe first person on in the morning or something! I'm not creative but I'm sure you can find some uses!
Explanation
Spoiler: Show How To Use
Find a completely normal chest.
Setup the chests inventory to what you want constantly restocked.
Rules for command:
- If you wish to add a custom time, add t:timeInSeconds to /cr create
- If you wish to add a custom chest name, add n:Name to /cr create
- You don't need to include either a t: or a n: value if you don't want to
- If you want to include a space in your chest's name, use a '\' in its place
(For example this chest's name would be _-Spawn Chest-_
- Order of t: and n: doesn't matter, as long as they are either there or not
Upon creation fireworks will spray out and it will officially be made a regenerating chest.
If you now open the inventory, it will appear different. The name will take effect and if you click items something special happens.
When you click an item it is put directly into your inventory or the click is cancelled if your inventory is full so you can't just drop stuff on the ground and horde.
Now that you have made the regenerating chest, if you wish for it to begin regenerating, restart the server. Upon restart it will automatically regen and if you set the time too high it might spam an annoying message, you can disable that in the config. To restock on will, look at a regenerating chest and type /cr restock. It will restock, a (optional) firework will shoot off, and a (optional) message will broadcast alerting players of where the chest is!
An example of the message displayed upon regen...
Chest inventory restores to exact same state as when set!
Setup the chests inventory to what you want constantly restocked.
Rules for command:
- If you wish to add a custom time, add t:timeInSeconds to /cr create
- If you wish to add a custom chest name, add n:Name to /cr create
- You don't need to include either a t: or a n: value if you don't want to
- If you want to include a space in your chest's name, use a '\' in its place
(For example this chest's name would be _-Spawn Chest-_
- Order of t: and n: doesn't matter, as long as they are either there or not
Upon creation fireworks will spray out and it will officially be made a regenerating chest.
If you now open the inventory, it will appear different. The name will take effect and if you click items something special happens.
When you click an item it is put directly into your inventory or the click is cancelled if your inventory is full so you can't just drop stuff on the ground and horde.
Now that you have made the regenerating chest, if you wish for it to begin regenerating, restart the server. Upon restart it will automatically regen and if you set the time too high it might spam an annoying message, you can disable that in the config. To restock on will, look at a regenerating chest and type /cr restock. It will restock, a (optional) firework will shoot off, and a (optional) message will broadcast alerting players of where the chest is!
An example of the message displayed upon regen...
Chest inventory restores to exact same state as when set!
Requirements:
- Java 8, NOT JAVA 7.
Commands:
- /cr create [t:timeInSecondsForRestock] [n:nameOfChest]
- /cr remove
- /cr restock
Permissions:
= ChestRegen.admin - Gives you perms for everything
Notes:
- The configuration is somewhat in depth and can (possibly) be confusing. If you have any questions just let me know and I will help you out as fast as I can!
- You can use ANY item in this! This includes custom enchantments, lore, item names, anything that you can add to an item!
Code (Text):
##########################################################
# Chest Regen Config #
##########################################################
Prefix: (ChestRegen)
#This is the prefix before all messages from the plugin.
Primary_Format: '&b&l'
#This would make plugin name bold and blue. Make sure you put it all in proper order!
Secondary_Format: '&c'
#This would make help messages red.
Announce_Chest_Restock: true
#Announces when a chest has been automatically restocked.
Chest_Restock_Fireworks: true
#Launch fireworks off above automatically restocked chest?
Announce_Manual_Chest_Restock: true
#Announces when a chest has been automatically restocked.
Manual_Chest_Restock_Fireworks: true
#Launch fireworks off above manually restocked chest?
##########################################################
# Permissions #
##########################################################
# ChestRegen.admin
#- Gives permissions to do all commands
# Chest Regen Config #
##########################################################
Prefix: (ChestRegen)
#This is the prefix before all messages from the plugin.
Primary_Format: '&b&l'
#This would make plugin name bold and blue. Make sure you put it all in proper order!
Secondary_Format: '&c'
#This would make help messages red.
Announce_Chest_Restock: true
#Announces when a chest has been automatically restocked.
Chest_Restock_Fireworks: true
#Launch fireworks off above automatically restocked chest?
Announce_Manual_Chest_Restock: true
#Announces when a chest has been automatically restocked.
Manual_Chest_Restock_Fireworks: true
#Launch fireworks off above manually restocked chest?
##########################################################
# Permissions #
##########################################################
# ChestRegen.admin
#- Gives permissions to do all commands
Donations: Although this plugin isn't very big, I don't charge for very much so if you wish to support me _- https://paypal.me/AaronSkeels -_
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
ChestRegen is a free Minecraft Java mod. Downloaded 983 times (via Spigot). Download it and open it directly in the game.