Created
May 14, 2015 15:51
-
-
Save Ekdohibs/8a57197e070b1ff48e50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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