Ajout de plusieurs mods personnalisés
1
nalc_beds/depends.txt
Normal file
@ -0,0 +1 @@
|
||||
beds
|
112
nalc_beds/init.lua
Normal file
@ -0,0 +1,112 @@
|
||||
for _, colour in pairs({"white", "black", "blue", "green"}) do
|
||||
-- fancy shaped bed
|
||||
beds.register_bed(
|
||||
"nalc_beds:fancy_bed_" .. colour,
|
||||
{
|
||||
description = "Fancy Bed (" .. colour .. ")",
|
||||
inventory_image = "beds_bed_fancy_" .. colour .. ".png",
|
||||
wield_image = "beds_bed_fancy_" .. colour .. ".png",
|
||||
tiles = {
|
||||
bottom = {
|
||||
"beds_bed_top1_" .. colour .. ".png",
|
||||
"default_wood.png",
|
||||
"beds_bed_side1_" .. colour .. ".png",
|
||||
"beds_bed_side1_" .. colour .. ".png^[transformFX",
|
||||
"default_wood.png",
|
||||
"beds_bed_foot_" .. colour .. ".png",
|
||||
},
|
||||
top = {
|
||||
"beds_bed_top2_" .. colour .. ".png",
|
||||
"default_wood.png",
|
||||
"beds_bed_side2_" .. colour .. ".png",
|
||||
"beds_bed_side2_" .. colour .. ".png^[transformFX",
|
||||
"beds_bed_head.png",
|
||||
"default_wood.png",
|
||||
}
|
||||
},
|
||||
nodebox = {
|
||||
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},
|
||||
}
|
||||
},
|
||||
selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5},
|
||||
recipe = {
|
||||
{"", "", "group:stick"},
|
||||
{"wool:" .. colour, "wool:" .. colour, "wool:white"},
|
||||
{"group:wood", "group:wood", "group:wood"},
|
||||
},
|
||||
})
|
||||
-- Alias for retro compatibility
|
||||
minetest.register_alias("beds:fancy_bed_"..colour.."_bottom", "nalc_beds:fancy_bed_"..colour.."_bottom")
|
||||
minetest.register_alias("beds:fancy_bed_"..colour.."_top", "nalc_beds:fancy_bed_"..colour.."_top")
|
||||
|
||||
-- simple shaped bed
|
||||
beds.register_bed(
|
||||
"nalc_beds:bed_" .. colour,
|
||||
{
|
||||
description = "Simple Bed (" .. colour .. ")",
|
||||
inventory_image = "beds_bed_" .. colour .. ".png",
|
||||
wield_image = "beds_bed_" .. colour .. ".png",
|
||||
tiles = {
|
||||
bottom = {
|
||||
"beds_bed_top_bottom_" .. colour .. ".png^[transformR90",
|
||||
"default_wood.png",
|
||||
"beds_bed_side_bottom_r_" .. colour .. ".png",
|
||||
"beds_bed_side_bottom_r_" .. colour .. ".png^[transformfx",
|
||||
"beds_transparent.png",
|
||||
"beds_bed_side_bottom_" .. colour .. ".png"
|
||||
},
|
||||
top = {
|
||||
"beds_bed_top_top_" .. colour .. ".png^[transformR90",
|
||||
"default_wood.png",
|
||||
"beds_bed_side_top_r_" .. colour .. ".png",
|
||||
"beds_bed_side_top_r_" .. colour .. ".png^[transformfx",
|
||||
"beds_bed_side_top.png",
|
||||
"beds_transparent.png",
|
||||
}
|
||||
},
|
||||
nodebox = {
|
||||
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},
|
||||
},
|
||||
selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5},
|
||||
recipe = {
|
||||
{"wool:" .. colour, "wool:" .. colour, "wool:white"},
|
||||
{"group:wood", "group:wood", "group:wood"}
|
||||
},
|
||||
|
||||
})
|
||||
-- Alias for retro compatibility
|
||||
minetest.register_alias("beds:bed_"..colour.."_bottom", "nalc_beds:bed_"..colour.."_bottom")
|
||||
minetest.register_alias("beds:bed_"..colour.."_top", "nalc_beds:bed_"..colour.."_top")
|
||||
|
||||
-- Fuel
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "nalc_beds:fancy_bed_"..colour,
|
||||
burntime = 13,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "nalc_beds:bed_"..colour,
|
||||
burntime = 12,
|
||||
})
|
||||
end
|
BIN
nalc_beds/textures/beds_bed_black.png
Executable file
After Width: | Height: | Size: 429 B |
BIN
nalc_beds/textures/beds_bed_blue.png
Executable file
After Width: | Height: | Size: 545 B |
BIN
nalc_beds/textures/beds_bed_fancy_black.png
Executable file
After Width: | Height: | Size: 432 B |
BIN
nalc_beds/textures/beds_bed_fancy_blue.png
Executable file
After Width: | Height: | Size: 545 B |
BIN
nalc_beds/textures/beds_bed_fancy_green.png
Executable file
After Width: | Height: | Size: 521 B |
BIN
nalc_beds/textures/beds_bed_fancy_white.png
Executable file
After Width: | Height: | Size: 540 B |
BIN
nalc_beds/textures/beds_bed_foot_black.png
Executable file
After Width: | Height: | Size: 366 B |
BIN
nalc_beds/textures/beds_bed_foot_blue.png
Executable file
After Width: | Height: | Size: 416 B |
BIN
nalc_beds/textures/beds_bed_foot_green.png
Executable file
After Width: | Height: | Size: 400 B |
BIN
nalc_beds/textures/beds_bed_foot_white.png
Executable file
After Width: | Height: | Size: 408 B |
BIN
nalc_beds/textures/beds_bed_green.png
Executable file
After Width: | Height: | Size: 523 B |
BIN
nalc_beds/textures/beds_bed_side1_black.png
Executable file
After Width: | Height: | Size: 274 B |
BIN
nalc_beds/textures/beds_bed_side1_blue.png
Executable file
After Width: | Height: | Size: 308 B |
BIN
nalc_beds/textures/beds_bed_side1_green.png
Executable file
After Width: | Height: | Size: 299 B |
BIN
nalc_beds/textures/beds_bed_side1_white.png
Executable file
After Width: | Height: | Size: 295 B |
BIN
nalc_beds/textures/beds_bed_side2_black.png
Executable file
After Width: | Height: | Size: 317 B |
BIN
nalc_beds/textures/beds_bed_side2_blue.png
Executable file
After Width: | Height: | Size: 331 B |
BIN
nalc_beds/textures/beds_bed_side2_green.png
Executable file
After Width: | Height: | Size: 326 B |
BIN
nalc_beds/textures/beds_bed_side2_white.png
Executable file
After Width: | Height: | Size: 326 B |
BIN
nalc_beds/textures/beds_bed_side_bottom_black.png
Executable file
After Width: | Height: | Size: 358 B |
BIN
nalc_beds/textures/beds_bed_side_bottom_blue.png
Executable file
After Width: | Height: | Size: 456 B |
BIN
nalc_beds/textures/beds_bed_side_bottom_green.png
Executable file
After Width: | Height: | Size: 427 B |
BIN
nalc_beds/textures/beds_bed_side_bottom_r_black.png
Executable file
After Width: | Height: | Size: 343 B |
BIN
nalc_beds/textures/beds_bed_side_bottom_r_blue.png
Executable file
After Width: | Height: | Size: 456 B |
BIN
nalc_beds/textures/beds_bed_side_bottom_r_green.png
Executable file
After Width: | Height: | Size: 422 B |
BIN
nalc_beds/textures/beds_bed_side_bottom_r_white.png
Executable file
After Width: | Height: | Size: 434 B |
BIN
nalc_beds/textures/beds_bed_side_bottom_white.png
Executable file
After Width: | Height: | Size: 439 B |
BIN
nalc_beds/textures/beds_bed_side_top_r_black.png
Executable file
After Width: | Height: | Size: 429 B |
BIN
nalc_beds/textures/beds_bed_side_top_r_blue.png
Executable file
After Width: | Height: | Size: 478 B |
BIN
nalc_beds/textures/beds_bed_side_top_r_green.png
Executable file
After Width: | Height: | Size: 463 B |
BIN
nalc_beds/textures/beds_bed_side_top_r_white.png
Executable file
After Width: | Height: | Size: 460 B |
BIN
nalc_beds/textures/beds_bed_top1_black.png
Executable file
After Width: | Height: | Size: 241 B |
BIN
nalc_beds/textures/beds_bed_top1_blue.png
Executable file
After Width: | Height: | Size: 494 B |
BIN
nalc_beds/textures/beds_bed_top1_green.png
Executable file
After Width: | Height: | Size: 448 B |
BIN
nalc_beds/textures/beds_bed_top1_white.png
Executable file
After Width: | Height: | Size: 478 B |
BIN
nalc_beds/textures/beds_bed_top2_black.png
Executable file
After Width: | Height: | Size: 465 B |
BIN
nalc_beds/textures/beds_bed_top2_blue.png
Executable file
After Width: | Height: | Size: 609 B |
BIN
nalc_beds/textures/beds_bed_top2_green.png
Executable file
After Width: | Height: | Size: 586 B |
BIN
nalc_beds/textures/beds_bed_top2_white.png
Executable file
After Width: | Height: | Size: 573 B |
BIN
nalc_beds/textures/beds_bed_top_bottom_black.png
Executable file
After Width: | Height: | Size: 126 B |
BIN
nalc_beds/textures/beds_bed_top_bottom_blue.png
Executable file
After Width: | Height: | Size: 434 B |
BIN
nalc_beds/textures/beds_bed_top_bottom_green.png
Executable file
After Width: | Height: | Size: 343 B |
BIN
nalc_beds/textures/beds_bed_top_bottom_white.png
Executable file
After Width: | Height: | Size: 339 B |
BIN
nalc_beds/textures/beds_bed_top_top_black.png
Executable file
After Width: | Height: | Size: 376 B |
BIN
nalc_beds/textures/beds_bed_top_top_blue.png
Executable file
After Width: | Height: | Size: 568 B |
BIN
nalc_beds/textures/beds_bed_top_top_green.png
Executable file
After Width: | Height: | Size: 525 B |
BIN
nalc_beds/textures/beds_bed_top_top_white.png
Executable file
After Width: | Height: | Size: 480 B |
BIN
nalc_beds/textures/beds_bed_white.png
Executable file
After Width: | Height: | Size: 525 B |