HomeJavaModsPickUpSpawners
PickUpSpawners
[​IMG]
This plugin enables users to pickup and place spawners in the world and much more!

Simply download the jar file and place it in your servers plugin folder and you're good to go!

Features:

This plugin requires Vault if you want the GUI to act as a shop (otherwise disable in config).

Commands:
- /pickupspawners can be shortened to /ps

/ps get command in action:

[​IMG]

(Permissions and prices must be set for each spawner)
Note: You can now customize the skins!

Permissions:

Spoiler: Individual Spawner Permissions
These permissions are only relevant to users who already have the pickupspawners.get or pickupspawners.give permission.

Default Permissions:
  • pickupspawners.bat - Enables a player to get/buy a bat spawner (Default)
  • pickupspawners.blaze - Enables a player to get/buy a blaze spawner (Default)
  • pickupspawners.cavespider - Enables a player to get/buy a cavespider spawner (Default)
  • pickupspawners.chicken - Enables a player to get/buy a chicken spawner (Default)
  • pickupspawners.cow - Enables a player to get/buy a cow spawner (Default)
  • pickupspawners.creeper - Enables a player to get/buy a creeper spawner (Default)
  • pickupspawners.enderman - Enables a player to get/buy a enderman spawner (Default)
  • pickupspawners.endermite - Enables a player to get/buy a endermite spawner (Default)
  • pickupspawners.guardian - Enables a player to get/buy a guardian spawner (Default)
  • pickupspawners.horse- Enables a player to get/buy a horse spawner (Default)
  • pickupspawners.mooshroom- Enables a player to get/buy a mushroomcow spawner (Default)
  • pickupspawners.ocelot- Enables a player to get/buy a ocelot spawner (Default)
  • pickupspawners.pig - Enables a player to get/buy a pig spawner (Default)
  • pickupspawners.pigman - Enables a player to get/buy a pigzombie spawner (Default)
  • pickupspawners.rabbit - Enables a player to get/buy a rabbit spawner (Default)
  • pickupspawners.sheep - Enables a player to get/buy a sheep spawner (Default)
  • pickupspawners.silverfish - Enables a player to get/buy a silverfish spawner (Default)
  • pickupspawners.skeleton - Enables a player to get/buy a skeleton spawner (Default)
  • pickupspawners.spider - Enables a player to get/buy a spider spawner (Default)
  • pickupspawners.squid - Enables a player to get/buy a squid spawner (Default)
  • pickupspawners.slime - Enables a player to get/buy a slime spawner (Default)
  • pickupspawners.magmacube - Enables a player to get/buy a lavaslime spawner (Default)
  • pickupspawners.villager - Enables a player to get/buy a villager spawner (Default)
  • pickupspawners.witch - Enables a player to get/buy a witch spawner (Default)
  • pickupspawners.wolf - Enables a player to get/buy a wolf spawner (Default)
  • pickupspawners.zombie - Enables a player to get/buy a zombie spawner (Default)
  • pickupspawners.irongolem- Enables a player to get/buy a villagergolem spawner (Default)
  • pickupspawners.snowman - Enables a player to get/buy a snowman spawner (Default)
  • pickupspawners.llama- Enables a player to get/buy a llama spawner (Default)
  • pickupspawners.polarbear - Enables a player to get/buy a polar bear spawner (Default)
Non-Default Permissions:
  • pickupspawners.enderdragon - Enables a player to get/buy a bat enderdragon (Not Default)
  • pickupspawners.giant - Enables a player to get/buy a giant spawner (Not Default)
  • pickupspawners.wither- Enables a player to get/buy a witherboss spawner (Not Default)
  • pickupspawners.ghast - Enables a player to get/buy a ghast spawner (Not Default)
*Note: To take away a default permission from a user, give them the permission with a "-" in front of it. (eg: -pickupspawners.ghast)


Configuration File:
When run for the first time this plugin should create a folder called PickUpSpawners, inside there you'll find a file called config.yml. Important: When updating this plugin, make sure your config contains the same settings as the default one below.
Spoiler: Default Config File
PHP:
#Enabled spawner pickup in worlds - Make sure you are using the EXACT world names!
enabled_pickup_in_worlds :
- world

#Enabled spawner placement in worlds - Make sure you are using the EXACT world names!
enabled_placement_in_worlds :
- world

#Should players be allowed to mine naturally occurring spawners? (e.g. dungeons, blaze towers)
pickup_natural_spawners : true

#Should spawner changing be allowed using mob eggs?
spawner_changing : true

#Should placed spawners be protected from other players?
spawner_protection : false

#Should players be able to place mobs (using mob eggs) on a spawner while crouching?
crouch_mob_spawning : false

#Should Spawners drop from explosions?
explosion_drop : false

#What is the chance out of 100, that a spawner will drop from an explosion? (eg: 100 = always, 50 = half the time, 0 = never)
explosion_chance : 100

#Should the GUI act as a spawner shop? (set no to disable all prices and vault dependency)
gui_shop : true

#Cost of purchasing spawners using the GUI Shop (/ps get) - NOTE: Set cost to -1 to disable spawner from showing up in shop
bat_spawner_cost : 0
blaze_spawner_cost : 0
chicken_spawner_cost : 0
cow_spawner_cost : 0
creeper_spawner_cost : 0
enderman_spawner_cost : 0
endermite_spawner_cost : 0
ghast_spawner_cost : 0
guardian_spawner_cost : 0
llama_spawner_cost : 0
pig_spawner_cost : 0
rabbit_spawner_cost : 0
sheep_spawner_cost : 0
silverfish_spawner_cost : 0
skeleton_spawner_cost : 0
spider_spawner_cost : 0
squid_spawner_cost : 0
slime_spawner_cost : 0
villager_spawner_cost : 0
witch_spawner_cost : 0
wolf_spawner_cost : 0
caveSpider_spawner_cost : 0
zombie_spawner_cost : 0
enderDragon_spawner_cost : 0
giant_spawner_cost : 0
snowman_spawner_cost : 0
horse_spawner_cost : 0
mooshroom_spawner_cost : 0
ocelot_spawner_cost : 0
pigman_spawner_cost : 0
polarbear_spawner_cost : 0
magmacube_spawner_cost : 0
wither_spawner_cost : 0
ironGolem_spawner_cost : 0
 


ToDo:

I need more ideas, if you have any contact me! :)

Developers:
I have added some public methods that I think might be helpful to developers looking to 'hook' into this plugin. If there is something more you want me to add, just let me know.
Spoiler: PickUpSpawner Methods
PickUpSpawnersUtil.getSpawnerDisplayName(ItemStack spawnerItem)
- Returns the type name of the spawner (String). For example if you passed in an PIG_ZOMBIE type spawner, it would return the string "Pigman" (useful for the creation method below).

PickUpSpawnersUtil.createSpawner(String spawnerDisplayName)

- Returns a spawner item of type specified. For example if you passed in "Pigman" (see above method) it would return an PIG_ZOMBIE type spawner.

PickUpSpawnersUtil.getDisplayNameFromSpawnerTypeName(String spawnerTypeName)

- Returns the type name of the spawner (String). For example if you passed in "PIG_ZOMBIE" it would return the string "Pigman" (useful for the creation method above).

PickUpSpawnersUtil.getExplosionRate(PickUpSpawners pluginInstance)
- Returns the drop rate for exploded spawner's.

PickUpSpawnersUtil.setExplosionRate(PickUpSpawners pluginInstance, int rate)
- Sets the drop rate for exploded spawner's to the integer value passed into this method.

If you have any issues with the plugin let me know in the comments.
If you want anything else added to the plugin PM me or write it in the comments and I'll add it to the todo list.

Source code: https://ufile.io/v93hw

Please don't leave a negative review on my plugin based on any issues/bugs you've had, its hard to test for everything and it would be more helpful to everyone if you contact me and let me fix it! :)

If I've helped you and you would like to show your appreciation, you may buy me a coffee because that's what I love.

[​IMG]
A big thanks to the following user(s) for the coffee's:
*PM me if you want your name put up :)

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

PickUpSpawners is a free Minecraft Java mod. Compatible with Minecraft 1.10, 1.11. Downloaded 26,989 times (via Spigot). Download it and open it directly in the game.

Explore more