mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-26 18:50:38 +01:00
5863e01b49
- Beds are now meshes
35 lines
1.0 KiB
Lua
Executable File
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")
|