1
0
Fork 0

Clean up legacy noteblock code

objects
Wuzzy 2017-03-11 06:15:58 +01:00
parent 5fa77270d7
commit 1466c87e7a
1 changed files with 1 additions and 6 deletions

View File

@ -4,13 +4,8 @@ minetest.register_node("mesecons_noteblock:noteblock", {
_doc_items_usagehelp = "Rightclick the note block to choose one of many possible notes to play.",
tiles = {"mesecons_noteblock.png"},
groups = {handy=1,axey=1, material_wood=1},
drawtype = "allfaces_optional",
visual_scale = 1.3,
paramtype="light",
is_ground_content = false,
after_place_node = function(pos)
minetest.add_node(pos, {name="mesecons_noteblock:noteblock", param2=0})
end,
place_param2 = 0,
on_rightclick = function (pos, node) -- change sound when punched
node.param2 = (node.param2+1)%24
mesecon.noteblock_play(pos, node.param2)