spawn_mob logging and pillager npc attack
This commit is contained in:
parent
3093462ee3
commit
186059ae13
|
@ -504,7 +504,8 @@ minetest.register_chatcommand("spawn_mob",{
|
|||
func = function(n,param)
|
||||
local pos = minetest.get_player_by_name(n):get_pos()
|
||||
if mcl_mobs.spawn(pos,param) then
|
||||
return true, param.." spawned at "..minetest.pos_to_string(pos)
|
||||
return true, param.." spawned at "..minetest.pos_to_string(pos),
|
||||
minetest.log("action", n.." spawned "..param.." at "..minetest.pos_to_string(pos))
|
||||
end
|
||||
return false, "Couldn't spawn "..param
|
||||
end
|
||||
|
|
|
@ -41,6 +41,7 @@ pillager = {
|
|||
fear_height = 4,
|
||||
arrow = "mcl_bows:arrow_entity",
|
||||
attack_type = "dogshoot", -- Alternate punching/shooting
|
||||
attack_npcs = true,
|
||||
reach = 0, -- Punching max distance
|
||||
damage = 0, -- Punching damage
|
||||
dogshoot_switch = 1, -- Start of shooting
|
||||
|
|
Loading…
Reference in New Issue