Skip to content

Dismantle

MaksyKun edited this page Jul 25, 2026 · 3 revisions

Dismantle

Dismantle consumes a configured tool and target item, then returns results from a source table.

Files

  • Settings: modules/dismantle/settings.yml

  • Tools: items/tool_armor.yml, tool_weapon.yml

  • Results: source/table_default.yml

  • Bundled resources on GitHub

Commands and permissions

  • dismantle open [player]divinity.dismantle.cmd.open
  • GUI access — divinity.dismantle.gui
  • Shared list, get, give, drop, and reloaddivinity.admin

Configuration and example

gui.item-slots accepts targets and result-slots displays the configured output. Tool target-requirements decide what may be dismantled.

Administrator notes

  • Treat source tables as economy configuration. Calculate expected output value before allowing players to dismantle farmable items.
  • Require the narrowest target type, level, module, and tier ranges that fit the intended tool.
  • Test insufficient charges, invalid targets, full inventories, shift-clicking, disconnects, and GUI cancellation.
  • Grant divinity.dismantle.gui and divinity.dismantle.cmd.open only to the intended groups.
items/tool_armor.yml — bundled armor tool
material: SHEARS
name: Armor Dismantle Tool
tier: common
uses-by-level:
  '1': 1
  '2': 2
  '3': 3
level:
  min: 1
  max: 3
target-requirements:
  type:
    - ARMOR
  level:
    '1': 1
  module:
    - '*'

See Modules and Commands and Permissions.

Clone this wiki locally