Sueta

Advanced Generators

1.1.9

Add ore generators to your world and start automating

·Plugin

Issue Report:
Do you have any Issue while using Advanced Generators ? Report them in the discussion and tag me with @Jens00 so I'll get notified, if you post them there the community is also able to help you!

Bug Report:
Any bug/error found and/or experienced while using Advanced Generators can be reported in the Plugin Discussion, when doing this don't forget to tag me @Jens00 , its also important to paste your error log/code from your console.
Private Messages are also allowed to get support with errors and bugs, don't forgot to paste your error log/code from the console in the PM to!

Note: do not post any bad review with your issue in it there is a Discussion/pm place for this, also on download you agree to not decompile the plugin when you do you can not give reviews based on the code!

How To Install:
Follow those staps to install the plugin correct.

1. Download the plugin.
2. Stop your minecraft server.
3. Put the plugin in your plugin folder.
4. Start your server.

Updating:
If your missing any messages or other things in the config the plugin might not work as intended. To make sure you'r not missing anything take a look at the config.

Config

Messages:
Prefix: "&2&lServer >> &a"
Received: "You have received a &2%type% &agenerator"
StatusChanged: "You have &2%status% &ayour generator"
Upgraded: "You have upgraded one of your generators"
Placed: "You have placed generator &2%currentamount%/%limit%"
GiveGenerator: "You have given a &2%type% &agenerator to &2%player%"
Re-Activated: "All your generators have been re-activated"
Usage: "Usage /generator give <type> (player)"

Warnings:
Prefix: "&4&lWarning >> &c"
PlayerNotFound: "Player &4%player% &chas not been found"
ReachedLimit: "You have reached the limit of &2%amount% &cgenerators"
InvalidOre: "Generator &4%type% &ccan't be converted to a &4%type%_ORE"
InvalidArg: "&4%arg% &cis not a valid argument"
NoPerms: "You don't have enough permissions"
Update: "There is a new version of advanced generators available, https://www.spigotmc.org/resources/advanced-generators.80217/ "
Reload: "You have successfully reloaded AdvancedGenerators."

InGame:
Re-Activate: "&3&lGenerator >> &bOne of your generators has turned off, &3%click here% &bto re-activate your generator"
Break: "&2&lServer >> &aare you sure %yes%"

Generators:
DisplayName: "&3&l%type% Generator"
Lore:
- "&7This block can be mined to get its resources"
- "&7or can be placed under a hopper to be automated"
Glow: true
Types:
#The multiplier stands for how much it adds to the price and spawn time Ex(Coal level1 spawn time = 10 *1 = 10)
#Ex(Iron level1 spawn time = 10 *1.5 = 15)
COAL:
Multiplier: 1
IRON:
Multiplier: 1.5
GOLD:
Multiplier: 1.6
REDSTONE:
Multiplier: 2
LAPIS:
Multiplier: 2
EMERALD:
Multiplier: 4
DIAMOND:
Multiplier: 4
Levels:
#When auto mined the rate wil be multiplied by 50%
Level1:
AutoSmelt: false
SpawnDelay: 10
Level2:
Price: 10
AutoSmelt: false
SpawnDelay: 8
Level3:
Price: 20
AutoSmelt: true
SpawnDelay: 6
Level4:
Price: 30
AutoSmelt: true
SpawnDelay: 4

Menus:
GeneratorInfo:
Status:
Material: STAINED_GLASS_PANE
Running: "&a&lRunning"
Disabled: "&c&lDisabled"
Re-Activate: "&e&lRe-Activate"
Lore:
- "&7Click to change the generators status"
Stats:
Material: PAPER
DisplayName: "&3&lStats"
Lore:
- "&bOwner: &f%owner%"
- "&bLevel: &f%level%"
- "&bMined: &f%mined%"
- "&bDelay: &f%delay%"
- "&bAuto Smelt: &f%autosmelt%"
- ""
- "&7When the generator is placed above a hopper"
- "&7the delay will be increased by 50%"
Upgrade:
Material: ANVIL
DisplayName: "&3&lUpgrade"
Lore:
- "&bPrice: &f%price%"
- "&bRate: &f%delay%"
- "&bAuto Smelt: &f%autosmelt%"

Options :
Debug: false
CheckForUpdates: true
GeneratorLimit: false
Version: 1.1.9 #Do not change unless you know what your doing

Dependencies:
Vault: https://dev.bukkit.org/projects/vault

Available Commands:
All the available commands are listed down below with the needed
permission to use this command

  • /generator reload
  • /generator give <type> (player) type = Coal, Iron, Gold etc...

Permissions

  • advancedgenerators.admin (to reload)
  • advancedgenerators.admin.give
  • advancedgenerators.runtime.(time in minutes) max 600 (this wil allow the generator to run when the player is offline)
  • advancedgenerators.limit.(limit) max 100 (Use the one down below when using the Askyblock or SuperiorSkyblock2)

When using AskyBlock/SuperiorSkyblock2

  • advancedgenerators.island.limit.(limit) max 100 (max generators per island)

Note: advancedgenerators.runtime.(time in minutes) is needed to work as intended.
For example: advancedgenerators.runtime.60 wil run for 1 hour before deactivating

Features:
The config file is for the most part custom meaning you can change every message and enable/disable some function.
You can mine the generator with a pickaxe or place a hopper under it to let it mine automaticly.
To break a generator hold shift and mine the ore, a message should pop up in chat to confirm you want to break the generator. The generator will automatically return to your inventory.

ASkyBlock/SuperiorSkyblock2:
When using ASkyBlock your island members will get a notification when one of the island generators have turned off and will be able to re-activate it.

Images:
AdvancedGeneratorsImageMenu.png

To-Do list:

  • Clean Up Code ✔
  • Add support for more versions ✔
  • Your idea (add support for SuperiorSkyblock2 by @Rhander ) ✔
  • Your idea (able to limit the max amount of generators by @Rhander ) ✔
  • Your idea (added an autosmelt option by @Rhander ) ✔
  • Add your Ideas
  • Get 50 Downloads ✔
  • Get 100 Downloads
  • Get 250 Downloads
  • Get 500 Downloads
  • Get 750 Downloads
  • Get 1000 Downloads
  • Get 1500 Downloads
  • Get 2000 Downloads
  • Get 2500 Downloads

Similar projects

Plugin →