consumables - magemonkeystudio/divinity GitHub Wiki

Commands

COMMAND DESCRIPTION
/consumables help Show help page
/consumables get <id> [level] [amount] Get the module item
/consumables give <player> <id> [level] [amount] Give the module item to the player
/consumables drop <world> <x> <y> <z> <id> [level] [amount] Drops the specified item in the world
/consumables list [page] List of module items
/consumables reload Reload the module

Item Example

material: PLAYER_HEAD
name: '&6Burger on a Plate'
lore:
  - '&7Definitely a hearty burger.'
  - '%ITEM_CHARGES%'
  - ''
  - '%USER_LEVEL%'
  - '%USER_CLASS%'
  - ''
  - '&f• &7Health: &6+5❤&7.'
  - '&f• &7Saturation: &6+5☕&7.'
  - '&f• &7Absorption I: &6%var_potiondurationtext%&7.'
tier: common
skull-hash: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjZkM2E3ZTA3ZjVkYWRkNDdiYWRiMTM4MmE1YjE2Mjc4MThlZTE2YTE5YTdjMGJmMjc2OGFlNjI2MjczN2I2In19fQ==
color: 240,240,20
level:
  min: 1
  max: 3
effects:
  health: 5
  hunger: 5
user-requirements-by-level:
  level:
    '1': 10
  class:
    '1': Warrior,Berserker
uses-by-level:
  '1': 1
  '2': 2
  '3': 3
variables-by-level:
  '1':
    potionDuration: 300
    potionDurationText: 15 sec
  '2':
    potionDuration: 600
    potionDurationText: 30 sec
  '3':
    potionDuration: 900
    potionDurationText: 45 sec
usage:
  RIGHT:
    cooldown: 10
    actions:
      default:
        conditions:
          list: []
          actions-on-fail: 'null'
        action-executors:
        - '[POTION] ~name: ABSORPTION; ~amount: 1; ~duration: %var_potionduration%; ~target: self;'
        - '[PARTICLE_SIMPLE] ~name: ITEM_CRACK:BREAD; ~offset: 0.1,0.1,0.1; ~speed: 0.1; ~amount: 40; ~target: self;'
        - '[SOUND] ~name: ENTITY_GENERIC_EAT; ~target: self;'
        target-selectors:
        - '[SELF] ~name: self;'
target-requirements: {}
⚠️ **GitHub.com Fallback** ⚠️