NightExpress's Plugins Wiki

Allows you to extract filled item sockets for a price. Socket will be free and socket item will be destroyed.

REQUIRES Vault to work!

Extraction:

  • Extraction GUI.
  • Different cost for each socket type.
  • Ability to select the socket to extract.​

Extraction Tools:

  • Allows to extract sockets away from NPCs.
  • Requirements for the target item such as level and type.

Media:

Settings.yml

Default module settings are described HERE.

cfg_version: 1.0
command-aliases: extractor
messages-output: ACTION_BAR

# Extraction settings.
extract:
  # Extraction cost for socket types.
  cost:
    GEM: 250.0
    RUNE: 250.0
    ESSENCE: 250.0

# Item Format
# Default item settings and placeholders are described HERE.
item-format:
  name: '%item_name%'
  lore:
  - '&8&m               &f  「 INFO 」  &8&m               '
  - '%item_lore%'
  - '&8&m         &f  「 REQUIREMENTS 」  &8&m        '
  - '%item-level%'
  - '%item-types%'
  - '&8&m               &f 「 USAGE 」 &8&m               '
  - '&7Drag & Drop onto item to start extracting.'

# GUI Settings
# Default GUI settings are described HERE
gui:
  title: '          &4« &lExtractor &r&4»'
  size: 54
  # Slot for target item.
  item-slot: 2
  # Slot for source (tool) item.
  source-slot: 4
  # Slot for result preview.
  result-slot: 6
  # Slots to display filled socket items.
  socket-slots: 45,46,47,48,49,50,51,52,53
  # Name for socket items. %name% - Socket item name.
  socket-name: '&7Extract: %name%'
  # Lore for socket items.
  # %cost% - Extraction cost.
  # %have% - Player's balance.
  socket-lore:
  - '&7Cost:           &e%cost%$'
  - '&7You have:     &e%have%$'
  - '&8&m                                      '
  - '&f[Click to select this item]'
  # Item format for Socket Type categories.
  # Player will select the socket type he want to extract by clicking these items.
  socket-types:
    # Must be a valid Socket Type! You can remove it, if you don't want to let players extract it.
    GEM:
      material: EMERALD:0:1
      skull-hash: ''
      name: '&aExtract Gems'
      lore: []
      slots: '28'
      type: NONE
    RUNE:
      material: PRISMARINE_SHARD:0:1
      skull-hash: ''
      name: '&bExtract Runes'
      lore: []
      slots: '31'
      type: NONE
    ESSENCE:
      material: ROSE_RED:0:1
      skull-hash: ''
      name: '&cExtract Essences'
      lore: []
      slots: '34'
      type: NONE
  # Custom items
  content:
    filler_black:
      material: BLACK_STAINED_GLASS_PANE:0:1
      skull-hash: ''
      enchanted: false
      name: ''
      lore: []
      slots: 0,1,2,3,4,5,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,37,38,39,40,41,42,43,44
      type: NONE
    filler_yellow:
      material: YELLOW_STAINED_GLASS_PANE:0:1
      skull-hash: ''
      enchanted: false
      name: ''
      lore: []
      slots: 3,5
      type: NONE
    filler_orange:
      material: ORANGE_STAINED_GLASS_PANE:0:1
      skull-hash: ''
      enchanted: false
      name: ''
      lore: []
      slots: 10,11,12,13,14,15,16,19,22,25
      type: NONE
    accept:
      material: LIME_STAINED_GLASS_PANE:0:1
      skull-hash: ''
      enchanted: false
      name: '&2« &aAccept &2»'
      lore:
      - '&7Selected socket will be extracted.'
      - '&7Item in socket will be &cdestroyed&7.'
      - '&8&m                                              '
      - '&f[Click to confirm]'
      slots: '8'
      type: ACCEPT
    exit:
      material: RED_STAINED_GLASS_PANE:0:1
      skull-hash: ''
      enchanted: false
      name: '&4« &cCancel &4»'
      lore:
      - '&7No actions will be done.'
      - '&8&m                              '
      - '&f[Click to exit]'
      slots: '0'
      type: EXIT

Items

The default item settings and placeholders are described HERE.
# Default item settings.
material: IRON_AXE:0:1
name: '&a&fExtraction Tool %rlevel%'
lore:
- '&7This tool can extract armor sockets.'
item-flags:
- '*'

# Min. and max. item level.
min-level: 1
max-level: 3

# Target item level requirements.
item-level-requirements:
  '1': 1-5
  '2': 5-10
  '3': 10-15

# Target item type requirements.
item-types:
- ARMOR
Navigation