diff --git a/sand_monster.lua b/sand_monster.lua index 5194c17..e3ae0f2 100644 --- a/sand_monster.lua +++ b/sand_monster.lua @@ -78,6 +78,14 @@ mobs:register_mob("mobs_monster:sand_monster", { punch_start = 74, punch_end = 105, }, + immune_to = { + {"default:shovel_wood", 3}, -- shovels deal more damage to sand monster + {"default:shovel_stone", 3}, + {"default:shovel_bronze", 4}, + {"default:shovel_steel", 4}, + {"default:shovel_mese", 5}, + {"default:shovel_diamond", 7}, + }, --[[ custom_attack = function(self, p) local pos = self.object:get_pos() diff --git a/stone_monster.lua b/stone_monster.lua index 43fb97f..876b6f7 100644 --- a/stone_monster.lua +++ b/stone_monster.lua @@ -51,6 +51,14 @@ mobs:register_mob("mobs_monster:stone_monster", { punch_start = 40, punch_end = 63, }, + immune_to = { + {"default:pick_wood", 0}, -- wooden pick doesnt hurt stone monster + {"default:pick_stone", 4}, -- picks deal more damage to stone monster + {"default:pick_bronze", 5}, + {"default:pick_steel", 5}, + {"default:pick_mese", 6}, + {"default:pick_diamond", 7}, + }, }) diff --git a/tree_monster.lua b/tree_monster.lua index 92690f6..039bb72 100644 --- a/tree_monster.lua +++ b/tree_monster.lua @@ -41,11 +41,17 @@ mobs:register_mob("mobs_monster:tree_monster", { lava_damage = 0, light_damage = 2, fall_damage = 0, --- immune_to = { --- {"default:axe_diamond", 5}, --- {"default:sapling", -5}, -- saplings heal --- {"all", 0}, --- }, + immune_to = { + {"default:axe_wood", 0}, -- wooden axe doesnt hurt wooden monster + {"default:axe_stone", 4}, -- axes deal more damage to tree monster + {"default:axe_bronze", 5}, + {"default:axe_steel", 5}, + {"default:axe_mese", 7}, + {"default:axe_diamond", 9}, + {"default:sapling", -5}, -- default and jungle saplings heal + {"default:junglesapling", -5}, +-- {"all", 0}, -- only weapons on list deal damage + }, animation = { speed_normal = 15, speed_run = 15,