repair - magemonkeystudio/divinity GitHub Wiki

Commands

COMMAND ARGS DESCRIPTION P PERM
/rpgrepair open - Open Custom Repair Anvil GUI. N divinity.rpgrepair.cmd.open
/rpgrepair help - Show help page. N divinity.rpgrepair.cmd.help
/rpgrepair get [level] [amount] Get a repair item. N divinity.admin
/rpgrepair give [level] [amount] Give a repair item to a player. N divinity.admin
/rpgrepair drop [level] Drop the specified item in the world. N divinity.admin
/rpgrepair list [page] List of the repair items. N divinity.rpgrepair.cmd.list
/rpgrepair reload - Reload the module. N divinity.rpgrepair.cmd.reload

Settings.yml

command-aliases: rpgrepair
repair:
  actions-complete:
    default:
      conditions:
        list: []
        actions-on-fail: 'null'
      action-executors:
      - '[SOUND] ~name: BLOCK_ANVIL_USE; ~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;'
      target-selectors:
      - '[SELF] ~name: self;'
  types:
    EXP:
      enabled: true
      cost-per-unit: 0.1
    MATERIAL:
      enabled: true
      cost-per-unit: 0.02
    VAULT:
      enabled: true
      cost-per-unit: 1.39
  materials:
    ignore-items-with-meta: false
    materials-group:
      diamond:
      - DIAMOND
      iron:
      - IRON_INGOT
      gold:
      - GOLD_INGOT
      stone:
      - STONE
      - COBBLESTONE
      wood:
      - OAK_WOOD
      - BIRCH_WOOD
      stick:
      - STICK
    materials-table:
      diamond:
        name: Diamond(s)
        can-repair:
        - DIAMOND_*
      iron:
        name: Iron Ingot(s)
        can-repair:
        - IRON_*
        - SHEARS
      gold:
        name: Gold Ingot(s)
        can-repair:
        - GOLDEN_*
      stone:
        name: Stone(s)
        can-repair:
        - STONE_*
      wood:
        name: Wood
        can-repair:
        - WOODEN_*
      stick:
        name: Stick(s)
        can-repair:
        - BOW
anvil:
  enabled: false
  open-action: SHIFT_RIGHT
item-format:
  name: '%TIER_COLOR%%ITEM_NAME% %ITEM_LEVEL_ROMAN%'
  lore:
  - '&8&m               &f  「 INFO �  &8&m               '
  - '&7Repair amount: &f%repair%%'
  - '%ITEM_CHARGES%'
  - '%ITEM_LORE%'
  - '&8&m         &f  「 REQUIREMENTS �  &8&m        '
  - '%TARGET_LEVEL%'
  - '%TARGET_TYPE%'
  - '%TARGET_MODULE%'
  - '%TARGET_TIER%'
  - '&8&m              &f  「 USAGE �  &8&m              '
  - '&7Drag & Drop onto item to repair.'
gui:
  title: '&4&l<&4&nRepair&4&l>'
  size: 54
  item-slot: 1
  source-slot: 7
  result-slot: 22
  repair-types:
    exp:
      material: BOOK
      skull-hash: ''
      name: '&7[&eRepair by Exp&7]'
      lore:
      - '&eCost:           &6%cost% exp'
      - '&eYou have:     &6%have% exp'
      - '&8&m                                              '
      - '&eRepairs an item by your exp points.'
      slots: '37'
      type: EXP
    material:
      material: CRAFTING_TABLE
      skull-hash: ''
      name: '&7[&6Repair by Material&7]'
      lore:
      - '&eCost:           &6%cost% %mat%'
      - '&eYou have:     &6%have% %mat%'
      - '&8&m                                              '
      - '&eRepairs an item by materials.'
      item-flags:
      - '*'
      slots: '40'
      type: MATERIAL
    vault:
      material: EMERALD
      skull-hash: ''
      name: '&7[&aRepair by Money&7]'
      lore:
      - '&eCost:           &6%cost%$'
      - '&eYou have:     &6%have%$'
      - '&8&m                                              '
      - '&eRepairs an item by money.'
      slots: '43'
      type: VAULT
  content:
    filler_black:
      material: BLACK_STAINED_GLASS_PANE
      skull-hash: ''
      enchanted: false
      name: ''
      lore: []
      slots: 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,38,39,41,42,44,45,46,47,48,49,50,51,52,53
      type: NONE
    filler_yellow:
      material: YELLOW_STAINED_GLASS_PANE
      skull-hash: ''
      enchanted: false
      name: ''
      lore: []
      slots: 2,3,4,5,6,13
      type: NONE
    filler_orange:
      material: ORANGE_STAINED_GLASS_PANE
      skull-hash: ''
      enchanted: false
      name: ''
      lore: []
      slots: 19,20,21,23,24,25,28,31,34
      type: NONE
    accept:
      material: LIME_STAINED_GLASS_PANE
      skull-hash: ''
      enchanted: false
      name: '&a&l&nAccept'
      lore:
      - '&7The item will be repaired'
      - '&7if you can afford the repair.'
      - '&8&m                                              '
      - '&c&oDon''t forget to select'
      - '&c&othe repair type!'
      slots: '50'
      type: ACCEPT
    exit:
      material: RED_STAINED_GLASS_PANE
      skull-hash: ''
      enchanted: false
      name: '&c&l&nCancel'
      lore: []
      slots: '48'
      type: EXIT
⚠️ **GitHub.com Fallback** ⚠️