1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-18 16:20:38 +01:00
server-nalc/minetestforfun_game/mods/beds/beds.lua
LeMagnesium 5863e01b49 Merged actual beds with mesh version by @jp
- Beds are now meshes
2015-04-11 23:12:27 +02:00

35 lines
1.0 KiB
Lua
Executable File

-- fancy shaped bed
beds.register_bed("beds:fancy_bed", {
description = "Fancy Bed",
inventory_image = "beds_bed_fancy.png",
wield_image = "beds_bed_fancy.png",
tiles = {"fancy_bed.png", "default_wood.png"},
mesh = "fancy_bed.obj",
selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.1875, 1.5},
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0, 1.5},
recipe = {
{"", "", "group:stick"},
{"wool:red", "wool:red", "wool:white"},
{"group:wood", "group:wood", "group:wood"},
},
})
-- simple shaped bed
beds.register_bed("beds:bed", {
description = "Simple Bed",
inventory_image = "beds_bed.png",
wield_image = "beds_bed.png",
tiles = {"simple_bed.png"},
mesh = "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:red", "wool:red", "wool:white"},
{"group:wood", "group:wood", "group:wood"}
},
})
-- aliases for PA's beds mod
minetest.register_alias("beds:bed_bottom_red", "beds:bed_bottom")
minetest.register_alias("beds:bed_top_red", "beds:bed_top")