summaryrefslogtreecommitdiff
path: root/bunny.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 /bunny.lua
parent5bf846df5dcaab64ec55f20de806d4d9ebc3f610 (diff)
added raw/cooked mutton and rabbit, also rabbit hide, changed jump height for cow, sheep, chicken, warthog
Diffstat (limited to 'bunny.lua')
-rw-r--r--bunny.lua41
1 files changed, 40 insertions, 1 deletions
diff --git a/bunny.lua b/bunny.lua
index 8eae125..ce5aaff 100644
--- a/bunny.lua
+++ b/bunny.lua
@@ -27,8 +27,10 @@ stepheight = 0.6,
run_velocity = 2,
runaway = true,
jump = true,
+ jump_height = 6,
drops = {
- {name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
+ {name = "mobs:rabbit_raw", chance = 1, min = 1, max = 1},
+ {name = "mobs:rabbit_hide", chance = 1, min = 1, max = 1},
},
water_damage = 1,
lava_damage = 4,
@@ -123,3 +125,40 @@ mobs:register_egg("mobs_animal:bunny", S("Bunny"), "mobs_bunny_inv.png", 0)
mobs:alias_mob("mobs:bunny", "mobs_animal:bunny") -- compatibility
+
+
+-- raw rabbit
+minetest.register_craftitem(":mobs:rabbit_raw", {
+ description = S("Raw Rabbit"),
+ inventory_image = "mobs_rabbit_raw.png",
+ on_use = minetest.item_eat(3),
+})
+
+-- cooked rabbit
+minetest.register_craftitem(":mobs:rabbit_cooked", {
+ description = S("Cooked Rabbit"),
+ inventory_image = "mobs_rabbit_cooked.png",
+ on_use = minetest.item_eat(5),
+})
+
+minetest.register_craft({
+ type = "cooking",
+ output = "mobs:rabbit_cooked",
+ recipe = "mobs:rabbit_raw",
+ cooktime = 5,
+})
+
+-- rabbit hide
+minetest.register_craftitem(":mobs:rabbit_hide", {
+ description = S("Rabbit Hide"),
+ inventory_image = "mobs_rabbit_hide.png",
+})
+
+minetest.register_craft({
+ output = "mobs:leather",
+ type = "shapeless",
+ recipe = {
+ "mobs:rabbit_hide", "mobs:rabbit_hide",
+ "mobs:rabbit_hide", "mobs:rabbit_hide"
+ }
+})