Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created September 29, 2012 16:31
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 PilzAdam/3804532 to your computer and use it in GitHub Desktop.
Save PilzAdam/3804532 to your computer and use it in GitHub Desktop.
minetest.register_tool("harry:potter", {
-- normal stuff here
on_use = function(itemstack, user, pointed_thing)
minetest.env:set_node(pointed_thing.above, {name="default:water_source"})
end
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment