Skip to content

Instantly share code, notes, and snippets.

@Ekdohibs
Created May 14, 2015 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ekdohibs/8a57197e070b1ff48e50 to your computer and use it in GitHub Desktop.
Save Ekdohibs/8a57197e070b1ff48e50 to your computer and use it in GitHub Desktop.
screwdriver.wallmounted = function(pos, node, user, mode, new_param2)
if mode ~= screwdriver.ROTATE_AXIS then return false end
minetest.set_node(pos, {name = node.name, param2 = (node.param2 + 1) % 6})
return true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment