nodes.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. local S = minetest.get_translator("default")
  2. -- cup of cocoa
  3. minetest.register_node("tf_recipes:cocoa_cup", {
  4. description = S("Cup of Cocoa"),
  5. drawtype = "torchlike",
  6. tiles = {"farming_coffee_cup.png"},
  7. inventory_image = "farming_coffee_cup.png",
  8. wield_image = "farming_coffee_cup.png",
  9. paramtype = "light",
  10. walkable = false,
  11. selection_box = {
  12. type = "fixed",
  13. fixed = {-0.25, -0.5, -0.25, 0.25, 0.25, 0.25}
  14. },
  15. groups = {vessel = 1, dig_immediate = 3, attached_node = 1, drink = 1},
  16. on_use = minetest.item_eat(2, "vessels:drinking_glass"),
  17. sounds = default.node_sound_glass_defaults()
  18. })
  19. minetest.register_node("tf_recipes:hot_lemon", {
  20. description = S("Hot lemon"),
  21. drawtype = "torchlike",
  22. tiles = {"tf_coffee_hot_lemon.png"},
  23. inventory_image = "tf_coffee_hot_lemon.png",
  24. wield_image = "tf_coffee_hot_lemon.png",
  25. paramtype = "light",
  26. walkable = false,
  27. selection_box = {
  28. type = "fixed",
  29. fixed = {-0.25, -0.5, -0.25, 0.25, 0.25, 0.25}
  30. },
  31. groups = {vessel = 1, dig_immediate = 3, attached_node = 1, drink = 1},
  32. on_use = minetest.item_eat(2, "vessels:drinking_glass"),
  33. sounds = default.node_sound_glass_defaults()
  34. })
  35. minetest.register_node("tf_recipes:cappuccino", {
  36. description = S("Cappuccino"),
  37. drawtype = "torchlike",
  38. tiles = {"tf_coffee_cappuccino.png"},
  39. inventory_image = "tf_coffee_cappuccino.png",
  40. wield_image = "tf_coffee_cappuccino.png",
  41. paramtype = "light",
  42. walkable = false,
  43. selection_box = {
  44. type = "fixed",
  45. fixed = {-0.25, -0.5, -0.25, 0.25, 0.25, 0.25}
  46. },
  47. groups = {vessel = 1, dig_immediate = 3, attached_node = 1, drink = 1},
  48. on_use = minetest.item_eat(3, "vessels:drinking_glass"),
  49. sounds = default.node_sound_glass_defaults()
  50. })