master
D00Med 2017-02-04 07:14:37 +10:00
parent 450a13dd52
commit 6160d7c9bd
5 changed files with 55 additions and 22 deletions

View File

@ -0,0 +1,53 @@
mobs:register_mob("mobs_m:smallbird", {
type = "animal",
passive = true,
reach = 1,
damage = 0,
attack_type = "dogfight",
hp_min = 10,
hp_max = 25,
armor = 130,
collisionbox = {-0.2, 0, -0.2, 0.2, 0.4, 0.2},
visual = "mesh",
mesh = "smallbird.b3d",
textures = {
{"mobs_bird1.png"},
},
makes_footstep_sound = false,
view_range = 10,
walk_velocity = 3,
run_velocity = 6,
runaway = true,
runaway_timer = 40,
jump = false,
jump_height = 0,
stepheight = 1.5,
fly = true,
fly_in = "air",
fall_damage = 0,
fall_speed = -2,
drops = {
{name = "mobs:meat_raw",
chance = 9, min = 1, max = 1},
},
water_damage = 0,
lava_damage = 1,
light_damage = 0,
animation = {
speed_normal = 20,
speed_run = 30,
stand_start = 45,
stand_end = 65,
walk_start = 20,
walk_end = 40,
run_start = 20,
run_end = 40,
fly_start = 45,
fly_end = 65,
},
})
mobs:register_spawn("mobs_m:smallbird", {"air",}, 20, 10, 50000, 2, 11000)
mobs:register_egg("mobs_m:smallbird", "Small Bird", "wool_cyan.png", 1)

View File

@ -3,4 +3,5 @@ local path = minetest.get_modpath("mobs_m")
dofile(path.."/aquatic.lua")
dofile(path.."/dinosaurs.lua")
dofile(path.."/land.lua")
dofile(path.."/land.lua")
dofile(path.."/flying.lua")

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 B

View File

@ -40,27 +40,6 @@ 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)"),