BetterDrops

Description

This plugin introduces several new items, all of which are dropped by/have a chance of being dropped by certain mobs. All odds are configurable, and individual items can be disabled. This plugin is compatible with 1.11.x, 1.10.x, 1.9.x, and 1.8.x, although the Shulker Bullet Launcher will not work in 1.8.x (for obvious reasons.) Special bows are dropped by Powered Skeletons, which wield the special bows. The default spawn chance for a Powered Skeleton is 1/50. Also, players, creepers, skeletons, and zombies have a chance of dropping their head when killed. Default chance is 1/100 for creepers, 1/150 for skeletons and zombies, and 1/3 for players. The head dropped by the killed player has their skin. All odds are improved with looting. Luck and Bad Luck affect all applicable odds (for better or worse, respectively), including the break chance of certain special items.

Items

  • Shulker Bullet Launcher (shulkerBL) - Dropped by Shulkers, default drop chance 1/25. A wand that shoots a shulker's bullet at the creature/player you were looking at when you used it. Has a break chance, default 1/750. Has a configurable cooldown, default time is 20 ticks.
  • Wand of Theft (theftWand) - Dropped by Witches, default drop chance 1/25. A wand that has a chance of knocking the item out of a creature/player's hand when you hit them with it. Breaks easily. If it fails to knock the item out of a player's hand, it places it in their inventory in the first available slot.
  • Wither Skull Launcher (witherSL) - Dropped by Withers. Default drop chance 1/3. When left clicked, it shoots a black wither skull. When right clicked, it shoots a blue wither skull. Default cooldown for black skulls is 3 seconds, 1.5 seconds for blue skulls. The cooldowns are independent of each other. Has a break chance, default is 1/1500.
  • Ice Bow (iceBow) - Dropped/Wielded by Powered Skeletons. When an arrow fired from this bow hits a creature/player, it surrounds them with ice blocks. It will not replace solid blocks.
  • Space Bow (spaceBow) - Dropped/Wielded by Powered Skeletons. An arrow shot from this bow is not affected by gravity. It also does extra damage and has a large knockback value. Knockback value is configurable.
  • Bazooka (bazookaBow) - Dropped/Wielded by Powered Skeletons. An arrow shot from this bow explodes 1 second after being fired.
  • Shotgun (shotgunBow) - Dropped/Wielded by Powered Skeletons. A bow that shoots 11 arrows in a random spread. Spread amount is configurable. If the shotgun is enchanted with Flame, it will shoot all flaming arrows. By default, this only uses 1 arrow form the player's inventory, and only 1 arrow can be picked back up.
  • Fire Boots (fireBoots) - Dropped by Zombie Pigmen, default drop chance 1/50. Boots that when worn give you the Swiftness, Jump Boost, and Fire Resistance potion effects, and sets the block you are standing on on fire.
  • Levitation Boots (levitationBoots) - Dropped by Zombie Pigmen, default drop chance 1/50. Boots that place a water cushion at your feet while falling/jumping, so you do not take fall damage, can move horizontally while falling, and can climb walls.
  • Skywalker Boots (skywalkerBoots) - Dropped by Zombie Pigmen, default drop chance 1/50. Boots that when worn give you the Slowness potion effect and place a glass block below you that decays after a configurable delay.
  • Flight Potion (flightPotion) - Dropped by Witches. Default drop chance 1/25. A potion that allows a player in any game mode to fly for 30 seconds.
  • Lightning Strike Egg (strikeEgg) - Dropped by bats. Always 100% chance. An egg that summons a lightning storm at the target creature/player's location. This storm will follow the target and will strike them until dead, or 50 strikes, whichever happens sooner.
  • XP Storage Bottle (xpBottle) - Dropped by Emerald Ore blocks when mined normally. Default drop chance 1/4. Allows the player to 'store' up to 500 XP (Not 500 levels) in a bottle o' enchanting. When thrown, this will drop roughly the amount put in it, plus or minus a few xp.

Commands

Commands that do not require special permissions:

  • /bd help - Shows the options for the bd command.
  • /bd list - Lists all of the special items currently enabled.
  • /bd version - Shows the current version of BetterDrops.

Commands that do require special permissions:

  • /bd give <item> [player] - Gives the specified special item to the specified player. If no player is specified, it will give the item to the player executing the command.
  • /bd spawn <item> [player] OR /bd spawn <item> <x> <y> <z> - Spawns a Powered Skeleton wielding the specified special item at the specified player's location or specified coordinate. If no player or coordinate is specified, it will spawn the skeleton at the player who is executing the command.
  • /bd odds list - Lists all the entries in the odds.yml file and their current values.
  • /bd odds set <key> <value> - Sets the specified odds entry to the specified value.
  • /bd config list - Lists all the entries in the config.yml file and their current values.
  • /bd config set <key> <value> - Sets the specified config entry to the specified value.

Permissions

  • bd.Commands - A user with this permission can run all BetterDrops commands.
  • bd.oddsView - A user with this permission can run the '/bd odds list' command as well as the normal commands.
  • bd.configView - A user with this permission can run the '/bd config list' command as well as the normal commands.

Installation

Download the latest .zip file and extract it. Place the resulting .jar file in your server/plugins directory, along with the resulting folder containing the configuration files. Then just reload or restart your server.

Note: If upgrading from a 1.1.x version, the server needs to be shut down during the installation.

Notes

Source code can be acquired here.

Thanks to Borlea for the ArmorEquipEvent code.

If you like this plugin, please leave a comment! If you want to support me, donations are appreciated. If you have any issues/questions/bug reports, please send me a PM or email me at [email protected]


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files