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

@ -113,6 +113,7 @@ homedecor.register("kitchen_faucet", {
groups = {snappy=3},
selection_box = kf_cbox,
walkable = false,
on_rotate = screwdriver.disallow,
on_rightclick = function(pos, node, clicker)
local below = minetest.get_node_or_nil({x=pos.x, y=pos.y-1, z=pos.z})
if below and