Skip to content

Examples

Penal Buffalo edited this page Jul 22, 2024 · 1 revision

Coins

Note that you can optionally utilize external-amount since it accepts doubles as opposed to amount which only accepts integers.

ALL_HOSTILE_MOBS:
  - Coins:coin:
      chance: 1.0
      equipped: 0
      amount: 1-4 # random amount between 1 and 4
ALL_HOSTILE_MOBS:
  - Coins:coin:
      chance: 1.0
      equipped: 0
      amount-formula: '%mob-lvl% * (%rand_1_10% * 0.01)' # mob level * random number between 0.01 and 0.1

CombatWeaponryPlus

ALL_HOSTILE_MOBS:
    - CombatWeaponryPlus:SomeItem:
        equipped: 0
        chance: 1.0
        amount: 1

CustomCrafting

CustomCrafting requires you to specify the namespace. For example:

ALL_HOSTILE_MOBS:
    - CustomCrafting:customcrafting/advanced_crafting_table:
        equipped: 0
        chance: 1.0
        amount: 1

CustomItems

ALL_HOSTILE_MOBS:
    - CustomItems:SomeItem:
        equipped: 0
        chance: 1.0
        amount: 1

ExcellentCrates

Types: crate, key

ALL_HOSTILE_MOBS:
  - ExcellentCrates:MyKey123:
      type: 'key'
      chance: 0.25  # 25%
      equipped: 0
      amount: 1
      nomultiplier: true
  - ExcellentCrates:MyCrate123:
      type: 'crate'
      chance: 0.25  # 25%
      equipped: 0
      amount: 1
      nomultiplier: true

ExecutableItems

ALL_HOSTILE_MOBS:
    - ExecutableItems:crystalfragment:
        equipped: 0.0
        chance: 0.05 # 5%
        amount: 1

HeadDatabase

Pick a custom head on https://minecraft-heads.com/ then put the ID in your drop.

ALL_HOSTILE_MOBS:
    - HeadDatabase:61380:  # https://minecraft-heads.com/custom-heads/head/61380
        equipped: 1.0
        chance: 0.1  # 10%
        amount: 1

ItemsAdder

Optional attributes: usages, durability

ALL_HOSTILE_MOBS:
    - ItemsAdder:SomeItem:
        equipped: 1.0
        chance: 1.0
        amount: 1
        extras:
          usages: 10
          durability: 200

ItemEdit

ALL_HOSTILE_MOBS:
    - ItemsEdit:SomeItem:
        equipped: 1.0
        chance: 1.0
        amount: 1

MagicHealth

ALL_HOSTILE_MOBS:
    - MagicHealth:SomeItem:
        equipped: 0
        chance: 1.0
        amount: 1

MMOItems

MMOItems has the most feature support in LM Items. It is the only plugin to support multiple items. The type attribute is required for all items unless using multiple items. Optional attributes: ItemLevel

MMOItems:SILVER_LEAF:
      type: 'ALCHEMY'  # must match name of one the files in the `items` directory and is usually in all caps.
      chance: 0.2
      amount: 1.0
      equipped: 0

Example of using multiple items:

MMOItems:-: # note the item id must be `-`
      type: 'SWORD'  # get all sword types
      chance: 0.2
      amount: 1.0
      equipped: 1.0
      # optional fields below
      min-items: 2
      max-items: 4
      # the lists support wildcards ( * )
      allowed-list: [] 
      excluded-list: [ '*_BLADE' ]

MythicMobs

ALL_HOSTILE_MOBS:
    - MythicMobs:SomeItem:
        equipped: 1.0
        chance: 1.0
        amount: 1

Oraxen

ALL_HOSTILE_MOBS:
    - Oraxen:SomeItem:
        equipped: 1.0
        chance: 1.0
        amount: 1

All Eco Products:

ALL_HOSTILE_MOBS:
    - EcoArmor:SomeItem:
        equipped: 1.0
        chance: 1.0
        amount: 1
ALL_HOSTILE_MOBS:
    - EcoItems:SomeItem:
        equipped: 0
        chance: 1.0
        amount: 1