zombie flesh

This commit is contained in:
Toby plowy 2017-02-03 03:26:04 +01:00
parent 653b536a14
commit 24d162caf0
5 changed files with 23 additions and 2 deletions

View File

@ -219,7 +219,7 @@ mobs:register_mob("mobs_m:zombie", {
textures = {
{"mobs_zombie.png"},
},
blood_texture = "mobs_blood.png",
blood_texture = "mobs_rotten_blood.png",
makes_footstep_sound = true,
walk_velocity = 1,
run_velocity = 1.5,
@ -230,7 +230,7 @@ mobs:register_mob("mobs_m:zombie", {
fall_damage = 1,
view_range = 5,
drops = {
{name = "mobs:meat_raw", chance = 2, min = 1, max = 2},
{name = "mobs:zombie_flesh_raw", chance = 2, min = 1, max = 2},
},
animation = {
speed_normal = 27,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -40,6 +40,27 @@ minetest.register_craft({
cooktime = 5,
})
-- raw zombie flesh
minetest.register_craftitem("mobs:zombie_flesh_raw", {
description = S("Raw Zombie Flesh"),
inventory_image = "mobs_zombie_flesh_raw.png",
on_use = minetest.item_eat(0),
})
-- cooked zombie flesh
minetest.register_craftitem("mobs:cooked_zombie_flesh", {
description = S("Cooked Zombie Flesh"),
inventory_image = "mobs_cooked_zombie_flesh.png",
on_use = minetest.item_eat(1),
})
minetest.register_craft({
type = "cooking",
output = "mobs:cooked_zombie_flesh",
recipe = "mobs:zombie_flesh_raw",
cooktime = 5,
})
-- magic lasso
minetest.register_tool("mobs:magic_lasso", {
description = S("Magic Lasso (right-click animal to put in inventory)"),

Binary file not shown.

After

Width:  |  Height:  |  Size: 512 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B