summaryrefslogtreecommitdiff
path: root/sheep.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-01-26 14:29:15 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-01-26 14:29:15 +0000
commit6dbe2546f03456e3e9d106c7236f50ecceead7f5 (patch)
tree40f0c2d54fe413bd80b091c7b3611022b3ec14b9 /sheep.lua
parent5bf846df5dcaab64ec55f20de806d4d9ebc3f610 (diff)
added raw/cooked mutton and rabbit, also rabbit hide, changed jump height for cow, sheep, chicken, warthog
Diffstat (limited to 'sheep.lua')
-rw-r--r--sheep.lua24
1 files changed, 23 insertions, 1 deletions
diff --git a/sheep.lua b/sheep.lua
index 27e48a2..e67325b 100644
--- a/sheep.lua
+++ b/sheep.lua
@@ -48,8 +48,9 @@ stepheight = 0.6,
run_velocity = 2,
runaway = true,
jump = true,
+ jump_height = 6,
drops = {
- {name = "mobs:meat_raw", chance = 1, min = 1, max = 2},
+ {name = "mobs:mutton_raw", chance = 1, min = 1, max = 2},
--{name = "wool:"..col[1], chance = 1, min = 1, max = 1},
},
water_damage = 1,
@@ -206,3 +207,24 @@ mobs:spawn({
mobs:alias_mob("mobs:sheep", "mobs_animal:sheep_white") -- compatibility
+
+-- raw mutton
+minetest.register_craftitem(":mobs:mutton_raw", {
+ description = S("Raw Mutton"),
+ inventory_image = "mobs_mutton_raw.png",
+ on_use = minetest.item_eat(2),
+})
+
+-- cooked mutton
+minetest.register_craftitem(":mobs:mutton_cooked", {
+ description = S("Cooked Mutton"),
+ inventory_image = "mobs_mutton_cooked.png",
+ on_use = minetest.item_eat(6),
+})
+
+minetest.register_craft({
+ type = "cooking",
+ output = "mobs:mutton_cooked",
+ recipe = "mobs:mutton_raw",
+ cooktime = 5,
+})