Code: Select all
minetest.register_node("piano:piano", {
description = "Grand Piano",
inventory_image = "9.png",
wield_image = "9.png",
drawtype = "mesh",
mesh = "piano.obj",
paramtype = "facedir",
tiles = {""},
groups = {cracky=3, snappy=3},
is_ground_content = true,
sunlight_propagates = false,
use_texture_alpha = true,
},
}, -- This may be an Issue IDK not great at this mess
if minetest.get_node(pointed_thing.under).name == "piano:piano" then
minetest.sound_play("tas",
{pos=pointed_thing.under, max_hear_distance = 20,})
else
if minetest.get_node(pointed_thing.under).name == "moreblocks:circular_saw" then
minetest.sound_play("vam",
{pos=pointed_thing.under, max_hear_distance = 20,})
else
end
end
end
})