Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
on_use = function(itemstack, user, pointed_thing)
if pointed_thing and pointed_thing.above and minetest.env:get_node(pointed_thing.above).name == "air" then
minetest.sound_play("flint", {pos=pointed_thing.under})
minetest.env:add_node(pointed_thing.above, {name="fire:basic_flame"})
itemstack:add_wear(1000)
return itemstack
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment