gems - magemonkeystudio/divinity GitHub Wiki

Commands

COMMAND ARGS DESCRIPTION P PERM
/gems merchant [player] [force(true/false)] Open Merchant Socketing GUI. N divinity.gems.cmd.merchant
/gems help - Show help page. N divinity.gems.cmd.help
/gems get [level] [amount] Get a gems item. N divinity.admin
/gems give [level] [amount] Give a gems item to a player. N divinity.admin
/gems drop [level] Drop the specified item in the world. N divinity.admin
/gems list [page] List of module items. N divinity.gems.cmd.list
/gems reload - Reload the module. N divinity.gems.cmd.reload

Settings.yml

command-aliases: gems
socketing:
  allow-duplicated-items: true
  animated-bar:
    enabled: true
    bar-title: '&e&lSocketing...'
    bar-char: â—¼
    bar-size: 20
    bar-format: '&a&l%success%%&r %bar%&r &c&l%failure%%'
    color-neutral: DARK_GRAY
    color-success: GREEN
    color-failure: RED
    fill-interval: 1
    fill-amount: 1
    min-success: 50
  merchant:
    enabled: true
  actions-complete:
    default:
      conditions:
        list: []
        actions-on-fail: 'null'
      action-executors:
      - '[PARTICLE_SIMPLE] ~name: SPELL_WITCH; ~offset: 0.25,0.4,0.25; ~speed: 0.2;
        ~amount: 50; ~target: self;'
      - '[SOUND] ~name: BLOCK_NOTE_BLOCK_BELL; ~target: self;'
      - '[TITLES] ~title: &a&lSocketing; ~subtitle: &7You successfully socketed item!;
        ~fadeIn: 10; ~stay: 40; ~fadeOut: 10; ~target: self;'
      target-selectors:
      - '[SELF] ~name: self;'
  actions-error:
    default:
      conditions:
        list: []
        actions-on-fail: 'null'
      action-executors:
      - '[SOUND] ~name: ENTITY_VILLAGER_NO; ~target: self;'
      - '[TITLES] ~title: &c&lSocketing; ~subtitle: &7You could not socket item!;
        ~fadeIn: 10; ~stay: 40; ~fadeOut: 10; ~target: self;'
      target-selectors:
      - '[SELF] ~name: self;'
  failure:
    destroy-target: false
    destroy-source: false
    wipe-filled-sockets: false
    silent-rate-bonus:
      max-bonus: 20
      by-item-sockets:
        '0': 7
        '1': 5
        '2': 3
        '3': 1
  merchantenabled: true
item-format:
  name: '%TIER_COLOR%%ITEM_NAME% %ITEM_LEVEL_ROMAN%'
  lore:
  - '%TARGET_TYPE%'
  - '%TARGET_LEVEL%'
  - '%TARGET_SOCKET%'
  - '&8--------------------'
  - '%ITEM_LORE%'
gui:
  title: '&0« Socketing »'
  size: 9
  item-slot: 3
  source-slot: 4
  result-slot: 5
  content:
    filler:
      material: BLACK_STAINED_GLASS_PANE
      skull-hash: ''
      enchanted: false
      name: ''
      lore: []
      slots: 1,2,6,7
      type: NONE
    accept:
      material: LIME_STAINED_GLASS_PANE
      skull-hash: ''
      enchanted: false
      name: '&2« &aAccept &2»'
      lore:
      - '&7Attempt to socket gem into the item.'
      - '&7In case of failure your item will be &cdestroyed&7.'
      - ''
      - '&f[Click to Confirm]'
      slots: '8'
      type: ACCEPT
    exit:
      material: RED_STAINED_GLASS_PANE
      skull-hash: ''
      enchanted: false
      name: '&4« &cCancel &4»'
      lore: []
      slots: '0'
      type: EXIT

Merchant.yml

socketing:
  chance:
    merchant-bonus:
      amount: 15
      maximal: 80
  silent-rate-bonus:
    enabled: false

price:
  socket-worth-modifier: 1.0
  item-worth-modifier: 1.2

gui:
  title: '&8&m    &9&l Merchant Socketing &8&m    '
  size: 45
  item-slot: 20
  source-slot: 22
  result-slot: 24
  animation:
    tick: 400
    progressive: true
  content:
    filler_1:
      material: BLACK_STAINED_GLASS_PANE
      skull-hash: ''
      enchanted: false
      name: ''
      lore: []
      slots: 2,3,4,5,6,10,11,15,16,19,28,29,25,34,33,38,39,40,41,42,12,21,30,14,23,32
      type: NONE
    filler_2:
      material: CYAN_STAINED_GLASS_PANE
      name: '&7'
      slots: 0,1,9,7,8,17,27,36,37,35,44,43
    
    filler_4_a1:
      material: PURPLE_STAINED_GLASS_PANE
      name: '&5&lItem Slot'
      lore:
      - '&f» &7Click on item with at least &fone'
      - '&7free socket to put it into the GUI.'
      - ''
      - '&f» &7Click on item in GUI to take it back.'
      slots: 11,29
      animation:
        auto-play: true
        start-frame: 0
      animation-frames:
        '1':
          material: MAGENTA_STAINED_GLASS_PANE
          name: '&d&lItem Slot'
          lore:
          - '&f» &7Click on item with at least &fone'
          - '&7free socket to put it into the GUI.'
          - ''
          - '&f» &7Click on item in GUI to take it back.'
    
    filler_4_a3:
      material: PURPLE_STAINED_GLASS_PANE
      name: '&5&lGem Slot'
      lore:
      - '&f» &7Click on a &fgem &7item in inventory'
      - '&7to put it into the GUI.'
      - ''
      - '&f» &7Click on item in GUI to take it back.'
      slots: 13,31
      animation:
        auto-play: true
        start-frame: 0
      animation-frames:
        '2':
          material: MAGENTA_STAINED_GLASS_PANE
          name: '&d&lGem Slot'
          lore:
          - '&f» &7Click on a &fgem &7item in inventory'
          - '&7to put it into the GUI.'
          - ''
          - '&f» &7Click on item in GUI to take it back.'
    
    filler_4_a5:
      material: PURPLE_STAINED_GLASS_PANE
      name: '&5&lResult Preview'
      slots: 15,33
      animation:
        auto-play: true
        start-frame: 0
      animation-frames:
        '3':
          material: MAGENTA_STAINED_GLASS_PANE
          name: '&d&lResult Preview'
    
    accept:
      material: LIME_STAINED_GLASS_PANE
      skull-hash: ''
      enchanted: false
      name: '&2« &aAccept &2»'
      lore:
      - '&a» &7Price: &a$%cost%'
      - '&a» &7Balance: &a$%balance%'
      - '&a» &7Success Chance: &a%chance%%'
      - '&7'
      - '&7In case of failure your item will be &cdestroyed&7.'
      slots: 26
      type: ACCEPT
    exit:
      material: RED_STAINED_GLASS_PANE
      skull-hash: ''
      enchanted: false
      name: '&4« &cCancel &4»'
      lore: []
      slots: 18
      type: EXIT

Gems Example

material: ENCHANTED_BOOK
name: '&5Vampirism'
socket-display: '&5Vampirism &f+%ITEM_STAT_VAMPIRISM%'
lore:
- ' &7Enchantments add bonus effects'
- ' &7that enhance your items.'
- '&8--------------------'
- ' &5Vampirism: &f+%ITEM_STAT_VAMPIRISM%'
- '&8--------------------'
- ' &7Drop on any item with an empty'
- ' &7purple enchant slot.'
- '&8--------------------'
enchanted: false
item-flags:
- '*'
tier: common
level:
  min: 1
  max: 5
uses-by-level:
  '1': 1
success-rate-by-level:
  '1': '100'
bonuses-by-level:
  '1':
    item-stats:
      VAMPIRISM: 1.0
    damage-types: {}
    defense-types: {}
    skills:
      Vampire:
        level: 3
        lore-format:
        - '&cSuck the blood of your enemies'
  '2':
    item-stats:
      VAMPIRISM: 2.0
    damage-types: {}
    defense-types: {}
  '3':
    item-stats:
      VAMPIRISM: 3.0
    damage-types: {}
    defense-types: {}
  '4':
    item-stats:
      VAMPIRISM: 4.0
    damage-types: {}
    defense-types: {}
  '5':
    item-stats:
      VAMPIRISM: 5.0
    damage-types: {}
    defense-types: {}
target-requirements:
  type:
  - '*'
  socket: purple
  module:
  - '*'
⚠️ **GitHub.com Fallback** ⚠️