Skip to content

Custom Item Plugins

Esophose edited this page Feb 26, 2022 · 23 revisions

Introduction

Are you using a custom items plugin and want to drop some custom items? If so, this is the place for you. Custom items support the same parameters as Items. You can find examples of how to drop items from these plugins below.

The following custom item plugins are currently supported:

EcoItems

The item field supports any item ID that EcoItems normally would. The general format for items created by EcoItems is ecoitems:item_id.

type: ENTITY
overwrite-existing: items
conditions:
  - 'entity-type:villager'
pools:
  0:
    conditions: []
    entries:
      0:
        conditions: []
        items:
          0:
            type: custom_item
            plugin: ecoitems
            item: 'ecoitems:enchanted_ender_eye'
            amount: 1

MMOItems

The item field must contain a : which separates the item type and the item ID. This field is case-sensitive, meaning it must match the item type and item ID exactly how it is in the MMOItems configs.

type: ENTITY
overwrite-existing: items
conditions:
  - 'entity-type:villager'
pools:
  0:
    conditions: []
    rolls: 1
    bonus-rolls: 0
    entries:
      0:
        conditions: []
        items:
          0:
            type: custom_item
            plugin: mmoitems
            item: 'BOW:MARKING_BOW'
            amount: 1

CustomItems/ItemBridge

If you wish to drop items from the CustomItems plugin, you must also have ItemBridge installed. To drop an item from CustomItems, prefix the item ID with cui:.

type: ENTITY
overwrite-existing: items
conditions:
  - 'entity-type:villager'
pools:
  0:
    conditions: []
    entries:
      0:
        conditions: []
        items:
          0:
            type: custom_item
            plugin: itembridge
            item: 'cui:emeraldHoe'
            amount: 1

ExecutableItems

Simply use the item ID as defined in the ExecutableItems configs.

type: ENTITY
overwrite-existing: items
conditions:
  - 'entity-type:villager'
pools:
  0:
    conditions: []
    entries:
      0:
        conditions: []
        items:
          0:
            type: custom_item
            plugin: executableitems
            item: 'world_teleporter'
            amount: 1