Change all enemy attack info to more workable and understandable attacks

This commit is contained in:
jordan4ibanez 2021-04-18 21:02:03 -04:00
parent 719bb2a3c9
commit 1920ddf915
22 changed files with 23 additions and 22 deletions

View file

@ -63,7 +63,7 @@ mobs:register_mob("mobs_mc:blaze", {
fall_speed = -2.25, fall_speed = -2.25,
light_damage = 0, light_damage = 0,
view_range = 16, view_range = 16,
attack_type = "dogshoot", attack_type = "projectile",
arrow = "mobs_mc:blaze_fireball", arrow = "mobs_mc:blaze_fireball",
shoot_interval = 3.5, shoot_interval = 3.5,
shoot_offset = 1.0, shoot_offset = 1.0,

View file

@ -46,7 +46,7 @@ mobs:register_mob("mobs_mc:enderdragon", {
lava_damage = 0, lava_damage = 0,
fire_damage = 0, fire_damage = 0,
on_rightclick = nil, on_rightclick = nil,
attack_type = "dogshoot", attack_type = "projectile",
arrow = "mobs_mc:dragon_fireball", arrow = "mobs_mc:dragon_fireball",
shoot_interval = 0.5, shoot_interval = 0.5,
shoot_offset = -1.0, shoot_offset = -1.0,

View file

@ -14,6 +14,7 @@ mobs:register_mob("mobs_mc:endermite", {
xp_max = 3, xp_max = 3,
armor = {fleshy = 100, arthropod = 100}, armor = {fleshy = 100, arthropod = 100},
group_attack = true, group_attack = true,
attack_type = "punch",
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.29, 0.2}, collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.29, 0.2},
visual = "mesh", visual = "mesh",
mesh = "mobs_mc_endermite.b3d", mesh = "mobs_mc_endermite.b3d",

View file

@ -49,7 +49,7 @@ mobs:register_mob("mobs_mc:ghast", {
}, },
fall_damage = 0, fall_damage = 0,
view_range = 100, view_range = 100,
attack_type = "dogshoot", attack_type = "projectile",
arrow = "mobs_mc:fireball", arrow = "mobs_mc:fireball",
shoot_interval = 3.5, shoot_interval = 3.5,
shoot_offset = -5, shoot_offset = -5,

View file

@ -13,7 +13,7 @@ mobs:register_mob("mobs_mc:guardian", {
xp_max = 10, xp_max = 10,
breath_max = -1, breath_max = -1,
passive = false, passive = false,
attack_type = "dogfight", attack_type = "punch",
pathfinding = 1, pathfinding = 1,
view_range = 16, view_range = 16,
walk_velocity = 2, walk_velocity = 2,

View file

@ -15,7 +15,7 @@ mobs:register_mob("mobs_mc:guardian_elder", {
xp_max = 10, xp_max = 10,
breath_max = -1, breath_max = -1,
passive = false, passive = false,
attack_type = "dogfight", attack_type = "punch",
pathfinding = 1, pathfinding = 1,
view_range = 16, view_range = 16,
walk_velocity = 2, walk_velocity = 2,

View file

@ -30,7 +30,7 @@ mobs:register_mob("mobs_mc:polar_bear", {
walk_velocity = 1.2, walk_velocity = 1.2,
run_velocity = 2.4, run_velocity = 2.4,
group_attack = true, group_attack = true,
attack_type = "dogfight", attack_type = "punch",
drops = { drops = {
-- 3/4 chance to drop raw fish (poor approximation) -- 3/4 chance to drop raw fish (poor approximation)
{name = mobs_mc.items.fish_raw, {name = mobs_mc.items.fish_raw,

View file

@ -14,7 +14,7 @@ local S = minetest.get_translator("mobs_mc")
mobs:register_mob("mobs_mc:shulker", { mobs:register_mob("mobs_mc:shulker", {
type = "monster", type = "monster",
spawn_class = "hostile", spawn_class = "hostile",
attack_type = "shoot", attack_type = "projectile",
shoot_interval = 0.5, shoot_interval = 0.5,
arrow = "mobs_mc:shulkerbullet", arrow = "mobs_mc:shulkerbullet",
shoot_offset = 0.5, shoot_offset = 0.5,

View file

@ -43,7 +43,7 @@ mobs:register_mob("mobs_mc:silverfish", {
run_start = 0, run_end = 20, run_start = 0, run_end = 20,
}, },
view_range = 16, view_range = 16,
attack_type = "dogfight", attack_type = "punch",
damage = 1, damage = 1,
reach = 1, reach = 1,
}) })

View file

@ -84,7 +84,7 @@ local skeleton = {
ignited_by_sunlight = true, ignited_by_sunlight = true,
view_range = 16, view_range = 16,
fear_height = 4, fear_height = 4,
attack_type = "dogshoot", attack_type = "projectile",
arrow = "mcl_bows:arrow_entity", arrow = "mcl_bows:arrow_entity",
shoot_arrow = function(self, pos, dir) shoot_arrow = function(self, pos, dir)
if mod_bows then if mod_bows then

View file

@ -85,7 +85,7 @@ mobs:register_mob("mobs_mc:witherskeleton", {
fire_damage = 0, fire_damage = 0,
light_damage = 0, light_damage = 0,
view_range = 16, view_range = 16,
attack_type = "dogfight", attack_type = "punch",
dogshoot_switch = 1, dogshoot_switch = 1,
dogshoot_count_max =0.5, dogshoot_count_max =0.5,
fear_height = 4, fear_height = 4,

View file

@ -99,7 +99,7 @@ local slime_big = {
}, },
fall_damage = 0, fall_damage = 0,
view_range = 16, view_range = 16,
attack_type = "dogfight", attack_type = "jump_punch",
passive = false, passive = false,
jump_only = true, jump_only = true,
jump = true, jump = true,
@ -344,7 +344,7 @@ local magma_cube_big = {
light_damage = 0, light_damage = 0,
fall_damage = 0, fall_damage = 0,
view_range = 16, view_range = 16,
attack_type = "dogfight", attack_type = "jump_punch",
passive = false, passive = false,
jump_only = true, jump_only = true,
jump = true, jump = true,

View file

@ -17,7 +17,7 @@ local spider = {
spawn_class = "hostile", spawn_class = "hostile",
passive = false, passive = false,
docile_by_day = true, docile_by_day = true,
attack_type = "dogfight", attack_type = "punch",
pathfinding = 1, pathfinding = 1,
damage = 2, damage = 2,
reach = 2, reach = 2,

View file

@ -14,7 +14,7 @@ mobs:register_mob("mobs_mc:vex", {
spawn_class = "hostile", spawn_class = "hostile",
pathfinding = 1, pathfinding = 1,
passive = false, passive = false,
attack_type = "dogfight", attack_type = "punch",
physical = false, physical = false,
hp_min = 14, hp_min = 14,
hp_max = 14, hp_max = 14,

View file

@ -34,7 +34,7 @@ mobs:register_mob("mobs_mc:evoker", {
walk_velocity = 0.2, walk_velocity = 0.2,
run_velocity = 1.4, run_velocity = 1.4,
group_attack = true, group_attack = true,
attack_type = "dogfight", attack_type = "punch",
-- Summon vexes -- Summon vexes
custom_attack = function(self, to_attack) custom_attack = function(self, to_attack)
local r = pr:next(2,4) local r = pr:next(2,4)

View file

@ -9,7 +9,7 @@ local mod_bows = minetest.get_modpath("mcl_bows") ~= nil
mobs:register_mob("mobs_mc:illusioner", { mobs:register_mob("mobs_mc:illusioner", {
type = "monster", type = "monster",
spawn_class = "hostile", spawn_class = "hostile",
attack_type = "shoot", attack_type = "projectile",
shoot_interval = 2.5, shoot_interval = 2.5,
shoot_offset = 1.5, shoot_offset = 1.5,
arrow = "mcl_bows:arrow_entity", arrow = "mcl_bows:arrow_entity",

View file

@ -36,7 +36,7 @@ mobs:register_mob("mobs_mc:vindicator", {
reach = 2, reach = 2,
walk_velocity = 1.2, walk_velocity = 1.2,
run_velocity = 2.4, run_velocity = 2.4,
attack_type = "dogfight", attack_type = "punch",
drops = { drops = {
{name = mobs_mc.items.emerald, {name = mobs_mc.items.emerald,
chance = 1, chance = 1,

View file

@ -51,7 +51,7 @@ mobs:register_mob("mobs_mc:villager_zombie", {
reach = 2, reach = 2,
walk_velocity = 1.2, walk_velocity = 1.2,
run_velocity = 2.4, run_velocity = 2.4,
attack_type = "dogfight", attack_type = "punch",
group_attack = true, group_attack = true,
drops = { drops = {
{name = mobs_mc.items.rotten_flesh, {name = mobs_mc.items.rotten_flesh,

View file

@ -33,7 +33,7 @@ mobs:register_mob("mobs_mc:witch", {
run_velocity = 2.4, run_velocity = 2.4,
pathfinding = 1, pathfinding = 1,
group_attack = true, group_attack = true,
attack_type = "dogshoot", attack_type = "projectile",
arrow = "mobs_mc:potion_arrow", arrow = "mobs_mc:potion_arrow",
shoot_interval = 2.5, shoot_interval = 2.5,
shoot_offset = 1, shoot_offset = 1,

View file

@ -52,7 +52,7 @@ mobs:register_mob("mobs_mc:wither", {
}, },
lava_damage = 0, lava_damage = 0,
fire_damage = 0, fire_damage = 0,
attack_type = "dogshoot", attack_type = "projectile",
explosion_strength = 8, explosion_strength = 8,
dogshoot_stop = true, dogshoot_stop = true,
arrow = "mobs_mc:wither_skull", arrow = "mobs_mc:wither_skull",

View file

@ -88,7 +88,7 @@ local zombie = {
ignited_by_sunlight = true, ignited_by_sunlight = true,
sunlight_damage = 2, sunlight_damage = 2,
view_range = 16, view_range = 16,
attack_type = "dogfight", attack_type = "punch",
harmed_by_heal = true, harmed_by_heal = true,
} }

View file

@ -20,7 +20,7 @@ local pigman = {
xp_min = 6, xp_min = 6,
xp_max = 6, xp_max = 6,
armor = {undead = 90, fleshy = 90}, armor = {undead = 90, fleshy = 90},
attack_type = "dogfight", attack_type = "punch",
group_attack = { "mobs_mc:pigman", "mobs_mc:baby_pigman" }, group_attack = { "mobs_mc:pigman", "mobs_mc:baby_pigman" },
damage = 9, damage = 9,
reach = 2, reach = 2,