jo9m

A secret underground survival base disguised as a normal house, but completely rigged with hidden redstone traps, concealed dispensers with instant damage arrows under every floor tile, trapdoors, fake safe rooms, and deadly automatic defense mechanisms."

Kodari AI
KodariAug 26 at 6:10 pm 1
HiddenDeathtrapBase
Generates a secret underground survival base disguised as a normal house, fully rigged with hidden redstone traps, concealed dispensers firing instant-damage arrows beneath floor tiles, trapdoors, fake safe rooms, and automatic defense mechanisms. The datapack places the structure, wires all redstone circuits, and configures command blocks for activation, reset, and player detection.
  1. Create a vanilla 1.21.4 datapack with a house shell, underground chamber, concealed arrow dispensers, a scaffold entrance, and a trapped fake safe room.

  2. Register load/tick functions and provide build, arm, and disarm commands.

Download the ZIP using the export button, then:

  1. Extract it so the shadowhouse_datapack folder is directly inside world/datapacks/.

  2. Run /reload.

  3. Use /datapack list to verify that it loaded.

  4. Stand at the desired house floor level and run /function shadowhouse:build.

  5. Test or control it with:

    • /function shadowhouse:arm

    • /function shadowhouse:disarm

    • /function shadowhouse:build

Kodari can make mistakes. Review important code before using.
Files
shadowhouse_datapack
Code
9 91
shadowhouse_datapack/data/shadowhouse/function/build.mcfunction
kill @e[type=minecraft:marker,tag=shadowhouse_anchor,distance=..64]

fill ~-6 ~-7 ~-6 ~6 ~5 ~6 minecraft:air

fill ~-4 ~-7 ~-4 ~4 ~-6 ~4 minecraft:air
fill ~-4 ~-5 ~-4 ~4 ~-5 ~4 minecraft:deepslate_bricks
fill ~-4 ~-4 ~-4 ~-4 ~-3 ~4 minecraft:deepslate_bricks
fill ~4 ~-4 ~4 ~4 ~-3 ~-4 minecraft:deepslate_bricks
fill ~-4 ~-4 ~-4 ~4 ~-3 ~-4 minecraft:deepslate_bricks
fill ~-4 ~-4 ~4 ~4 ~-3 ~4 minecraft:deepslate_bricks
fill ~-4 ~-2 ~-4 ~4 ~-2 ~4 minecraft:stone_bricks
fill ~-3 ~-4 ~-3 ~3 ~-3 ~3 minecraft:air

fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 minecraft:dispenser[facing=up]

fill ~-3 ~-6 ~1 ~-1 ~-6 ~3 minecraft:dispenser[facing=up]
fill ~-3 ~-5 ~1 ~-1 ~-5 ~3 minecraft:oak_planks

fill ~-3 ~-4 ~1 ~-3 ~-3 ~3 minecraft:polished_deepslate
fill ~-3 ~-4 ~1 ~-1 ~-3 ~1 minecraft:polished_deepslate
fill ~-3 ~-4 ~3 ~-1 ~-3 ~3 minecraft:polished_deepslate
fill ~-1 ~-4 ~1 ~-1 ~-3 ~3 minecraft:polished_deepslate
setblock ~-1 ~-4 ~2 minecraft:air
setblock ~-1 ~-3 ~2 minecraft:air
setblock ~-2 ~-4 ~2 minecraft:barrel[facing=south]
setblock ~-2 ~-3 ~2 minecraft:lantern

fill ~-5 ~0 ~-5 ~5 ~0 ~5 minecraft:oak_planks
fill ~-5 ~1 ~-5 ~5 ~3 ~-5 minecraft:spruce_planks
fill ~-5 ~1 ~5 ~5 ~3 ~5 minecraft:spruce_planks
fill ~-5 ~1 ~-5 ~-5 ~3 ~5 minecraft:spruce_planks
fill ~5 ~1 ~-5 ~5 ~3 ~5 minecraft:spruce_planks

setblock ~-5 ~2 ~-2 minecraft:glass_pane
setblock ~-5 ~2 ~2 minecraft:glass_pane
setblock ~5 ~2 ~-2 minecraft:glass_pane
setblock ~5 ~2 ~2 minecraft:glass_pane
setblock ~-2 ~2 ~5 minecraft:glass_pane
setblock ~2 ~2 ~5 minecraft:glass_pane

setblock ~ ~0 ~-5 minecraft:oak_door[facing=south,half=lower,hinge=left,open=false,powered=false]
setblock ~ ~1 ~-5 minecraft:oak_door[facing=south,half=upper,hinge=left,open=false,powered=false]

fill ~-6 ~4 ~-6 ~6 ~4 ~6 minecraft:spruce_planks

setblock ~-3 ~1 ~-3 minecraft:crafting_table
setblock ~3 ~1 ~-3 minecraft:furnace[facing=north,lit=false]
setblock ~-3 ~1 ~3 minecraft:chest[facing=south,type=single]
setblock ~3 ~1 ~3 minecraft:lantern

setblock ~ ~0 ~ minecraft:oak_trapdoor[facing=north,half=bottom,open=false,powered=false]
fill ~ ~-4 ~ ~ ~-1 ~ minecraft:scaffolding

summon minecraft:marker ~ ~ ~ {Tags:["shadowhouse_anchor"]}

tellraw @s {"text":"Shadow House built. The oak floor tiles are armed, the center trapdoor leads underground, and the southwest safe room is fake.","color":"gold"}