1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-14 14:00:19 +01:00
minetest_game/mods/beds/beds.lua

110 lines
2.6 KiB
Lua
Raw Normal View History

-- 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", {
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 = {
2016-03-08 04:14:29 +01:00
bottom = {
"beds_bed_top1.png",
"beds_bed_under.png",
2016-03-08 04:14:29 +01:00
"beds_bed_side1.png",
"beds_bed_side1.png^[transformFX",
"beds_bed_foot.png",
2016-03-08 04:14:29 +01:00
"beds_bed_foot.png",
},
top = {
"beds_bed_top2.png",
"beds_bed_under.png",
2016-03-08 04:14:29 +01:00
"beds_bed_side2.png",
"beds_bed_side2.png^[transformFX",
"beds_bed_head.png",
"beds_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 = {
{"", "", "group:stick"},
{"wool:white", "wool:white", "wool:white"},
2015-02-24 11:59:15 +01:00
{"group:wood", "group:wood", "group:wood"},
},
})
2016-03-08 04:14:29 +01: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 = {
2016-03-08 04:14:29 +01:00
bottom = {
"beds_bed_top_bottom.png^[transformR90",
"beds_bed_under.png",
2016-03-08 04:14:29 +01:00
"beds_bed_side_bottom_r.png",
"beds_bed_side_bottom_r.png^[transformfx",
"beds_transparent.png",
"beds_bed_side_bottom.png"
},
top = {
"beds_bed_top_top.png^[transformR90",
"beds_bed_under.png",
2016-03-08 04:14:29 +01:00
"beds_bed_side_top_r.png",
"beds_bed_side_top_r.png^[transformfx",
"beds_bed_side_top.png",
"beds_transparent.png",
}
2015-02-24 11:59:15 +01:00
},
nodebox = {
bottom = {-0.5, -0.5, -0.5, 0.5, 0.0625, 0.5},
top = {-0.5, -0.5, -0.5, 0.5, 0.0625, 0.5},
2015-02-24 11:59:15 +01:00
},
selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.0625, 1.5},
2015-02-24 11:59:15 +01:00
recipe = {
{"wool:white", "wool:white", "wool:white"},
2015-02-24 11:59:15 +01:00
{"group:wood", "group:wood", "group:wood"}
},
})
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")
-- Fuel
minetest.register_craft({
type = "fuel",
recipe = "beds:fancy_bed_bottom",
burntime = 13,
})
minetest.register_craft({
type = "fuel",
recipe = "beds:bed_bottom",
burntime = 12,
})