2019-09-10 19:09:51 +02:00
|
|
|
-- beds/beds.lua
|
|
|
|
|
|
|
|
-- support for MT game translation.
|
|
|
|
local S = beds.get_translator
|
|
|
|
|
2016-03-08 04:14:29 +01:00
|
|
|
-- Fancy shaped bed
|
|
|
|
|
2015-02-24 11:59:15 +01:00
|
|
|
beds.register_bed("beds:fancy_bed", {
|
2019-09-10 19:09:51 +02:00
|
|
|
description = S("Fancy Bed"),
|
2020-05-17 22:02:44 +02:00
|
|
|
inventory_image = "bed_fancy.png",
|
|
|
|
wield_image = "bed_fancy.png",
|
2015-02-24 11:59:15 +01:00
|
|
|
tiles = {
|
2016-03-08 04:14:29 +01:00
|
|
|
bottom = {
|
2020-05-17 22:02:44 +02:00
|
|
|
"bed_top1.png",
|
|
|
|
"bed_under.png",
|
|
|
|
"bed_side1.png",
|
|
|
|
"bed_side1.png^[transformFX",
|
|
|
|
"bed_foot.png",
|
|
|
|
"bed_foot.png",
|
2016-03-08 04:14:29 +01:00
|
|
|
},
|
|
|
|
top = {
|
2020-05-17 22:02:44 +02:00
|
|
|
"bed_top2.png",
|
|
|
|
"bed_under.png",
|
|
|
|
"bed_side2.png",
|
|
|
|
"bed_side2.png^[transformFX",
|
|
|
|
"bed_head.png",
|
|
|
|
"bed_head.png",
|
2016-03-08 04:14:29 +01:00
|
|
|
}
|
2015-02-24 11:59:15 +01:00
|
|
|
},
|
|
|
|
nodebox = {
|
2016-03-08 04:14:29 +01:00
|
|
|
bottom = {
|
|
|
|
{-0.5, -0.5, -0.5, -0.375, -0.065, -0.4375},
|
|
|
|
{0.375, -0.5, -0.5, 0.5, -0.065, -0.4375},
|
|
|
|
{-0.5, -0.375, -0.5, 0.5, -0.125, -0.4375},
|
|
|
|
{-0.5, -0.375, -0.5, -0.4375, -0.125, 0.5},
|
|
|
|
{0.4375, -0.375, -0.5, 0.5, -0.125, 0.5},
|
|
|
|
{-0.4375, -0.3125, -0.4375, 0.4375, -0.0625, 0.5},
|
|
|
|
},
|
|
|
|
top = {
|
|
|
|
{-0.5, -0.5, 0.4375, -0.375, 0.1875, 0.5},
|
|
|
|
{0.375, -0.5, 0.4375, 0.5, 0.1875, 0.5},
|
|
|
|
{-0.5, 0, 0.4375, 0.5, 0.125, 0.5},
|
|
|
|
{-0.5, -0.375, 0.4375, 0.5, -0.125, 0.5},
|
|
|
|
{-0.5, -0.375, -0.5, -0.4375, -0.125, 0.5},
|
|
|
|
{0.4375, -0.375, -0.5, 0.5, -0.125, 0.5},
|
|
|
|
{-0.4375, -0.3125, -0.5, 0.4375, -0.0625, 0.4375},
|
|
|
|
}
|
2015-02-24 11:59:15 +01:00
|
|
|
},
|
|
|
|
selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5},
|
|
|
|
recipe = {
|
2015-03-06 10:46:05 +01:00
|
|
|
{"", "", "group:stick"},
|
2019-02-10 22:38:58 +01:00
|
|
|
{"wool:white", "wool:white", "wool:white"},
|
2020-05-17 22:02:44 +02:00
|
|
|
{"group:soft_wood", "group:soft_wood", "group:soft_wood"},
|
2015-02-24 11:59:15 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2016-03-08 04:14:29 +01:00
|
|
|
-- Simple shaped bed
|
|
|
|
|
2015-02-24 11:59:15 +01:00
|
|
|
beds.register_bed("beds:bed", {
|
2019-09-10 19:09:51 +02:00
|
|
|
description = S("Simple Bed"),
|
2020-05-17 22:02:44 +02:00
|
|
|
inventory_image = "bed.png",
|
|
|
|
wield_image = "bed.png",
|
2015-02-24 11:59:15 +01:00
|
|
|
tiles = {
|
2016-03-08 04:14:29 +01:00
|
|
|
bottom = {
|
2020-05-17 22:02:44 +02:00
|
|
|
"bed_top_bottom.png^[transformR90",
|
|
|
|
"bed_under.png",
|
|
|
|
"bed_side_bottom_r.png",
|
|
|
|
"bed_side_bottom_r.png^[transformfx",
|
|
|
|
"transparent.png",
|
|
|
|
"bed_side_bottom.png"
|
2016-03-08 04:14:29 +01:00
|
|
|
},
|
|
|
|
top = {
|
2020-05-17 22:02:44 +02:00
|
|
|
"bed_top_top.png^[transformR90",
|
|
|
|
"bed_under.png",
|
|
|
|
"bed_side_top_r.png",
|
|
|
|
"bed_side_top_r.png^[transformfx",
|
|
|
|
"bed_side_top.png",
|
|
|
|
"transparent.png",
|
2016-03-08 04:14:29 +01:00
|
|
|
}
|
2015-02-24 11:59:15 +01:00
|
|
|
},
|
|
|
|
nodebox = {
|
2016-03-08 04:14:29 +01:00
|
|
|
bottom = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5},
|
|
|
|
top = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5},
|
2015-02-24 11:59:15 +01:00
|
|
|
},
|
|
|
|
selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5},
|
|
|
|
recipe = {
|
2019-02-10 22:38:58 +01:00
|
|
|
{"wool:white", "wool:white", "wool:white"},
|
2020-05-17 22:02:44 +02:00
|
|
|
{"group:soft_wood", "group:soft_wood", "group:soft_wood"}
|
2015-02-24 11:59:15 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2016-03-08 04:14:29 +01: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")
|
Add and edit fuel registrations
Edited fuels: fences, wooden ladder.
New fuels:
boat, paper, book, dry shrub, stick, vessels shelf, wooden tools,
wooden door, trapdoor, fence gates, farming crops, stairs, slabs, beds.
2016-10-30 11:29:58 +01:00
|
|
|
|
|
|
|
-- Fuel
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "beds:fancy_bed_bottom",
|
|
|
|
burntime = 13,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "beds:bed_bottom",
|
|
|
|
burntime = 12,
|
|
|
|
})
|