Skip to content

1.13: improved block drops, added hostile-drop option

Compare
Choose a tag to compare
@JustEli JustEli released this 17 Apr 16:54
· 28 commits to master since this release
  • Added the ability to disable death-message and pickup-message by settings it to an empty string.
  • Added MythicMobs 5.x support (4.x still works).
  • Added hostile-drop to the config. Which allows to disable or re-enable hostile mobs to drop coins.
  • Added block-drops to the config.
    • Drop coins for mined blocks. This setting only works when the block drops a different item than the block itself. For example a Diamond Ore drops Diamond without Silk Touch. So it doesn't work when using Silk Touch. That is because the player would be able to place the block again, and get coins once again.
    • Removed only-experience-blocks and block-multiplier.
  • Fixed an issue where coins were being picked up by mobs, when they were already picked up by players.
    • This issue caused a duplication bug with the plugin TamableFoxes.
  • Cleaned up some code. Coin drop handler has been rewritten. Found a bug? Report it!

Add this to your config:

# Should hostile and passive mobs drop coins? Hostile mobs drop coins by default,
#  and passive mobs don't.
hostile-drop: true
# passive-drop: false

# Drop coins for mined blocks. This setting only works when the block drops a
#  different item than the block itself. For example a Diamond Ore drops Diamond
#  without Silk Touch. So it doesn't work when using Silk Touch. That is because
#  the player would be able to place the block again, and get coins once again.
#  The number behind the block name below is the multiplier for coin drops.
# Materials: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
block-drops:
  'diamond ore': 2
  'deepslate diamond ore': 3
  'spawner': 5 # You may need to remove this if you have SilkSpawners.
  'emerald ore': 2
  'deepslate emerald ore': 2
  'gold ore': 1
  'deepslate gold ore': 1
  'nether gold ore': 1
  'iron ore': 1
  'deepslate iron ore': 1
  'lapis ore': 1
  'deepslate lapis ore': 1
  'copper ore': 1
  'deepslate copper ore': 1
  'nether quartz ore': 1
  'coal ore': 1
  'deepslate coal ore': 1
  'redstone ore': 1
  'deepslate redstone ore': 1

# What's the chance per mined block? Set to 0 to disable dropping coins for blocks.
mine-percentage: 0.20