Fridge now has both normal and big (2 blocks) models
This commit is contained in:
parent
4f6c414f11
commit
fc66535402
|
@ -2,6 +2,7 @@
|
||||||
Cobble Chest=Baule in ciottoli
|
Cobble Chest=Baule in ciottoli
|
||||||
Dropbox=Baule Donazioni
|
Dropbox=Baule Donazioni
|
||||||
Fridge=Frigorifero
|
Fridge=Frigorifero
|
||||||
|
Big Fridge=Frigorifero Grande
|
||||||
Secret Chest=Baule Segreto
|
Secret Chest=Baule Segreto
|
||||||
Shared Chest=Baule Condiviso
|
Shared Chest=Baule Condiviso
|
||||||
Wifi Chest=Baule WiFi
|
Wifi Chest=Baule WiFi
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
Cobble Chest=
|
Cobble Chest=
|
||||||
Dropbox=
|
Dropbox=
|
||||||
Fridge=
|
Fridge=
|
||||||
|
Big Fridge=
|
||||||
Secret Chest=
|
Secret Chest=
|
||||||
Shared Chest=
|
Shared Chest=
|
||||||
Wifi Chest=
|
Wifi Chest=
|
||||||
|
|
|
@ -1,10 +1,33 @@
|
||||||
local gen_def = dofile(minetest.get_modpath("more_chests") .. "/utils/base.lua")
|
local gen_def = dofile(minetest.get_modpath("more_chests") .. "/utils/base.lua")
|
||||||
local S = minetest.get_translator("more_chests")
|
local S = minetest.get_translator("more_chests")
|
||||||
|
|
||||||
|
-- TODO model open
|
||||||
|
|
||||||
local fridge = gen_def({
|
local fridge = gen_def({
|
||||||
-- TODO model open
|
|
||||||
description = S("Fridge"),
|
description = S("Fridge"),
|
||||||
type = "fridge",
|
type = "fridge",
|
||||||
|
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",
|
||||||
size = "big",
|
size = "big",
|
||||||
node_box = {
|
node_box = {
|
||||||
{-0.5, -0.5, -0.5, 0.5, 1.5, 0.5},
|
{-0.5, -0.5, -0.5, 0.5, 1.5, 0.5},
|
||||||
|
@ -20,9 +43,8 @@ local fridge = gen_def({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("more_chests:big_fridge", big_fridge)
|
||||||
minetest.register_node("more_chests:fridge", fridge)
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "more_chests:fridge",
|
output = "more_chests:big_fridge",
|
||||||
recipe = fridge.recipe,
|
recipe = big_fridge.recipe,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue