1
0
forked from MTSR/mapserver

add optional recipes

This commit is contained in:
NatureFreshMilk 2019-04-02 15:26:31 +02:00
parent 462ac0bd6e
commit 7c826012d9
5 changed files with 48 additions and 9 deletions

View File

@ -61,6 +61,15 @@ minetest.register_node("mapserver:border", {
update_formspec(meta)
end
})
if mapserver.enable_crafting then
minetest.register_craft({
output = 'mapserver:border',
recipe = {
{"", "default:steel_ingot", ""},
{"default:paper", "default:goldblock", "default:paper"},
{"", "default:glass", ""}
}
})
end

View File

@ -1,5 +1,7 @@
mapserver = {}
mapserver = {
enable_crafting = minetest.settings:get("mapserver.enable_crafting")
}
local MP = minetest.get_modpath("mapserver")
dofile(MP.."/common.lua")

View File

@ -57,6 +57,15 @@ minetest.register_node("mapserver:label", {
update_formspec(meta)
end
})
if mapserver.enable_crafting then
minetest.register_craft({
output = 'mapserver:label',
recipe = {
{"", "default:paper", ""},
{"default:paper", "default:goldblock", "default:paper"},
{"", "default:glass", ""}
}
})
end

View File

@ -57,6 +57,16 @@ minetest.register_node("mapserver:poi", {
update_formspec(meta)
end
})
if mapserver.enable_crafting then
minetest.register_craft({
output = 'mapserver:poi',
recipe = {
{"", "dye:blue", ""},
{"default:paper", "default:goldblock", "default:paper"},
{"", "default:glass", ""}
}
})
end

View File

@ -65,6 +65,15 @@ minetest.register_node("mapserver:train", {
update_formspec(meta)
end
})
if mapserver.enable_crafting then
minetest.register_craft({
output = 'mapserver:train',
recipe = {
{"", "default:steel_ingot", ""},
{"default:paper", "default:goldblock", "default:paper"},
{"", "default:glass", ""}
}
})
end