forked from Andrey2470T/luxury_decor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmusic.lua
91 lines (87 loc) · 3.03 KB
/
music.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
luxury_decor.register_piano({
type = "grandpiano",
mesh = "grand_piano_new.b3d",
textures = {"luxury_decor_grand_piano.png"},
inventory_image = "luxury_decor_grand_piano_inv.png",
collision_box = {
{-1.4, -0.5, -1.4, 1.4, 0.4, 1.0},
{-1.4, -0.5, 1.0, 1.4, 0.08, 1.4}
--[[{-0.65, -0.3, -1.46, 0.65, 1.4, -1.66},
{-0.65, -0.3, 0.46, 0.65, 1.4, 0.66}]]
},
sounds = default.node_sound_wood_defaults(),
keys_row_start_p = {x=-1.3, y=0.08, z=-1.1},
keys_row_end_p = {x=1.3, y=0.08, z=-1.1},
key_w = 0.3
})
--[[minetest.register_node("luxury_decor:grand_piano", {
description = "Grand Piano",
visual_scale = 0.5,
mesh = "grand_piano_new.b3d",
inventory_image = "luxury_decor_grand_piano_inv.png",
tiles = {"luxury_decor_grand_piano.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {choppy = 3},
drawtype = "mesh",
collision_box = {
type = "fixed",
fixed = {
{-1.4, -0.5, -1.4, 1.4, 0.4, 1.0},
{-1.4, -0.5, 1.0, 1.4, 0.08, 1.4}
{-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 = {
{-1.4, -0.5, -1.4, 1.4, 0.4, 1.0},
{-1.4, -0.5, 1.0, 1.4, 0.08, 1.4}
}
},
sounds = default.node_sound_wood_defaults(),
on_rightclick = function (pos, node, clicker, itemstack, pointed_thing)
minetest.remove_node(pos)
minetest.set_node(pos, {name="luxury_decor:grand_piano_opened", param1=node.param1, param2=node.param2})
end
})
minetest.register_node("luxury_decor:grand_piano_opened", {
description = "Grand Piano",
visual_scale = 0.5,
mesh = "grand_piano_opened.new",
inventory_image = "luxury_decor_grand_piano_opened_inv.png",
tiles = {"luxury_decor_grand_piano.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {choppy = 3, not_in_creative_inventory=1},
drop = "luxury_decor:grand_piano",
drawtype = "mesh",
collision_box = {
type = "fixed",
fixed = {
{-1.4, -0.5, -1.4, 1.4, 0.4, 1.4},
{-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 = {
{-1.4, -0.5, -1.4, 1.4, 0.4, 1.4}
}
},
sounds = default.node_sound_wood_defaults(),
on_rightclick = function (pos, node, clicker, itemstack, pointed_thing)
minetest.remove_node(pos)
minetest.set_node(pos, {name="luxury_decor:grand_piano", param1=node.param1, param2=node.param2})
end
}) ]]
minetest.register_craft({
output = "luxury_decor:grand_piano",
recipe = {
{"luxury_decor:plastic_sheet", "luxury_decor:brass_stick", "dye:black"},
{"luxury_decor:plastic_sheet", "luxury_decor:plastic_sheet", "dye:black"},
{"luxury_decor:plastic_sheet", "luxury_decor:wolfram_ingot", "default:steel_ingot"}
}
})