A Minecraft mod for extraction-style looting, where data packs define what fits in a bag and what it takes to open a container.
English | 简体中文
This branch targets Minecraft 26.3 on NeoForge 26.3.0.100 with AnvilLib 2.0.0. Use Java 25 and build it with ./gradlew build, then open the Extraction Demo Equipment creative tab. Map author guide (Chinese)
A powered cabinet has two ways in. Use a service key and hold for one second, or stay at the cabinet with a decoder. The decoder finishes on its own; timing a few inputs shortens the wait. Other containers can ask for a password, play a Morse message, show a Morse pattern, or use a scrolling character lock.
Once the door opens, a magnifier sweeps across an opaque grey cover. A stack of iron nuggets appears first. You can take it and leave, or stay to uncover a hook five cells wide. Only revealed items show their quality outline. Omit quality to use vanilla rarity, supply a custom quality, or set it to "disable" to hide the outline and quality hint.
{
"item": { "items": "minecraft:tripwire_hook" },
"shape": [" X ", "XXXXX"],
"rotatable": true,
"icons": {
"grid": "example:item/service_hook_grid",
"vanilla_slot": "example:item/service_hook_slot"
}
}A resource pack supplies the two optional textures. In a mod backpack or container, an 80×32 PNG spans the entire five-by-two shape and turns with the hook. Empty cells stay clear. In the vanilla inventory or hotbar, the same hook uses its separate single-slot icon.
The hook spans a five-by-two rectangle but occupies only the six X cells. Small items can fill the four gaps. Drag toward one of a slot’s four edges to choose the hook’s orientation. Double-click to transfer a whole stack between the backpack and the open container: existing items only move if the stack will not fit directly. If rearranging cannot make room, both inventories keep their original layouts.
Directory under data/<namespace>/extraction/ |
What it describes |
|---|---|
backpacks/ |
The bag’s outer footprint and its separate internal compartments. |
containers/ |
Storage grids, opening conditions, search timing and loot tables. |
items/ |
Occupied cells, allowed rotation, stack limits and optional custom quality. |
qualities/ |
Shared quality names and border colors. Reference a definition by ID, e.g. "quality": "example:precision". |
Servers can enable or disable the vanilla main inventory independently of how many hotbar slots are available (0–9). See the design examples for a field pack, a service cabinet and the hook that fits inside them.
