1
0
mirror of https://codeberg.org/tenplus1/mobs_monster.git synced 2025-07-10 04:10:19 +02:00

Merge branch 'master' into nalc-1.2

This commit is contained in:
2019-05-10 00:58:32 +02:00
6 changed files with 114 additions and 6 deletions

View File

@ -79,6 +79,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()
@ -91,6 +99,21 @@ mobs:register_mob("mobs_monster:sand_monster", {
pos.y = pos.y + 0.25
effect(pos, 30, "mobs_sand_particles.png", 0.1, 2, 3, 5)
end,
--[[
on_rightclick = function(self, clicker)
local tool = clicker:get_wielded_item()
local name = clicker:get_player_name()
if tool:get_name() == "default:sand" then
self.owner = name
self.type = "npc"
mobs:force_capture(self, clicker)
end
end,
]]
})