1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-29 21:30:26 +02:00

Move keys to a separate mod (Fix #1490)

This commit is contained in:
Louis Royer
2020-07-12 14:30:11 +02:00
committed by Lars Müller
parent 0c1252bcf5
commit 40861c9e4f
41 changed files with 288 additions and 162 deletions

28
mods/keys/crafting.lua Normal file
View File

@ -0,0 +1,28 @@
--
-- Crafting recipes
--
minetest.register_craft({
output = "keys:skeleton_key",
recipe = {
{"default:gold_ingot"},
}
})
--
-- Cooking recipes
--
minetest.register_craft({
type = "cooking",
output = "default:gold_ingot",
recipe = "keys:key",
cooktime = 5,
})
minetest.register_craft({
type = "cooking",
output = "default:gold_ingot",
recipe = "keys:skeleton_key",
cooktime = 5,
})