Ostrich added, requires mobs_redo.

master
NathanSalapat 2016-08-24 08:19:25 -05:00
parent 61f8e1ff4b
commit 8287c79b17
8 changed files with 66 additions and 2 deletions

View File

@ -1,2 +1,3 @@
default
mymonths?
mobs?

BIN
extras/Ostrich.blend Normal file

Binary file not shown.

View File

@ -7,3 +7,7 @@ end
dofile(minetest.get_modpath('desert_life')..'/functions.lua')
dofile(minetest.get_modpath('desert_life')..'/prickly_pear.lua')
dofile(minetest.get_modpath('desert_life')..'/barrel_cacti.lua')
if minetest.get_modpath('mobs') then
dofile(minetest.get_modpath('desert_life')..'/ostrich.lua')
end

BIN
models/dl_ostrich.b3d Normal file

Binary file not shown.

58
ostrich.lua Normal file
View File

@ -0,0 +1,58 @@
local S = mobs.intllib
mobs:register_mob("desert_life:ostrich", {
type = "animal",
passive = false,
attack_type = "dogfight",
group_attack = true,
reach = 2,
damage = 2,
hp_min = 5,
hp_max = 10,
armor = 200,
collisionbox = {-0.4, -0.5, -0.4, 0.4, 0.75, 0.4},
visual = "mesh",
mesh = "dl_ostrich.b3d",
textures = {
{'dl_ostrich.png'},
},
visual_size = {x=9, y=9},
makes_footstep_sound = true,
sounds = {
random = "mobs_chicken",
},
walk_velocity = 1,
run_velocity = 3,
jump = true,
drops = {
{name = "mobs:chicken_raw", chance = 1, min = 2, max = 6},
},
water_damage = 1,
lava_damage = 5,
light_damage = 0,
fall_damage = 0,
fall_speed = -8,
fear_height = 5,
animation = {
speed_normal = 15,
speed_run = 30,
stand_start = 0,
stand_end = 60,
walk_start = 180,
walk_end = 229,
run_start = 180,
run_end = 229,
punch_start = 65,
punch_end = 90,
punch2_start = 95,
punch2_end = 125,
},
follow = {"farming:seed_wheat", "farming:seed_cotton"},
view_range = 5,
})
mobs:register_spawn("desert_life:ostrich",
{"default:dirt_with_grass", "ethereal:bamboo_dirt"}, 20, 10, 1500, 1, 31000, true)
mobs:register_egg("desert_life:ostrich", S("Ostrich"), "mobs_chicken_inv.png", 0)

View File

@ -57,7 +57,7 @@ for i in ipairs (prickly_pear_table) do
paramtype = 'light',
paramtype2 = 'facedir',
selection_box = col,
collision_box = col,
collision_box = col,
on_punch = function(pos, node, player, pointed_thing)
minetest.set_node(pos, {name = AD, param2 = node.param2})
player:get_inventory():add_item('main', 'desert_life:prickly_pear') --If inventory is full it should be dropped.
@ -110,7 +110,7 @@ minetest.register_node('desert_life:prickly_pear', {
drawtype = 'mesh',
mesh = 'dl_pp_1.obj',
tiles = {name='dl_prickly_pear.png'},
groups = {},
groups = {dig_immediate = 3},
paramtype = 'light',
paramtype2 = 'facedir',
selection_box = {

View File

@ -1 +1,2 @@
Deserts are pretty boring in default game, this mod attempts to remedy that by spicing them up with some extra flora and fauna.
If you have mobs_redo enabled you'll get a few additional desert animals.

BIN
textures/dl_ostrich.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB