Add MineClone 2 crafting recipe

The ingredient detection was also simplified.
This commit is contained in:
Jude Melton-Houghton 2021-07-27 13:12:50 -04:00
parent ba8518fd52
commit 027f91a340
2 changed files with 30 additions and 3 deletions

View File

@ -21,8 +21,9 @@
local area_containers = ...
function area_containers.register_crafts()
if minetest.registered_craftitems["default:steel_ingot"] and
minetest.registered_nodes["default:mese"] then
-- Minetest Game:
if minetest.registered_items["default:steel_ingot"] and
minetest.registered_items["default:mese"] then
minetest.register_craft({
output = "area_containers:container",
recipe = {
@ -44,4 +45,30 @@ function area_containers.register_crafts()
},
})
end
-- MineClone 2:
if minetest.registered_items["mcl_core:ironblock"] and
minetest.registered_items["mesecons:redstone"] and
minetest.registered_items["mcl_core:diamond"] then
minetest.register_craft({
output = "area_containers:container",
recipe = {
{
"mcl_core:ironblock",
"mesecons:redstone",
"mcl_core:ironblock"
},
{
"mesecons:redstone",
"mcl_core:diamond",
"mesecons:redstone",
},
{
"mcl_core:ironblock",
"mesecons:redstone",
"mcl_core:ironblock",
},
},
})
end
end

View File

@ -2,4 +2,4 @@ name = area_containers
title = Area Containers
author = Jude Melton-Houghton
description = Adds nodes that contain areas in which you can build
optional_depends = default, digilines, mesecons, mesecons_mvps, pipeworks
optional_depends = default, digilines, mcl_core, mesecons, mesecons_mvps, pipeworks