Merge pull request #7 from taikedz/falling
Add fall damage, add fear of heights. give hedgehog smaller jumps.
This commit is contained in:
commit
eefa5c2843
27
init.lua
27
init.lua
@ -36,6 +36,9 @@ mobs:register_mob("dmobs:panda", {
|
|||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 2,
|
lava_damage = 2,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
|
fall_damage = 1,
|
||||||
|
fall_speed = -10,
|
||||||
|
fear_height = 4,
|
||||||
replace_rate = 10,
|
replace_rate = 10,
|
||||||
replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "ethereal:bamboo"},
|
replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "ethereal:bamboo"},
|
||||||
replace_with = "air",
|
replace_with = "air",
|
||||||
@ -236,6 +239,9 @@ mobs:register_mob("dmobs:gnorm", {
|
|||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 2,
|
lava_damage = 2,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
|
fall_damage = 1,
|
||||||
|
fall_speed = -6,
|
||||||
|
fear_height = 4,
|
||||||
replace_rate = 10,
|
replace_rate = 10,
|
||||||
replace_what = {"default:apple", "default:stone", "default:stone_with_coal", "default:fence_wood"},
|
replace_what = {"default:apple", "default:stone", "default:stone_with_coal", "default:fence_wood"},
|
||||||
replace_with = "air",
|
replace_with = "air",
|
||||||
@ -297,6 +303,8 @@ mobs:register_mob("dmobs:fox", {
|
|||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 2,
|
lava_damage = 2,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
|
fall_damage = 1,
|
||||||
|
fear_height = 4,
|
||||||
replace_rate = 10,
|
replace_rate = 10,
|
||||||
replace_what = {"farming:wheat_5", "default:fence_wood", "default:grass_5", "default:dirt_with_grass"},
|
replace_what = {"farming:wheat_5", "default:fence_wood", "default:grass_5", "default:dirt_with_grass"},
|
||||||
replace_with = "air",
|
replace_with = "air",
|
||||||
@ -346,9 +354,13 @@ mobs:register_mob("dmobs:hedgehog", {
|
|||||||
walk_velocity = 0.5,
|
walk_velocity = 0.5,
|
||||||
run_velocity = 1,
|
run_velocity = 1,
|
||||||
jump = true,
|
jump = true,
|
||||||
|
jump_height = 0.6,
|
||||||
water_damage = 2,
|
water_damage = 2,
|
||||||
lava_damage = 2,
|
lava_damage = 2,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
|
fall_damage = 1,
|
||||||
|
fall_speed = -6,
|
||||||
|
fear_height = 4,
|
||||||
view_range = 14,
|
view_range = 14,
|
||||||
follow = {"farming:bread"},
|
follow = {"farming:bread"},
|
||||||
animation = {
|
animation = {
|
||||||
@ -449,6 +461,9 @@ mobs:register_mob("dmobs:elephant", {
|
|||||||
water_damage = 2,
|
water_damage = 2,
|
||||||
lava_damage = 2,
|
lava_damage = 2,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
|
fall_damage = 1,
|
||||||
|
fall_speed = -20, -- extra heavy!
|
||||||
|
fear_height = 2,
|
||||||
replace_rate = 10,
|
replace_rate = 10,
|
||||||
replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "ethereal:bamboo"},
|
replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "ethereal:bamboo"},
|
||||||
replace_with = "air",
|
replace_with = "air",
|
||||||
@ -573,6 +588,9 @@ mobs:register_mob("dmobs:orc", {
|
|||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 2,
|
lava_damage = 2,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
|
fall_damage = 1,
|
||||||
|
fall_speed = -13,
|
||||||
|
fear_height = 4,
|
||||||
view_range = 14,
|
view_range = 14,
|
||||||
animation = {
|
animation = {
|
||||||
speed_normal = 10,
|
speed_normal = 10,
|
||||||
@ -616,6 +634,9 @@ mobs:register_mob("dmobs:orc_redesign", {
|
|||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 2,
|
lava_damage = 2,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
|
fall_damage = 1,
|
||||||
|
fall_speed = -13,
|
||||||
|
fear_height = 4,
|
||||||
view_range = 14,
|
view_range = 14,
|
||||||
animation = {
|
animation = {
|
||||||
speed_normal = 12,
|
speed_normal = 12,
|
||||||
@ -669,6 +690,9 @@ mobs:register_mob("dmobs:ogre", {
|
|||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 2,
|
lava_damage = 2,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
|
fall_damage = 1,
|
||||||
|
fall_speed = -14,
|
||||||
|
fear_height = 4,
|
||||||
view_range = 14,
|
view_range = 14,
|
||||||
animation = {
|
animation = {
|
||||||
speed_normal = 10,
|
speed_normal = 10,
|
||||||
@ -722,6 +746,9 @@ mobs:register_mob("dmobs:badger", {
|
|||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 2,
|
lava_damage = 2,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
|
fall_damage = 1,
|
||||||
|
fall_speed = -8,
|
||||||
|
fear_height = 4,
|
||||||
follow = {"mobs:meat_raw"},
|
follow = {"mobs:meat_raw"},
|
||||||
view_range = 14,
|
view_range = 14,
|
||||||
animation = {
|
animation = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user