Skip to content

Commit

Permalink
Move crafting, cooking and fuel recipes into corresponding files
Browse files Browse the repository at this point in the history
  • Loading branch information
An0n3m0us authored and paramat committed Jan 1, 2020
1 parent 1082466 commit 6e32287
Show file tree
Hide file tree
Showing 6 changed files with 372 additions and 362 deletions.
36 changes: 36 additions & 0 deletions mods/default/chests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -318,3 +318,39 @@ default.chest.register_chest("chest_locked", {
groups = {choppy = 2, oddly_breakable_by_hand = 2},
protected = true,
})

minetest.register_craft({
output = "default:chest",
recipe = {
{"group:wood", "group:wood", "group:wood"},
{"group:wood", "", "group:wood"},
{"group:wood", "group:wood", "group:wood"},
}
})

minetest.register_craft({
output = "default:chest_locked",
recipe = {
{"group:wood", "group:wood", "group:wood"},
{"group:wood", "default:steel_ingot", "group:wood"},
{"group:wood", "group:wood", "group:wood"},
}
})

minetest.register_craft( {
type = "shapeless",
output = "default:chest_locked",
recipe = {"default:chest", "default:steel_ingot"},
})

minetest.register_craft({
type = "fuel",
recipe = "default:chest",
burntime = 30,
})

minetest.register_craft({
type = "fuel",
recipe = "default:chest_locked",
burntime = 30,
})
Loading

0 comments on commit 6e32287

Please sign in to comment.