mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-08-21 17:37:25 +02:00
Clean up legacy noteblock code
This commit is contained in:
parent
5fa77270d7
commit
1466c87e7a
@ -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.",
|
_doc_items_usagehelp = "Rightclick the note block to choose one of many possible notes to play.",
|
||||||
tiles = {"mesecons_noteblock.png"},
|
tiles = {"mesecons_noteblock.png"},
|
||||||
groups = {handy=1,axey=1, material_wood=1},
|
groups = {handy=1,axey=1, material_wood=1},
|
||||||
drawtype = "allfaces_optional",
|
|
||||||
visual_scale = 1.3,
|
|
||||||
paramtype="light",
|
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
after_place_node = function(pos)
|
place_param2 = 0,
|
||||||
minetest.add_node(pos, {name="mesecons_noteblock:noteblock", param2=0})
|
|
||||||
end,
|
|
||||||
on_rightclick = function (pos, node) -- change sound when punched
|
on_rightclick = function (pos, node) -- change sound when punched
|
||||||
node.param2 = (node.param2+1)%24
|
node.param2 = (node.param2+1)%24
|
||||||
mesecon.noteblock_play(pos, node.param2)
|
mesecon.noteblock_play(pos, node.param2)
|
||||||
|
Loading…
Reference in New Issue
Block a user