Skip to content

⛏ 🐷 πŸ‘Ύ SilkSpawners plugin for CraftBukkit/Spigot

License

Notifications You must be signed in to change notification settings

jsuarezl/SilkSpawners

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SilkSpawners

Build Status Build Status Circle CI Build status BukkitDev SpigotMC License Join the chat at https://gitter.im/timbru31/SilkSpawners

Info

This CraftBukkit plugin adds a way to obtain the spawner with the corresponding mob when mined with SilkTouch and offers a various range of changing spawners.

  • Crafting of each spawner (own recipe for every mob if wanted)
  • Commands for player and console
  • Changing spawners with spawn eggs
  • Permissions support or OP fallback
  • Support for
    • Custom mobs added by client/server mods
    • Spawning any entity with spawn eggs (dragons, non-creature entities, etc.)
  • Compatible with
    • CraftBukkit++ and Spigot (see spawnersUnstackable)
    • MCPC(+) and ported mods (auto-detects IDs)
  • Flexible creature type names on input (pigman, zombiepigman, pigzombie, etc. all accepted), official names on output (Magma Cube, not "LavaSlime")
  • Localization
  • Economy addon SilkSpawnersEcoAddon
  • Shop addon SilkSpawnersShopAddon (login required, Premium Plugin)
  • BossBarAPI support for >= 1.9, otherwise BarAPI can be used
  • Support for multiple Minecraft versions, from 1.7.X to 1.13.1

Third party features, all of them can be disabled

License

This plugin is released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license. Please see LICENSE.md for more information.

Standard config

# See documentation at https://dev.bukkit.org/projects/silkspawners/pages/configuration

# Should the plugin automatically update if an update is available?
autoUpdater: true

# Should a permission be required when a spawner explodes by TNT to achieve a drop
permissionExplode: false

# Should be checked for WorldGuard build ability to change spawners
useWorldGuard: true

# Percentage of dropping a spawner block when TNT or creepers explode
explosionDropChance: 30

# Percentage of dropping a iron bars when a spawner is mined
destroyDropChance: 100

# Percentage of dropping an egg when a spawner is mined
eggDropChance: 100

# Percentage of dropping the spawner when mined
silkDropChance: 100

# When generic spawner items are placed, spawn this creature (e.g. from /give or other plugins)
# PIG (90) is Minecraft default (put NAMES or IDs here!)
defaultCreature: 90

# How far is the spawner reachable with your crosshair (disable with -1)
spawnerCommandReachDistance: 6

# Minimum silk touch level [can be changed via other plugins to a higher value]
# Set it to 0 to mine it without silk touch
minSilkTouchLevel: 1

# If a player in creative destroys a spawner nothing is dropped
noDropsCreative: true

# If a spawner is destroyed, should the egg be dropped
destroyDropEgg: false

# If a spawner is destroyed, should XP be dropped
destroyDropXP: 0

# If a spawner is mined, should it be directly added to the inventory of the player
dropSpawnerToInventory: false

# Amount of spawners to be dropped when mined with valid silk touch
dropAmount: 1

# Flag a spawner as already mined to prevent XP duping
preventXPFarming: true

# Drops XP only when a spawner is destroyed and not mined via SilkTouch
dropXPOnlyOnDestroy: false

# If a spawner is destroyed, should iron bars be dropped
destroyDropBars: 0
 
# Should the player be able to craft spawners
craftableSpawners: false

# Leave a slot empty (null/air)? Just make a space then, example 'A A' -> middle is free
# X is always the egg
recipeTop: AAA
recipeMiddle: AXA
recipeBottom: AAA
recipeAmount: 1

# Custom example:
#recipeTop: 'A A'
#recipeMiddle: 'BXA'
#recipeBottom: 'C D'
#ingredients:
#  - 'A,IRON_FENCE'
#  - 'B,DIRT'
#  - 'C,2'
#  - 'D,5'

# You can put IDs or the NAME here (please uppercase)
# Add it for each custom ingredient you add, too!
ingredients:
- A,IRON_FENCE

# Should spawners be unstackable
spawnersUnstackable: false

# Should the egg be consumed when the spawner is changed with it
consumeEgg: true

# Fallback if the creature should be enabled, if not specified for the entity
enableCreatureDefault: true

# Should numbers be ignored (on eggs) and allow every number value?
ignoreCheckNumbers: false

# Disable left click to change spawners, spawns a mob instead. Still blocks Vanilla right click behavior.
disableChangeTypeWithEgg: false

# Should instead of spawning a mob a MonsterSpawner be placed? (Uses consumeEgg value, too)
spawnEggToSpawner: false

# Should the spawn algorithm be overridden? Allows spawning of non-standard entities
spawnEggOverride: false

# Fallback if the creature should be spawned, if not specified for the entity
spawnEggOverrideSpawnDefault: true

# Allowed set of tools which can mine a spawner. IDs are supported, too
allowedTools:
- WOOD_PICKAXE
- STONE_PICKAXE
- IRON_PICKAXE
- GOLD_PICKAXE
- DIAMOND_PICKAXE

# Amount of spawners or eggs given to a player when the argument is omitted
defaultAmountGive: 1

# Notify the player about the spawner when he clicks it in the inventory
notifyOnClick: true

# Notify the player about the spawner when he holds the spawner in the hand
notifyOnHold: true

# Configure displaying with BarAPI, time is in seconds
barAPI:
  enable: false
  displayTime: 3

# Configure displaying with 1.9 BossBarApi, time is in seconds
vanillaBossBar:
  enable: true
  displayTime: 3

  # Valid colors are BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW
  color: RED

  # Valid styles are SEGMENTED_10, SEGMENTED_12, SEGMENTED_20, SEGMENTED_6, SOLID
  style: SOLID

# Prevent that a spawner is changed via eggs in other territories
factionsSupport: false

# Prevent that a spawner is changed via eggs in other kingdoms
feudalSupport: false

# Puts more information out on startup
verboseConfig: false

# Internal stuff, do NOT change unless advised - the plugin might break otherwise
useReflection: true
testMCVersion: true
useMetadata: true

Commands

Aliases:

  • silkspawners
  • silkspawner
  • ss
  • spawner
  • silk
  • spawnersilk
  • egg
  • eggs
  • eg
Command Description
/ss help Displays the help menu.
/ss list|all Displays all available creatures.
/ss view Displays information about the viewed spawner.
/ss reload|rl Reloads the configuration files.
/ss change|set Changes the spawner you are currently holding or viewing at.
/ss give|add [amount] Gives a spawner or egg to the player. Amount is optional.

Permissions

(Fallback to OPs, if no permissions system is found)

  • Grant either wild card permission for all mobs (use the star [*])
  • or define per mob permissions by using creature and replace it with a real mob name.
    • spaces will be stripped out of names

General

Permission node Default Description
silkspawners.* false Grants access to all other permissions
silkspawners.info true See informative messages about the spawners as you place and break them
silkspawners.viewtype true View the spawner type using /spawner
silkspawners.reload op Reload the configs on the fly
silkspawners.explodedrop true Receive a drop when Spawner explodes via TNT (off by default, see permissionExplode)

Placing spawners

Permission node Default Description
silkspawners.place.* true Ability to place all spawners
silkspawners.place.creature true Ability to place a creature spawner

Crafting spawners

Permission node Default Description
silkspawners.craft.* true Ability to craft all spawners (if enabled)
silkspawners.craft.creature true Ability to craft a creature spawner (if enabled)

Mining spawners

Permission node Default Description
silkspawners.destroydrop.* true Allows you to destroy all mob spawners to acquire mob spawn eggs / iron bars / XP (as configured)
silkspawners.destroydrop.creature true Allows you to destroy mob a creature spawner to acquire mob spawn eggs / iron bars / XP (as configured)
silkspawners.silkdrop.* true Allows you to use silk touch to acquire all mob spawner items
silkspawners.silkdrop.creature true Allows you to use silk touch to acquire a creautre mob spawner item

Changing spawners

Permission node Default Description
silkspawners.changetype.* op Allows you to change all spawner types using /spawner creature
silkspawners.changetype.creature op Allows you to change a creature spawner type using /spawner creature
silkspawners.changetypewithegg.* op Allows you to change all spawner types by left-clicking with a spawn egg
silkspawners.changetypewithegg.creature op Allows you to change a creature spawner type by left-clicking with a spawn egg

Free spawners and eggs

Permission node Default Description
silkspawners.freeitem.* op Allows you to get all spawner items in your hand for free using /spawner creature
silkspawners.freeitem.creature op Allows you to get a creature spawner item in your hand for free using /spawner creature
silkspawners.freeitemegg.* op Allows you to get all spawner eggs in your hand for free using /egg creature
silkspawners.freeitemegg.creature op Allows you to get a creature spawner egg in your hand for free using /egg creature

Credits

  • mushroomhostage for the original SilkSpawners plugin
  • Thermo_Core alias Archarin for the logo
  • Kiracastle for the nice review
  • smsunrato for the review and Indonesian translation
  • Jeroendedoem for the Dutch translation

Support

For support visit the Bukkit page or open an issue

Pull Requests

Feel free to submit any PRs here. :)
Please follow the Sun Coding Guidelines, thanks!

Usage statistics

stats images are returning soon!

Data usage collection of bStats

Disabling bStats

The file ./plugins/bStats/config.yml contains an option to opt-out.

The following data is read and sent to https://bstats.org and can be seen under https://bstats.org/plugin/bukkit/SilkSpawners

  • Your server's randomly generated UUID
  • The amount of players on your server
  • The online mode of your server
  • The bukkit version of your server
  • The java version of your system (e.g. Java 8)
  • The name of your OS (e.g. Windows)
  • The version of your OS
  • The architecture of your OS (e.g. amd64)
  • The system cores of your OS (e.g. 8)
  • bStats-supported plugins
  • Plugin version of bStats-supported plugins

Donation

PayPal

BitCoin
1NnrRgdy7CfiYN63vKHiypSi3MSctCP55C

About

⛏ 🐷 πŸ‘Ύ SilkSpawners plugin for CraftBukkit/Spigot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%