mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-22 17:00:26 +01:00
added raw/cooked mutton and rabbit, also rabbit hide, changed jump height for cow, sheep, chicken, warthog
This commit is contained in:
parent
5bf846df5d
commit
6dbe2546f0
41
bunny.lua
41
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"
|
||||
}
|
||||
})
|
||||
|
1
cow.lua
1
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},
|
||||
|
@ -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
|
||||
|
24
sheep.lua
24
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,
|
||||
})
|
||||
|
BIN
textures/mobs_mutton_cooked.png
Normal file
BIN
textures/mobs_mutton_cooked.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 157 B |
BIN
textures/mobs_mutton_raw.png
Normal file
BIN
textures/mobs_mutton_raw.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 157 B |
BIN
textures/mobs_rabbit_cooked.png
Normal file
BIN
textures/mobs_rabbit_cooked.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 164 B |
BIN
textures/mobs_rabbit_hide.png
Normal file
BIN
textures/mobs_rabbit_hide.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
textures/mobs_rabbit_raw.png
Normal file
BIN
textures/mobs_rabbit_raw.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 164 B |
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user