-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathredecorating.lua
100 lines (95 loc) · 2.91 KB
/
redecorating.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
for _, material in ipairs({"", "jungle_", "pine_"}) do
minetest.register_node("luxury_decor:" .. material .. "laminate", {
description = "Floor tile (" .. material .. "laminate)",
tiles = {material .. "laminate.png"},
paramtype = "light",
groups = {snappy=2},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.45, 0.5}
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.45, 0.5}
}
},
sounds = default.node_sound_leaves_defaults()
})
minetest.register_craft({
type = "shapeless",
output = "luxury_decor:" .. material .. "laminate",
recipe = {"luxury_decor:" .. material .. "wooden_plank", "luxury_decor:" .. material .. "wooden_plank"}
})
end
minetest.register_node("luxury_decor:simple_flowerpot", {
description = "Simple Flowerpot",
visual_scale = 0.5,
mesh = "simple_flowerpot.b3d",
inventory_image = "simple_flowerpot_inv.png",
tiles = {"simple_flowerpot.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {choppy = 2},
drawtype = "mesh",
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
--[[{-0.65, -0.3, -1.46, 0.65, 1.4, -1.66},
{-0.65, -0.3, 0.46, 0.65, 1.4, 0.66}]]
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
}
},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("luxury_decor:luxury_flowerpot", {
description = "Luxury Flowerpot",
visual_scale = 0.5,
mesh = "luxury_flowerpot.b3d",
inventory_image = "luxury_flowerpot_inv.png",
tiles = {"luxury_flowerpot.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {choppy = 2},
drawtype = "mesh",
collision_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
--[[{-0.65, -0.3, -1.46, 0.65, 1.4, -1.66},
{-0.65, -0.3, 0.46, 0.65, 1.4, 0.66}]]
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
}
},
sounds = default.node_sound_wood_defaults()
})
minetest.register_craft({
output = "luxury_decor:simple_flowerpot",
recipe = {
{"default:clay_lump", "default:clay_lump", "dye:brown"},
{"default:clay_lump", "default:dirt", ""},
{"default:clay_lump", "", ""}
}
})
minetest.register_craft({
output = "luxury_decor:luxury_flowerpot",
recipe = {
{"default:clay_lump", "default:clay_lump", "dye:red"},
{"default:clay_lump", "default:dirt", "default:copper_ingot"},
{"default:clay_lump", "", ""}
}
})