Configuration Usage - ThePlay3r/CustomDrops GitHub Wiki

Configuration Usage

Here you can find examples of formating stuff in configuration.
Navigation

| Mobs
| Blocks


Mobs

mobs:
  <mob>: # Name of these drops, requires permission "customdrops.mobs.<mob>".
    drop-default: false # Decides what to do with default drops.
     # true = Drop the default items.
     # false = Remove the default items.
    only-player: true # Decides if the drops will be altered only when killed by players.
     # true = Only players will be able to get the custom items.
     # false = Everytime when the mob dies, he will drop the custom items.
    mob: "COW" # Name of the mob, that will drop these items.
     # List of available mobs: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html
    drops: # List of the custom items to drop.
      <ID>: ... # PLJRApi's Configuration (ID can be anything)

Blocks

blocks:
  <block>: # Name of these drops, requires permission "customdrops.blocks.<mob>".
    drop-default: false # Decides what to do with default drops.
     # true = Drop the default items.
     # false = Remove the default items.
    check-for-drops: true # Decides if to check if player is using the right tool.
     # true = For example, player won't be able to get custom drops, when he mines diamonds with wooden pickaxe, but will get them with iron pickaxe.
     # false = No matter what tool player uses, he will get the drops. (Even with bare hands)
    drop-exp: true # Decides if the XP will be dropped on-mine.
     # true = The default experience orbs will be dropped on mine.
     # false = None experience orbs will be dropped on mine.
    material: "IRON_ORE" # Type of the block that player has to mine, to get the drops.
     # List of available materials: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
    drops: # List of the custom items to drop.
      <ID>: ... # PLJRApi's Configuration (ID can be anything)
⚠️ **GitHub.com Fallback** ⚠️