Disallow partially or entirely some items to rotate with the screwdriver

This commit is contained in:
kilbith
2015-05-14 12:25:11 +02:00
parent 246a38832a
commit e374b83bc0
20 changed files with 43 additions and 3 deletions

View File

@ -472,6 +472,7 @@ local function reg_lamp(suffix, nxt, tilesuffix, light, color)
},
selection_box = slamp_cbox,
sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.rotate_simple,
on_punch = function(pos, node, puncher)
node.name = "homedecor:standing_lamp"..lampcolor.."_"..repl[suffix]
minetest.set_node(pos, node)