Closed Bob74 closed 2 years ago
You can add blocks in the locksmith:lockable tag
If someone is looking for this, create a datapack and add the following file:
data/locksmith/tags/blocks/lockable.json
{
"replace": false,
"values": [
"#minecraft:wooden_doors",
"#minecraft:wooden_trapdoors",
"#minecraft:fence_gates",
{"id": "ironchests:dirt_chest", "required": true},
{"id": "ironchests:copper_chest", "required": true},
{"id": "ironchests:iron_chest", "required": true},
{"id": "ironchests:gold_chest", "required": true},
{"id": "ironchests:diamond_chest", "required": true},
{"id": "ironchests:obsidian_chest", "required": true},
{"id": "ironchests:crystal_chest", "required": true},
{"id": "ironchests:netherite_chest", "required": true},
{"id": "charm:acacia_chest", "required": true},
{"id": "charm:acacia_trapped_chest", "required": true},
{"id": "charm:azalea_chest", "required": true},
{"id": "charm:azalea_trapped_chest", "required": true},
{"id": "charm:birch_chest", "required": true},
{"id": "charm:birch_trapped_chest", "required": true},
{"id": "charm:crimson_chest", "required": true},
{"id": "charm:crimson_trapped_chest", "required": true},
{"id": "charm:dark_oak_chest", "required": true},
{"id": "charm:dark_oak_trapped_chest", "required": true},
{"id": "charm:ebony_chest", "required": true},
{"id": "charm:ebony_trapped_chest", "required": true},
{"id": "charm:jungle_chest", "required": true},
{"id": "charm:jungle_trapped_chest", "required": true},
{"id": "charm:oak_chest", "required": true},
{"id": "charm:oak_trapped_chest", "required": true},
{"id": "charm:spruce_chest", "required": true},
{"id": "charm:spruce_trapped_chest", "required": true},
{"id": "charm:warped_chest", "required": true},
{"id": "charm:warped_trapped_chest", "required": true},
{
"id": "#c:chest",
"required": false
},
{
"id": "#forge:chests",
"required": false
},
{
"id": "#c:barrel",
"required": false
},
{
"id": "#forge:barrels",
"required": false
}
]
}
Hey, sorry for posting on a Closed thread but you can just add the tag/line
{"id": "#c:wooden_chests", "required": true},
And this will make most modded chests work without having to individually put one by one.
data/locksmith/tags/blocks/lockable.json
Hope this helps!
{
"replace": false,
"values": [
"#minecraft:wooden_doors",
"#minecraft:wooden_trapdoors",
"#minecraft:fence_gates",
{"id": "#c:wooden_chests", "required": true},
{"id": "#paradise_lost:wooden_chests", "required": true},
{"id": "#paradise_lost:doors", "required": true},
{
"id": "#c:chest",
"required": false
},
{
"id": "#forge:chests",
"required": false
},
{
"id": "#c:barrel",
"required": false
},
{
"id": "#forge:barrels",
"required": false
}
]
}
What version are you seeing the problem on?
1.18.2
Describe the issue
Mod version : Fabric 1.18.2 - 1.0.3
Hi, I really love your mod!
I'm making a modpack and I noticed it is not compatible with some modded chests (from Ironchests Restocked and Charm)
Is it possible to add lock compatibility using a datapack?
latest.log