Skip to content

Add custom mob drops to your Minecraft server

Notifications You must be signed in to change notification settings

qWojtpl/MobDrops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation


ModDrops

Add custom mob drops to your Minecraft server

Tested minecraft versions:

1.19.3

Installation

Put MobDrops.jar to your plugins folder and restart the server.

Configuration

Use § or & sign for colors

config.yml
config:
  prefix: "§c[§7MobDrops§c] "

prefix - Prefix for commands

items.yml
items:
  "diamond":
    item: DIAMOND
    name: "Super diamond!"
    lore: "Diamond dropped from a mob"
    enchantments:
      - DIG_SPEED:3
    unbreakable: false
  "emerald":
    item: EMERALD
    name: "Super emerald!"
    lore: "Emerald dropped from a mob"
    unbreakable: true
  "command":
    command: "say %player% is a very serious killer!"

"diamond" - Item ID
name - Item name
lore - Lore of item
enchantments - List of enchantments (enchantment name:enchantment level) (get enchantments from https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html)
unbreakable - If set to true then item is unbreakable
command - Ignores all previous fields (without ID). This command will be executed if item is requested. Use %player% to get player.

mobs.yml
mobs:
  "zombie":
    0:
      itemID: "diamond"
      percentage: 10
      countMin: 1
      countMax: 1
      firework: true
      fireworkColor:
        - 0
        - 0
        - 255
    1:
      itemID: "emerald"
      countMin: 1
      countMax: 5
      percentage: 5
      lootBonus: true
      firework: true
      fireworkColor:
        - 0
        - 255
        - 0

"zombie" - Entity name
0 - Drop 0 for this mob
itemID - Item ID from items.yml
percentage - Percentage to drop. Min: 0.0001, max: 100
countMin - Min count of dropped item/executed command (random)
countMax - Max count of dropped item/executed command (random)
lootBonus - If set to true then looting enchantments will affect to percentage: Actual percentage: PERCENTAGE * (1 + LOOTING_LEVEL)
firework - If set to true then when item is dropped/command is executed the firework will spawn
fireworkColor - Firework color in RGB style (first element - red, second - green, third - blue)

Commands & Permissions

Permission to manage: mobdrops.manage
/mobdrops - Mob drops help
/mobdrops reload - Reload configuration
/mobdrops item - List of items
/mobdrops mobs - List of mobs
/mobdrops getitem <itemID> - Get item (or execute command)