forked from VoxeLibre/VoxeLibre
Merge branch 'master' into mineclone5
This commit is contained in:
commit
cca03bcbd2
|
@ -59,7 +59,6 @@ local slime_big = {
|
||||||
description = S("Slime"),
|
description = S("Slime"),
|
||||||
type = "monster",
|
type = "monster",
|
||||||
spawn_class = "hostile",
|
spawn_class = "hostile",
|
||||||
pathfinding = 1,
|
|
||||||
group_attack = { "mobs_mc:slime_big", "mobs_mc:slime_small", "mobs_mc:slime_tiny" },
|
group_attack = { "mobs_mc:slime_big", "mobs_mc:slime_small", "mobs_mc:slime_tiny" },
|
||||||
hp_min = 16,
|
hp_min = 16,
|
||||||
hp_max = 16,
|
hp_max = 16,
|
||||||
|
@ -68,7 +67,7 @@ local slime_big = {
|
||||||
rotate = 270,
|
rotate = 270,
|
||||||
collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02},
|
collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02},
|
||||||
visual_size = {x=12.5, y=12.5},
|
visual_size = {x=12.5, y=12.5},
|
||||||
textures = {{"mobs_mc_slime.png"}},
|
textures = {{"mobs_mc_slime.png", "mobs_mc_slime.png"}},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_mc_slime.b3d",
|
mesh = "mobs_mc_slime.b3d",
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
|
@ -85,18 +84,15 @@ local slime_big = {
|
||||||
drops = {},
|
drops = {},
|
||||||
-- TODO: Fix animations
|
-- TODO: Fix animations
|
||||||
animation = {
|
animation = {
|
||||||
speed_normal = 24,
|
jump_speed = 17,
|
||||||
speed_run = 48,
|
stand_speed = 17,
|
||||||
stand_start = 0,
|
walk_speed = 17,
|
||||||
stand_end = 23,
|
jump_start = 1,
|
||||||
walk_start = 24,
|
jump_end = 20,
|
||||||
walk_end = 47,
|
stand_start = 1,
|
||||||
run_start = 48,
|
stand_end = 20,
|
||||||
run_end = 62,
|
walk_start = 1,
|
||||||
hurt_start = 64,
|
walk_end = 20,
|
||||||
hurt_end = 86,
|
|
||||||
death_start = 88,
|
|
||||||
death_end = 118,
|
|
||||||
},
|
},
|
||||||
fall_damage = 0,
|
fall_damage = 0,
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
|
@ -303,7 +299,7 @@ local magma_cube_big = {
|
||||||
xp_max = 4,
|
xp_max = 4,
|
||||||
collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02},
|
collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02},
|
||||||
visual_size = {x=12.5, y=12.5},
|
visual_size = {x=12.5, y=12.5},
|
||||||
textures = {{ "mobs_mc_magmacube.png" }},
|
textures = {{ "mobs_mc_magmacube.png", "mobs_mc_magmacube.png" }},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_mc_magmacube.b3d",
|
mesh = "mobs_mc_magmacube.b3d",
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
|
@ -327,18 +323,15 @@ local magma_cube_big = {
|
||||||
},
|
},
|
||||||
-- TODO: Fix animations
|
-- TODO: Fix animations
|
||||||
animation = {
|
animation = {
|
||||||
speed_normal = 24,
|
jump_speed = 20,
|
||||||
speed_run = 48,
|
stand_speed = 20,
|
||||||
stand_start = 0,
|
walk_speed = 20,
|
||||||
stand_end = 23,
|
jump_start = 1,
|
||||||
walk_start = 24,
|
jump_end = 40,
|
||||||
walk_end = 47,
|
stand_start = 1,
|
||||||
run_start = 48,
|
stand_end = 1,
|
||||||
run_end = 62,
|
walk_start = 1,
|
||||||
hurt_start = 64,
|
walk_end = 40,
|
||||||
hurt_end = 86,
|
|
||||||
death_start = 88,
|
|
||||||
death_end = 118,
|
|
||||||
},
|
},
|
||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 0,
|
lava_damage = 0,
|
||||||
|
|
|
@ -37,7 +37,6 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
|
||||||
wield_image = "jeija_wall_lever.png",
|
wield_image = "jeija_wall_lever.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
drawtype = "mesh",
|
|
||||||
mesh = "jeija_wall_lever_off.obj",
|
mesh = "jeija_wall_lever_off.obj",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
|
|
@ -168,11 +168,11 @@ minetest.register_globalstep(function(dtime)
|
||||||
and (fly_node == "air" or fly_node == "ignore")
|
and (fly_node == "air" or fly_node == "ignore")
|
||||||
|
|
||||||
if elytra.active then
|
if elytra.active then
|
||||||
if player_velocity.x < (player_velocity_old.x - 10) or player_velocity.x > (player_velocity_old.x + 10) then
|
if player_velocity.x < (player_velocity_old.x - 10) or player_velocity.x > (player_velocity_old.x + 10) and fly_node ~= "ignore" then
|
||||||
player:set_hp(player:get_hp() - (math.abs(player_velocity_old.x) * 0.2))
|
mcl_util.deal_damage(player, math.abs(player_velocity_old.x) * 0.2, {type = "fly_into_wall"})
|
||||||
end
|
end
|
||||||
if player_velocity.z < (player_velocity_old.z - 10) or player_velocity.z > (player_velocity_old.z + 10) then
|
if player_velocity.z < (player_velocity_old.z - 10) or player_velocity.z > (player_velocity_old.z + 10) and fly_node ~= "ignore" then
|
||||||
player:set_hp(player:get_hp() - (math.abs(player_velocity_old.z) * 0.2))
|
mcl_util.deal_damage(player, math.abs(player_velocity_old.z) * 0.2, {type = "fly_into_wall"})
|
||||||
end
|
end
|
||||||
mcl_player.player_set_animation(player, "fly")
|
mcl_player.player_set_animation(player, "fly")
|
||||||
if player_velocity.y < -1.5 then
|
if player_velocity.y < -1.5 then
|
||||||
|
|
Loading…
Reference in New Issue