SpawnerRankup
SpawnerRankup
Summary
A utility to view, break and upgrade your existing spawners. Right-clicking on your spawner will bring up a GUI for you to interact with. In this GUI you can: upgrade your spawner's statistics, view your statistics, and break the spawner, leaving a little spawner item on the ground for you to pick up and move, whilst maintaining the spawner's functionality and mob when placed back down.
Commands
Just /spawnerrankup reload to pick back up the config file from where it was last saved, and load the new one into the plugin. Takes effect immediately, but be careful when using this besides for testing, as it can produce some odd results on already upgraded spawners.
To be able to execute this command, you will need to have the spawnerrankup.reload permission.
Permissions
You will need to have spawnerrankup.gui to be able to use the GUI. (default:true)
The plugin also raises/fires the BlockBreakEvent when the spawner is broken, and if the user does not have access to break blocks in the area containing the spawner (for instance, a Factions claimed area, or a PlotMe plot), the block will not be broken.
Specific GUI interaction
There are two clickable items, the Redstone Block to upgrade the spawner in the chunk levels, and the Barrier to break the item.
Hovering over the Redstone Block it will show the current number of upgrades the spawner can have, and the total number of upgrades it currently has. Clicking on it will attempt to upgrade the spawner. It will first check if the spawner is already at maximum level, then (if it isn't), it'll check the XP Levels of the user, and if they don't have (at least) the adamant level of XP, it'll stop there. The XP costs and upgrade tiers and upgrade additions can be defined in the config.
Clicking on the Barrier will break the spawner (if you have the ability to), and spawn an item that holds all of the data of the spawner on it, ready to be placed back down.
Each of the Iron Blocks display information on specific attributes of the spawner, and are not clickable.
Config
This is the (for the meantime) default config (I'm adding more - I promise):
levelups:
#Number of mobs to ATTEMPT to spawn per activation
SpawnCount: 2
#The range in which the spawner will ATTEMPT to spawn
SpawnRange: 1
#The minimum delay between spawner activation in ticks
MinSpawnDelay: -1
#The maximum delay between spawner activation in ticks
MaxSpawnDelay: -1
#The maximum number of nearby entities the spawner can still work with.
#More than this value of mobs nearby will cause the spawner to skip activations (useful against lag)
MaxNearbyEntities: 2
#The range required for a player to activate the spawner in blocks
RequiredPlayerRange: -1
#List of level costs. Can only upgrade whilst there is another level in the list
Costs:
- 0
- 50
- 100
- 200
- 300
Footnote
This is explicitly incompatible with SilkSpawners, as SilkSpawners does not preserve the NBT of the spawner, and thus any spawners broken this way will not keep the upgrade level, but will keep the mobtype. You can use SilkSpawners to change the type of the spawner with no issues.
IT'S IN ALPHA This uses NBT-NMS, so I can't account for everything. Please comment on any errors or things that don't work as you expect.
-
View User Profile
-
Send Message
Posted Apr 1, 2018Great Plugin but more options would be nice as in for example
setting a max on spawn distance so it won increase/decrease past a certain point
add more currency to upgrade whit items and money
Holographic display would be awesome but you should add so you can turn it of in gui or atleast in config.
-
View User Profile
-
Send Message
Posted Apr 1, 2018In reply to drhampust:
-
View User Profile
-
Send Message
Posted Apr 1, 2018In reply to oliver276:
levelups:
#Number of mobs to ATTEMPT to spawn per activation
SpawnCount: 2
#The range in which the spawner will ATTEMPT to spawn
SpawnRange: 0
#The minimum delay between spawner activation in ticks
MinSpawnDelay: -1
#The maximum delay between spawner activation in ticks
MaxSpawnDelay: -1
#The maximum number of nearby entities the spawner can still work with.
#More than this value of mobs nearby will cause the spawner to skip activations (useful against lag)
MaxNearbyEntities: 2
#The range required for a player to activate the spawner in blocks
RequiredPlayerRange: -1
#List of level costs. Can only upgrade whilst there is another level in the list
#the first item in the list will be ignored.
But can you make it so it max out. as example
say you have spawn amount increase by 2 every lvl and there are 10 available lvls can you make it stop at 10 spawns so it dose not go all the way to 20?
or is that what the components part of the config is?
components:
#Number of mobs to ATTEMPT to spawn per activation
SpawnCount:
LevelupCost: 100
LevelupValue: 2
MaxUpgrades: 10
#The range in which the spawner will ATTEMPT to spawn
SpawnRange:
LevelupCost: 100
LevelupValue: 1
MaxUpgrades: 10
#The minimum delay between spawner activation in ticks
MinSpawnDelay:
LevelupCost: 100
#WARNING, MIN DELAY MUST BE LOWER THAN MAX DELAY AT ALL TIMES
LevelupValue: -10
MaxUpgrades: 10
#The maximum delay between spawner activation in ticks
MaxSpawnDelay:
LevelupCost: 100
#WARNING, MIN DELAY MUST BE LOWER THAN MAX DELAY AT ALL TIMES
LevelupValue: -10
MaxUpgrades: 10
#The maximum number of nearby entities the spawner can still work with.
#More than this value of mobs nearby will cause the spawner to skip activations (useful against lag)
MaxNearbyEntites:
LevelupCost: 100
LevelupValue: 3
MaxUpgrades: 10
#The range required for a player to activate the spawner in blocks
RequiredPlayerRange:
LevelupCost: 100
LevelupValue: 1
MaxUpgrades: 2
-
View User Profile
-
Send Message
Posted Apr 1, 2018In reply to drhampust:
-
View User Profile
-
Send Message
Posted Mar 31, 2018For anyone still bothered about this project: I've not forgotten about it!
I've just updated the code so that 1.11 (finally) works, and I've also added support for 1.12
I have also turned email notifications on, so hopefully I can fix things faster now!
If I'm available and you're lucky, there might be a new customisation section in the config later this week.
Thanks! :)
-
View User Profile
-
Send Message
Posted Sep 7, 2017so what plugin should use for spawners other than this one?
-
View User Profile
-
Send Message
Posted May 13, 2017Would it be possible to add a feature where you can only successfully break the spawner when it is at its highest rank? also to add on the previous comment could you make it so you can edit the items in the gui of the spawner? Thank and hope to hera a reply
-
View User Profile
-
Send Message
Posted Apr 11, 2017love where this plugins going although could you add a way to change the font/colour of the text in config?
much appreciated
-JTGgamer
-
View User Profile
-
Send Message
Posted May 5, 2017In reply to JTGgamer: