zora changes
parent
7ed3892440
commit
6936e31261
Binary file not shown.
|
@ -28,7 +28,9 @@ mobs:register_mob("mobs_loz:stalchild", {
|
|||
visual_scale = {x=0.8, y=0.8},
|
||||
on_die = function(self)
|
||||
local pos = self.object:getpos()
|
||||
if math.random(1,5) == 2 then
|
||||
minetest.env:add_entity(pos, "hyruletools:heart_entity")
|
||||
end
|
||||
minetest.env:add_entity(pos, "experience:orb")
|
||||
end,
|
||||
do_custom = function(self)
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 4.0 KiB |
|
@ -10,7 +10,7 @@ mobs:register_mob("mobs_loz:zora", {
|
|||
hp_min = 10,
|
||||
hp_max = 25,
|
||||
armor = 80,
|
||||
collisionbox = {-0.4, -0.5, -0.4, 0.4, 0.5, 0.4},
|
||||
collisionbox = {-0.4, -0, -0.4, 0.4, 1, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "zora.b3d",
|
||||
textures = {
|
||||
|
@ -19,8 +19,10 @@ mobs:register_mob("mobs_loz:zora", {
|
|||
blood_texture = "icetools_shard.png",
|
||||
makes_footstep_sound = true,
|
||||
view_range = 5,
|
||||
walk_velocity = 1,
|
||||
run_velocity = 2,
|
||||
walk_velocity = 2,
|
||||
run_velocity = 6,
|
||||
runaway = true,
|
||||
runaway_timer = 40,
|
||||
jump = false,
|
||||
stepheight = 1.5,
|
||||
fly = true,
|
||||
|
@ -32,27 +34,32 @@ mobs:register_mob("mobs_loz:zora", {
|
|||
{name = "icetools:ice_shard",
|
||||
chance = 9, min = 1, max = 3},
|
||||
{name = "hyruletools:green_rupee",
|
||||
chance = 1, min = 1, max = 2},
|
||||
chance = 5, min = 1, max = 2},
|
||||
},
|
||||
on_die = function(self)
|
||||
local pos = self.object:getpos()
|
||||
if math.random(1,5) == 2 then
|
||||
minetest.env:add_entity(pos, "hyruletools:heart_entity")
|
||||
end
|
||||
minetest.env:add_entity(pos, "experience:orb")
|
||||
end,
|
||||
water_damage = 0,
|
||||
lava_damage = 1,
|
||||
light_damage = 0,
|
||||
animation = {
|
||||
speed_normal = 15,
|
||||
speed_run = 20,
|
||||
stand_start = 0,
|
||||
stand_end = 40,
|
||||
walk_start = 50,
|
||||
walk_end = 68,
|
||||
run_start = 50,
|
||||
run_end = 68,
|
||||
punch_start = 50,
|
||||
punch_end = 68,
|
||||
stand_start = 1,
|
||||
stand_end = 20,
|
||||
walk_start = 25,
|
||||
walk_end = 45,
|
||||
run_start = 25,
|
||||
run_end = 45,
|
||||
},
|
||||
do_custom = function(self)
|
||||
|
||||
if not self.child
|
||||
and math.random(1, 100) == 1 then
|
||||
and math.random(1, 200) == 1 then
|
||||
|
||||
local pos = self.object:getpos()
|
||||
|
||||
|
@ -61,14 +68,9 @@ mobs:register_mob("mobs_loz:zora", {
|
|||
end,
|
||||
})
|
||||
|
||||
mobs:register_spawn("mobs_loz:zora", {"default:water_source", "default:water_flowing"}, 20, 10, 15000, 2, 11000)
|
||||
mobs:register_spawn("mobs_loz:zora", {"default:water_source",}, 20, 10, 15000, 2, 11000)
|
||||
|
||||
mobs:register_egg("mobs_loz:zora", "zora", "default_ice.png", 1)
|
||||
|
||||
for _, player in ipairs(minetest.get_connected_players()) do
|
||||
local name = minetest.get_player_name()
|
||||
local pos = player:getpos()
|
||||
end
|
||||
mobs:register_egg("mobs_loz:zora", "Zora", "default_ice.png", 1)
|
||||
|
||||
playereffects.register_effect_type("potion_swim_lv1", "Fast Swim", nil, {"swim"},
|
||||
function(player)
|
||||
|
|
Loading…
Reference in New Issue