sheep.lua.diff 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. 29,31c29,33
  2. < stepheight = 0.6,
  3. < type = "animal",
  4. < passive = true,
  5. ---
  6. > type = "monster",
  7. > passive = false,
  8. > attack_type = "dogfight",
  9. > pathfinding = true,
  10. > reach = 2,
  11. 51d52
  12. < jump_height = 6,
  13. 53c54
  14. < {name = "mobs:mutton_raw", chance = 1, min = 1, max = 2},
  15. ---
  16. > {name = "mobs:meat_raw", chance = 1, min = 1, max = 2},
  17. 67c68
  18. < follow = {"farming:wheat", "default:grass_5"},
  19. ---
  20. > follow = {"farming:wheat_harvested", "default:grass_5"},
  21. 98d98
  22. < local name = clicker:get_player_name()
  23. 105d104
  24. < or name ~= self.owner
  25. 113c112
  26. < self.object:get_pos(),
  27. ---
  28. > self.object:getpos(),
  29. 137a137,138
  30. > local name = clicker:get_player_name()
  31. >
  32. 152c153
  33. < local pos = self.object:get_pos()
  34. ---
  35. > local pos = self.object:getpos()
  36. 163c164
  37. < if not mobs.is_creative(clicker:get_player_name()) then
  38. ---
  39. > if not minetest.setting_getbool("creative_mode") then
  40. 184c185
  41. < mobs:register_egg("mobs_animal:sheep_"..col[1], S("@1 Sheep", col[2]), "wool_"..col[1]..".png", 1)
  42. ---
  43. > mobs:register_egg("mobs_animal:sheep_"..col[1], col[2] .. " " .. S("Sheep"), "wool_"..col[1]..".png", 1)
  44. 191a193,198
  45. > local spawn_on = "default:dirt_with_grass"
  46. >
  47. > if minetest.get_modpath("ethereal") then
  48. > spawn_on = "ethereal:green_dirt"
  49. > end
  50. >
  51. 194,195c201
  52. < nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
  53. < neighbors = {"group:grass"},
  54. ---
  55. > nodes = {spawn_on},
  56. 197c203
  57. < chance = 5000, -- 15000
  58. ---
  59. > chance = 15000,
  60. 199c205
  61. < max_height = 200,
  62. ---
  63. > max_height = 31000,
  64. 205,227d210
  65. <
  66. < -- raw mutton
  67. < minetest.register_craftitem(":mobs:mutton_raw", {
  68. < description = S("Raw Mutton"),
  69. < inventory_image = "mobs_mutton_raw.png",
  70. < on_use = minetest.item_eat(2),
  71. < groups = {food_meat_raw = 1, food_mutton_raw = 1, flammable = 2},
  72. < })
  73. <
  74. < -- cooked mutton
  75. < minetest.register_craftitem(":mobs:mutton_cooked", {
  76. < description = S("Cooked Mutton"),
  77. < inventory_image = "mobs_mutton_cooked.png",
  78. < on_use = minetest.item_eat(6),
  79. < groups = {food_meat = 1, food_mutton = 1, flammable = 2},
  80. < })
  81. <
  82. < minetest.register_craft({
  83. < type = "cooking",
  84. < output = "mobs:mutton_cooked",
  85. < recipe = "mobs:mutton_raw",
  86. < cooktime = 5,
  87. < })