Add MineClone 2 crafting recipe
The ingredient detection was also simplified.
This commit is contained in:
parent
ba8518fd52
commit
027f91a340
31
crafts.lua
31
crafts.lua
@ -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
|
||||
|
2
mod.conf
2
mod.conf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user