Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minetest.register_node("test:apple", {
- description = "Apple 2",
- drawtype = "plantlike",
- tiles = {"default_apple.png"},
- inventory_image = "default_apple.png",
- on_use = function(itemstack, user, pointed_thing)
- print ("--- you eated an apple!")
- user:set_hp(20)
- return minetest.do_item_eat(2, nil, itemstack, user, pointed_thing)
- end
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement