mirror of
https://github.com/minetest-mods/more_chests.git
synced 2024-11-14 22:30:33 +01:00
Add Fridge model
This commit is contained in:
parent
e3bec6564d
commit
075d16d8fb
1
init.lua
1
init.lua
|
@ -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
28
models/fridge.lua
Normal 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
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
BIN
textures/fridge_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Loading…
Reference in New Issue
Block a user