summaryrefslogtreecommitdiff
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
parent5bf846df5dcaab64ec55f20de806d4d9ebc3f610 (diff)
added raw/cooked mutton and rabbit, also rabbit hide, changed jump height for cow, sheep, chicken, warthog
-rw-r--r--bunny.lua41
-rw-r--r--cow.lua1
-rw-r--r--readme.md6
-rw-r--r--sheep.lua24
-rw-r--r--textures/mobs_mutton_cooked.pngbin0 -> 157 bytes
-rw-r--r--textures/mobs_mutton_raw.pngbin0 -> 157 bytes
-rw-r--r--textures/mobs_rabbit_cooked.pngbin0 -> 164 bytes
-rw-r--r--textures/mobs_rabbit_hide.pngbin0 -> 2835 bytes
-rw-r--r--textures/mobs_rabbit_raw.pngbin0 -> 164 bytes
-rw-r--r--warthog.lua1
10 files changed, 68 insertions, 5 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"
+ }
+})
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 0000000..3189f67
--- /dev/null
+++ b/textures/mobs_mutton_cooked.png
Binary files differ
diff --git a/textures/mobs_mutton_raw.png b/textures/mobs_mutton_raw.png
new file mode 100644
index 0000000..622d84c
--- /dev/null
+++ b/textures/mobs_mutton_raw.png
Binary files differ
diff --git a/textures/mobs_rabbit_cooked.png b/textures/mobs_rabbit_cooked.png
new file mode 100644
index 0000000..310c904
--- /dev/null
+++ b/textures/mobs_rabbit_cooked.png
Binary files differ
diff --git a/textures/mobs_rabbit_hide.png b/textures/mobs_rabbit_hide.png
new file mode 100644
index 0000000..b45ad83
--- /dev/null
+++ b/textures/mobs_rabbit_hide.png
Binary files differ
diff --git a/textures/mobs_rabbit_raw.png b/textures/mobs_rabbit_raw.png
new file mode 100644
index 0000000..b5c3b7d
--- /dev/null
+++ b/textures/mobs_rabbit_raw.png
Binary files differ
diff --git a/warthog.lua b/warthog.lua
index 2f69a5b..3d8f635 100644
--- a/warthog.lua
+++ b/warthog.lua
@@ -30,6 +30,7 @@ stepheight = 0.6,
walk_velocity = 2,
run_velocity = 3,
jump = true,
+ jump_height = 6,
follow = {"default:apple", "farming:potato"},
view_range = 10,
drops = {