83 lines
2.2 KiB
Lua
Raw Permalink Normal View History

local S = beds.get_translator
2016-03-08 03:14:29 +00:00
-- Fancy shaped bed
2015-02-24 11:59:15 +01:00
beds.register_bed("beds:fancy_bed", {
description = S("Fancy Bed"),
2015-02-24 11:59:15 +01:00
inventory_image = "beds_bed_fancy.png",
wield_image = "beds_bed_fancy.png",
tiles = {"beds_fancy_bed.png", "default_wood.png"},
mesh = "beds_fancy_bed.obj",
selectionbox = {-0.5, -0.5, -0.5, 0.5, -0.06, 1.5},
collisionbox = {-0.5, -0.5, -0.5, 0.5, -0.06, 1.5},
2015-02-24 11:59:15 +01:00
recipe = {
{"", "", "group:stick"},
{"wool:white", "wool:white", "wool:white"},
{"group:wood", "group:wood", "group:wood"}
}
})
beds.register_bed("beds:fancy_bed_pink", {
description = S("Pink Fancy Bed"),
inventory_image = "beds_bed_fancy_pink.png",
wield_image = "beds_bed_fancy_pink.png",
tiles = {"beds_fancy_bed_pink.png", "default_wood.png"},
mesh = "beds_fancy_bed.obj",
selectionbox = {-0.5, -0.5, -0.5, 0.5, -0.06, 1.5},
collisionbox = {-0.5, -0.5, -0.5, 0.5, -0.06, 1.5},
recipe = {
{"", "", "group:stick"},
{"wool:pink", "wool:pink", "wool:white"},
{"group:wood", "group:wood", "group:wood"}
}
2015-02-24 11:59:15 +01:00
})
2016-03-08 03:14:29 +00:00
-- Simple shaped bed
2015-02-24 11:59:15 +01:00
beds.register_bed("beds:bed", {
description = S("Simple Bed"),
2015-02-24 11:59:15 +01:00
inventory_image = "beds_bed.png",
wield_image = "beds_bed.png",
tiles = {"beds_simple_bed.png"},
mesh = "beds_simple_bed.obj",
selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5},
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5},
recipe = {
{"wool:white", "wool:white", "wool:white"},
{"group:wood", "group:wood", "group:wood"}
}
})
beds.register_bed("beds:bed_blue", {
description = S("Blue Simple Bed"),
inventory_image = "beds_bed_blue.png",
wield_image = "beds_bed_blue.png",
tiles = {"beds_simple_bed_blue.png"},
mesh = "beds_simple_bed.obj",
2015-02-24 11:59:15 +01:00
selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5},
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5},
2015-02-24 11:59:15 +01:00
recipe = {
{"wool:blue", "wool:blue", "wool:white"},
2015-02-24 11:59:15 +01:00
{"group:wood", "group:wood", "group:wood"}
}
2015-02-24 11:59:15 +01:00
})
2016-03-08 03:14:29 +00:00
-- Aliases for PilzAdam's beds mod
2015-02-24 11:59:15 +01:00
minetest.register_alias("beds:bed_bottom_red", "beds:bed_bottom")
minetest.register_alias("beds:bed_top_red", "beds:bed_top")
-- Fuel
minetest.register_craft({
type = "fuel",
recipe = "beds:fancy_bed",
burntime = 13
})
minetest.register_craft({
type = "fuel",
recipe = "beds:bed",
burntime = 12
})