ChestGenerator: Reloaded
ChestGenerator has now been Reloaded!
Check out the Pages section and learn more about configuring this plugin and running the commands.
Since version 4.2 this plugin also depends on NBTAPI plugin. Find the plugin and put in your '/plugins' folder, more details can be found in the Installation page.
ChestGenerator allows server owners to make their server less laggy when playing.
This plugin will create custom chests that will constantly add any amount of type of item into a chest after a specified cooldown.
The cooldown is specified in ticks (20 ticks = 1 second).
Once you place your ItemGenerator, it will first start with a countdown timer based on cooldown that was specified.
After the countdown timer gets to 0 ticks, the generator will receive item that was specified by the amount that was specified.
The generator then goes back on cooldown mode, and this process then repeats.
Once the ItemGenerator is full, the items will no longer be generated.
The chest needs to have space in order to start generating again.
Commands
- /generator - ChestGenerator's default command.
- Aliases: "gen,cg,chestgen"
- Sub-commands:
- /generator get <item_type> <cooldownInTicks> <amount> - Get a chest that adds an amount of item_type every cooldownInTicks
- /generator get <item_type> <cooldownInTicks> <amount> <player> - Give player a chest that adds an amount of item_type every cooldownInTicks
- /generator clear - Clears all generators in the database, which makes them useless. (Chests won't be destroyed in world)
- /generator wrench !player_name! - Gives you or a player a wrench, depends on the 2nd argument.
Permissions
- chestgenerator.cmd.clear.use - Permission for command /generator clear.
- chestgenerator.cmd.wrench.use - Permission for getting a wrench.
- chestgenerator.cmd.wrench.use.others - Permission for giving others a wrench.
- chestgenerator.cmd.get.use - Permission for getting a ChestGenerator.
- chestgenerator.cmd.* - Permission for all commands.
- chestgenerator.others.break.bypass - Permission to bypass the breaking other's ItemGenerators rule.
- (v4.1) chestgenerator.others.use.bypass - Permission to bypass the rule "ItemGenerator can only be used while owner is online!"
Configuration
config.yml
Settings:
- fixIllegalError - Should ChestGenerator fix the chest when it gets destroyed ILLEGALLY (i.e. another plugin, /setblock command) - default: true
- useGenWrench - Is a Wrench required to destroy a chest i. e. to destroy a chest you have to hold a wrench in your hand, which can only be optained using 'wrench' subcommand - default: true
- (v4.1) generateItemsWhenOwnerIsOffline - should ItemGenerator generate items while the owner of the chest isn't online on the server? - default: true
- wrench - This is the ItemStack configuration for the Generator wrench. Make sure you follow the format if you want to change the wrench because the plugin won't work without a valid wrench.
- generators - This contains the whole list of generators on your server. Updating this is not recommended. It may result in corruption of the whole list, you will lose all generators!
messages.yml
In this file you can configure the messages using color codes and other useful features.
Make sure you leave '%s' stuff as these will get filled in by useful information to other players.
Custom items in ItemGenerator (v4.2)
Using 'hand' as an <item_type> will generate an ItemGenerator based on the item that the player is holding in hand.
Hi! Where can i find the list for the itemnames i have to input to get the generators? Because i want to get a Birch log generator but the generator doesn't accept the name birch_log or log:2 or log:birch.
Version 1.16.3
When I start up the server this shows up:
[01:12:25] [Server thread/ERROR]: Could not load 'plugins/ChestGenerator.jar' in folder 'plugins'[01:12:25] [Server thread/ERROR]: Could not load 'plugins/ChestGenerator.jar' in folder 'plugins'org.bukkit.plugin.UnknownDependencyException: NBTAPI at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:216) [spigot.jar:git-Spigot-dcd1643-e60fc34] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:305) [spigot.jar:git-Spigot-dcd1643-e60fc34] at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:205) [spigot.jar:git-Spigot-dcd1643-e60fc34] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot.jar:git-Spigot-dcd1643-e60fc34] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Version 1.12.2
In reply to iamoffsetpaladin89:
The plugin now requires plugin NBTAPI. The link can be found here.
Also, whenever I restart the server it spams this:
[18:42:35] [Server thread/WARN]: [ChestGenerator-Reloaded] Task #27 for ChestGenerator-Reloaded v4.0-Reloaded-Beta generated an exception[18:42:35] [Server thread/WARN]: [ChestGenerator-Reloaded] Task #27 for ChestGenerator-Reloaded v4.0-Reloaded-Beta generated an exceptionjava.lang.NullPointerException: null at org.bukkit.Location.getBlock(Location.java:91) ~[spigot.jar:git-Spigot-dcd1643-e60fc34] at org.bpplugins.itemgen.ChestManager$1.run(ChestManager.java:72) ~[?:?] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[spigot.jar:git-Spigot-dcd1643-e60fc34] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:361) [spigot.jar:git-Spigot-dcd1643-e60fc34] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739) [spigot.jar:git-Spigot-dcd1643-e60fc34] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot.jar:git-Spigot-dcd1643-e60fc34] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot.jar:git-Spigot-dcd1643-e60fc34] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot.jar:git-Spigot-dcd1643-e60fc34] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Which is fixed after a reload, could you fix this?
Version 1.12.2
Thanks for fixing the Null runnables problem in v4.0, but a problem with v4.1, you can't get items in the generator that are damagable (ie wool, dyes, concrete).
Version 1.12.2
Seems to be a bit broken, when I placed them down they were working fine, but in console it was spamming:
java.lang.NullPointerException: nulljava.lang.NullPointerException: null at org.bpplugins.itemgen.ChestManager$1.run(ChestManager.java:61) ~[?:?] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[spigot.jar:git-Spigot-dcd1643-e60fc34] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [spigot.jar:git-Spigot-dcd1643-e60fc34] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_212] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_212] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212][02:41:01] [Craft Scheduler Thread - 2/WARN]: [ChestGenerator-Reloaded] Plugin ChestGenerator-Reloaded v4.0-Reloaded-Beta generated an exception while executing task 30
I am in 1.12.2