Created
October 1, 2012 14:54
-
-
Save PilzAdam/3812270 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
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