Add Fridge model

This commit is contained in:
k 2020-05-03 16:06:53 +02:00
parent e3bec6564d
commit 075d16d8fb
4 changed files with 29 additions and 0 deletions

View File

@ -1,5 +1,6 @@
dofile(minetest.get_modpath("more_chests").."/models/cobble.lua")
dofile(minetest.get_modpath("more_chests").."/models/dropbox.lua")
dofile(minetest.get_modpath("more_chests").."/models/fridge.lua")
dofile(minetest.get_modpath("more_chests").."/models/secret.lua")
dofile(minetest.get_modpath("more_chests").."/models/shared.lua")
dofile(minetest.get_modpath("more_chests").."/models/wifi.lua")

28
models/fridge.lua Normal file
View File

@ -0,0 +1,28 @@
local gen_def = dofile(minetest.get_modpath("more_chests") .. "/utils/base.lua")
local S = minetest.get_translator("more_chests")
local fridge = gen_def({
-- TODO model open
description = S("Fridge"),
type = "fridge",
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"}
},
})
minetest.register_node("more_chests:fridge", fridge)
minetest.register_craft({
output = "more_chests:fridge",
recipe = fridge.recipe,
})

BIN
textures/fridge_front.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
textures/fridge_side.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB