From 6dbe2546f03456e3e9d106c7236f50ecceead7f5 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 26 Jan 2018 14:29:15 +0000 Subject: [PATCH] added raw/cooked mutton and rabbit, also rabbit hide, changed jump height for cow, sheep, chicken, warthog --- bunny.lua | 41 +++++++++++++++++++++++++++++++- cow.lua | 1 + readme.md | 6 ++--- sheep.lua | 24 ++++++++++++++++++- textures/mobs_mutton_cooked.png | Bin 0 -> 157 bytes textures/mobs_mutton_raw.png | Bin 0 -> 157 bytes textures/mobs_rabbit_cooked.png | Bin 0 -> 164 bytes textures/mobs_rabbit_hide.png | Bin 0 -> 2835 bytes textures/mobs_rabbit_raw.png | Bin 0 -> 164 bytes warthog.lua | 1 + 10 files changed, 68 insertions(+), 5 deletions(-) create mode 100644 textures/mobs_mutton_cooked.png create mode 100644 textures/mobs_mutton_raw.png create mode 100644 textures/mobs_rabbit_cooked.png create mode 100644 textures/mobs_rabbit_hide.png create mode 100644 textures/mobs_rabbit_raw.png 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" + } +}) diff --git a/cow.lua b/cow.lua index 77d35d9..95176be 100644 --- a/cow.lua +++ b/cow.lua @@ -27,6 +27,7 @@ mobs:register_mob("mobs_animal:cow", { walk_velocity = 1, run_velocity = 2, jump = true, + jump_height = 6, drops = { {name = "mobs:meat_raw", chance = 1, min = 1, max = 3}, {name = "mobs:leather", chance = 1, min = 1, max = 2}, diff --git a/readme.md b/readme.md index bbbd344..e8f434e 100644 --- a/readme.md +++ b/readme.md @@ -5,7 +5,7 @@ Tends to buzz around flowers and gives honey when killed, you can also right-cli --- ### Bunny -Bunnies appear in green grass areas (prairie biome in ethereal) and can be tamed with 4 carrots or grass. Can also be picked up and placed in inventory and gives 1-2 meat when killed. +Bunnies appear in green grass areas (prairie biome in ethereal) and can be tamed with 4 carrots or grass. Can also be picked up and placed in inventory and gives 1 raw rabbit and 1 rabbit hide when killed. --- ### Chicken @@ -25,7 +25,7 @@ Typically found around stone they can be picked up and cooked for eating. --- ### Sheep -Green grass and wheat munchers that can be clipped using shears to give 1-3 wool. Feed sheep 8x wheat to regrow wool, tame and breed. Right-click a tamed sheep with dye to change it's colour. Will drop 1-3 meat when killed. +Green grass and wheat munchers that can be clipped using shears to give 1-3 wool. Feed sheep 8x wheat to regrow wool, tame and breed. Right-click a tamed sheep with dye to change it's colour. Will drop 1-3 raw mutton when killed. --- ### Warthog @@ -38,4 +38,4 @@ These little guys can be found in glacier biomes on top of snow and have the abi --- *Note: After breeding animals need to rest for 4 minutes, baby animals take 4 minutes to grow up and feeding them helps them grow quicker...* -#### Lucky Blocks: 14 \ No newline at end of file +#### Lucky Blocks: 14 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, +}) diff --git a/textures/mobs_mutton_cooked.png b/textures/mobs_mutton_cooked.png new file mode 100644 index 0000000000000000000000000000000000000000..3189f67f57d3b454cad90345094b2439cad8f3db GIT binary patch literal 157 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPHV5AX?bO)b&2R}{;((yI3|os$vL zsrEezD8*P3bf(2~`GeTk% zctn$h#ThrWY}}~KY{k6D^T<)bB(B8^7&b98+^J=6mo2o&1DeC&>FVdQ&MBb@0Q-w8 AHUIzs literal 0 HcmV?d00001 diff --git a/textures/mobs_mutton_raw.png b/textures/mobs_mutton_raw.png new file mode 100644 index 0000000000000000000000000000000000000000..622d84cb9fcb3cc00592a0fed220a0f2ddf761e6 GIT binary patch literal 157 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPHV5AX?bO)b$)7ZzM=qJ7uW=t)_& zn0y8!P>Qi6$S;_|;n|HeAjihj#W95AdUApTqYqa=TbH6#^GVjZ3zL)>1Pj^>W`x8j z@Q5Z0i!*L$*|<@e*@}6Q=aHj=NnDE;Fl=IGxKqpCE?a1k2Q-Jl)78&qol`;+0N}YQ A-2eap literal 0 HcmV?d00001 diff --git a/textures/mobs_rabbit_cooked.png b/textures/mobs_rabbit_cooked.png new file mode 100644 index 0000000000000000000000000000000000000000..310c904936089213462a4bbdb6d830ae2f6ae40f GIT binary patch literal 164 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!93?!50ihlx9JOMr-uBp1|W!5q)67(Oe?T&GK zI2kC;SQ6wH%;50sMjDXg=IP=X!f`!0!GUQFA5V|sCt-;jb=T|@C;a>WpL@cOudR)5 z?^Y{(to|>|wk_U)^VrnS(+v!k?DS1Y@JQ!LNHAc}G;NS#Waz#p`n>2_^9-Pg44$rj JF6*2UngD9IH?RNz literal 0 HcmV?d00001 diff --git a/textures/mobs_rabbit_hide.png b/textures/mobs_rabbit_hide.png new file mode 100644 index 0000000000000000000000000000000000000000..b45ad836d37036735005dfed6cf64bdada3685dc GIT binary patch literal 2835 zcmV+u3+(iXP)uJ@VVD_UC<6{NG_fI~0ue<-1QkJoA_k0xBC#Thg@9ne9*`iQ#9$Or zQF$}6R&?d%y_c8YA7_1QpS|}zXYYO1x&V;8{kgn!SPFnNo`4_X6{c}T{8k*B#$jdxfFg<9uYy1K45IaYvHg`_dOZM)Sy63ve6hvv z1)yUy0P^?0*fb9UASvow`@mQCp^4`uNg&9uGcn1|&Nk+9SjOUl{-OWr@Hh0;_l(8q z{wNRKos+;6rV8ldy0Owz(}jF`W(JeRp&R{qi2rfmU!TJ;gp(Kmm5I1s5m_f-n#TRsj}B0%?E`vOzxB2#P=n*a3EfYETOrKoe*ICqM@{4K9Go;5xVgZi5G4 z1dM~{UdP6d+Yd3o?MrAqM0Kc|iV92owdyL5UC#5<>aVCa44|hpM4E zs0sQWIt5*Tu0n&*J!lk~f_{hI!w5`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