Guest User

Untitled

a guest
Jul 20th, 2018
95
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minetest.register_node("test:apple", {
  2. description = "Apple 2",
  3. drawtype = "plantlike",
  4. tiles = {"default_apple.png"},
  5. inventory_image = "default_apple.png",
  6. on_use = function(itemstack, user, pointed_thing)
  7. print ("--- you eated an apple!")
  8. user:set_hp(20)
  9. return minetest.do_item_eat(2, nil, itemstack, user, pointed_thing)
  10. end
  11. })
RAW Paste Data