2020-05-03 16:06:53 +02:00
|
|
|
local gen_def = dofile(minetest.get_modpath("more_chests") .. "/utils/base.lua")
|
|
|
|
local S = minetest.get_translator("more_chests")
|
|
|
|
|
2020-05-03 19:12:47 +02:00
|
|
|
-- TODO model open
|
|
|
|
|
2020-05-03 16:06:53 +02:00
|
|
|
local fridge = gen_def({
|
|
|
|
description = S("Fridge"),
|
|
|
|
type = "fridge",
|
2020-05-03 19:12:47 +02:00
|
|
|
size = "small",
|
|
|
|
tiles = {
|
|
|
|
side = "fridge_side.png",
|
|
|
|
front = "fridge_front.png",
|
|
|
|
},
|
|
|
|
recipe = {
|
|
|
|
{"", "default:steel_ingot", ""},
|
|
|
|
{"default:steel_ingot", "default:ice", "default:steel_ingot"},
|
|
|
|
{"", "default:steel_ingot", ""}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("more_chests:fridge", fridge)
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "more_chests:fridge",
|
|
|
|
recipe = fridge.recipe,
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
local big_fridge = gen_def({
|
|
|
|
description = S("Big Fridge"),
|
|
|
|
type = "fridge",
|
2020-05-03 16:06:53 +02:00
|
|
|
size = "big",
|
|
|
|
node_box = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, 1.5, 0.5},
|
|
|
|
},
|
|
|
|
tiles = {
|
|
|
|
side = "fridge_side.png",
|
|
|
|
front = "fridge_front.png",
|
|
|
|
},
|
|
|
|
recipe = {
|
|
|
|
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
|
|
|
{"default:steel_ingot", "default:ice", "default:steel_ingot"},
|
|
|
|
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2020-05-03 19:12:47 +02:00
|
|
|
minetest.register_node("more_chests:big_fridge", big_fridge)
|
2020-05-03 16:06:53 +02:00
|
|
|
minetest.register_craft({
|
2020-05-03 19:12:47 +02:00
|
|
|
output = "more_chests:big_fridge",
|
|
|
|
recipe = big_fridge.recipe,
|
2020-05-03 16:06:53 +02:00
|
|
|
})
|