tweaked tool damage for sand, stone and tree monsters

This commit is contained in:
TenPlus1 2019-02-11 09:27:22 +00:00
parent eeb6a8e138
commit 86e5f4ed09
3 changed files with 27 additions and 5 deletions

View File

@ -78,6 +78,14 @@ mobs:register_mob("mobs_monster:sand_monster", {
punch_start = 74, punch_start = 74,
punch_end = 105, 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) custom_attack = function(self, p)
local pos = self.object:get_pos() local pos = self.object:get_pos()

View File

@ -51,6 +51,14 @@ mobs:register_mob("mobs_monster:stone_monster", {
punch_start = 40, punch_start = 40,
punch_end = 63, 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},
},
}) })

View File

@ -41,11 +41,17 @@ mobs:register_mob("mobs_monster:tree_monster", {
lava_damage = 0, lava_damage = 0,
light_damage = 2, light_damage = 2,
fall_damage = 0, fall_damage = 0,
-- immune_to = { immune_to = {
-- {"default:axe_diamond", 5}, {"default:axe_wood", 0}, -- wooden axe doesnt hurt wooden monster
-- {"default:sapling", -5}, -- saplings heal {"default:axe_stone", 4}, -- axes deal more damage to tree monster
-- {"all", 0}, {"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 = { animation = {
speed_normal = 15, speed_normal = 15,
speed_run = 15, speed_run = 15,