just remove that for now

master
CalebJ 2020-10-15 15:30:46 +00:00
parent 7b67d42776
commit 79b26fd8c1
1 changed files with 0 additions and 37 deletions

View File

@ -53,40 +53,3 @@ minetest.register_alias('shower_tray', '3dforniture:shower_tray')
minetest.register_alias('shower_head', '3dforniture:shower_head')
minetest.register_alias('table_lamp', '3dforniture:table_lamp_off')
minetest.register_alias('armchair', '3dforniture:armchair')
--function
local on_lamp_puncher = function (pos, node, puncher)
if node.name == "3dforniture:table_lamp_off" then
minetest.env:add_node(pos, {name="3dforniture:table_lamp_low"})
nodeupdate(pos)
elseif node.name == "3dforniture:table_lamp_low" then
minetest.env:add_node(pos, {name="3dforniture:table_lamp_med"})
nodeupdate(pos)
elseif node.name == "3dforniture:table_lamp_med" then
minetest.env:add_node(pos, {name="3dforniture:table_lamp_hi"})
nodeupdate(pos)
elseif node.name == "3dforniture:table_lamp_hi" then
minetest.env:add_node(pos, {name="3dforniture:table_lamp_max"})
nodeupdate(pos)
elseif node.name == "3dforniture:table_lamp_max" then
minetest.env:add_node(pos, {name="3dforniture:table_lamp_off"})
nodeupdate(pos)
end
end
local on_toilet_puncher = function (pos, node, puncher)
if node.name == '3dforniture:toilet' then
local dir = node["param2"]
minetest.env:add_node(pos, {name="3dforniture:toilet_open", paramtype2='none', param2=dir})
nodeupdate(pos)
elseif node.name == '3dforniture:toilet_open' then
local dir = node["param2"]
minetest.env:add_node(pos, {name="3dforniture:toilet", paramtype2='none', param2=dir})
nodeupdate(pos)
end
end
minetest.register_on_punchnode(on_lamp_puncher)
minetest.register_on_punchnode(on_toilet_puncher)