-
Notifications
You must be signed in to change notification settings - Fork 4
Creating refillable chests
In examples below, we have used chest as a container, but you can use anything you want.
Command => /cr create [name]
To create a refilling chest you need to first place a normal chest somewhere in the world and place items in it which you want to regenerate.
After preparing your chest, you need to type /cr create [name] to toggle refilling chest creation mode and then right click on the chest to convert it to refillable chest. Take a note here that you don't need to type chest name if you don't want to. You can change your chest name later if you want.
So, the chest is now marked as a refillable chest and will restore its content after 2min. Don't worry, this time can be changed. 😄
Command => /cr update
Let's say you want to update the contents of a chest and change items which are regenerating.
You have two options here. You can destroy a chest and create it again or you can use /cr update to update your chest.
Simply put new items in the chest or poll some from the chest, type /cr update and right click the chest.
The chest will be updated with new items.
REMEMBER: if you want to add more items to the chest, the chest needs to have previous items in it too. Otherwise previously regenerating items will be substituted by new items.
Command => /cr time [time] (time in seconds)
To change chest's time after which it will be refilled, you can simply use /cr time <time> command.
You can type /cr time without any parameter to toggle time mode for viewing chests time. Then you can right click a chest and see its current refilling time.
You can also type e.g. /cr time 600 to toggle time mode for setting chest time. Here, parameter 600 is the seconds that will apply to the chest.
So if you want to change chest's time to 30min simply type /cr time 1800 and right click the chest.
Command => /cr setname [name]
To change your chest's name, simply type /cr setname and right click your chest.
Command => /cr remove
To remove a chest type /cr remove to toggle removing mode. Then right click a chest you want to remove.
A faster way can be destroying a chest. It will also remove refilling chest from the list. 😄
- Open an issue here on Github if you want to report a bug or suggest an enhancement!
- Write to me on Spongepowered Forum!
- Join my Discord server and contact me there!