farming.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ----------------------------------------------------------
  2. -- Bottle Gourd
  3. -------------------------------------------------
  4. farming.register_plant("earthbuild:bottlegourd", {
  5. description = "Bottle Gourd seed",
  6. paramtype2 = "meshoptions",
  7. inventory_image = "earthbuild_bottlegourd_seed.png",
  8. steps = 7,
  9. minlight = 13,
  10. maxlight = default.LIGHT_MAX,
  11. fertility = {"grassland", "rainforest"},
  12. groups = {flammable = 4},
  13. place_param2 = 3,
  14. })
  15. ----------------------
  16. --Gourd Crafts
  17. --Vessel
  18. minetest.register_node("earthbuild:bottlegourd_cup", {
  19. description = "Bottlegourd Cup (empty)",
  20. drawtype = "nodebox",
  21. tiles = { "earthbuild_bottlegourd_cup_top.png",
  22. "earthbuild_bottlegourd_bot.png",
  23. "earthbuild_bottlegourd_cup.png",
  24. "earthbuild_bottlegourd_cup.png",
  25. "earthbuild_bottlegourd_cup.png",
  26. "earthbuild_bottlegourd_cup.png",
  27. "earthbuild_bottlegourd_cup.png",
  28. "earthbuild_bottlegourd_cup.png",
  29. },
  30. inventory_image = "earthbuild_bottlegourd_cup.png",
  31. wield_image = "earthbuild_bottlegourd_cup.png",
  32. paramtype = "light",
  33. node_box = {
  34. type = "fixed",
  35. fixed = {
  36. {-0.25, -0.5, -0.25, 0.25, -0.0, 0.25},
  37. }
  38. },
  39. selection_box = {
  40. type = "fixed",
  41. fixed = {
  42. {-0.25, -0.5, -0.25, 0.25, -0.0, 0.25},
  43. }
  44. },
  45. groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
  46. sounds = default.node_sound_wood_defaults(),
  47. })
  48. minetest.register_craft({
  49. output = 'earthbuild:bottlegourd_cup',
  50. recipe = {
  51. {'earthbuild:bottlegourd'},
  52. }
  53. })
  54. minetest.register_craft({
  55. type = "fuel",
  56. recipe = "earthbuild:bottlegourd_cup",
  57. burntime = 1,
  58. })
  59. ------------
  60. --Collect wild seeds
  61. --a tropical species so...
  62. minetest.override_item("default:junglegrass", {drop = {
  63. max_items = 1,
  64. items = {
  65. {items = {'farming:seed_cotton'},rarity = 8},
  66. {items = {'earthbuild:seed_bottlegourd'},rarity = 8},
  67. {items = {'default:junglegrass'}},
  68. }
  69. }})