-
Notifications
You must be signed in to change notification settings - Fork 13
Dismantle
MaksyKun edited this page Jul 25, 2026
·
3 revisions
Dismantle consumes a configured tool and target item, then returns results from a source table.
-
Settings:
modules/dismantle/settings.yml -
Tools:
items/tool_armor.yml,tool_weapon.yml -
Results:
source/table_default.yml
-
dismantle open [player]—divinity.dismantle.cmd.open - GUI access —
divinity.dismantle.gui - Shared
list,get,give,drop, andreload—divinity.admin
gui.item-slots accepts targets and result-slots displays the configured output. Tool target-requirements decide what may be dismantled.
- 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.guianddivinity.dismantle.cmd.openonly 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.