-
-
Save rubenwardy/9d5aa4cc87a45fd790bd546e62af2094 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
-- in definition of node A | |
on_punch = function(pos, node, puncher, pointed_thing) | |
minetest.set_node(pos, { name = "nodeBName", param2 = node.param2 }) | |
minetest.after(2, minetest.set_node, pos, { name = "nodeCName", param2 = node.param2 }) | |
end, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the code I have on nodeA, turning it into nodeB
This is for nodeB, which only works after player places, and not when the above code is called.