1
0
Fork 0

spawn_mob logging and pillager npc attack

This commit is contained in:
PrairieWind 2022-09-09 20:30:26 -06:00
parent 3093462ee3
commit 186059ae13
2 changed files with 3 additions and 1 deletions

View File

@ -504,7 +504,8 @@ minetest.register_chatcommand("spawn_mob",{
func = function(n,param) func = function(n,param)
local pos = minetest.get_player_by_name(n):get_pos() local pos = minetest.get_player_by_name(n):get_pos()
if mcl_mobs.spawn(pos,param) then 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 end
return false, "Couldn't spawn "..param return false, "Couldn't spawn "..param
end end

View File

@ -41,6 +41,7 @@ pillager = {
fear_height = 4, fear_height = 4,
arrow = "mcl_bows:arrow_entity", arrow = "mcl_bows:arrow_entity",
attack_type = "dogshoot", -- Alternate punching/shooting attack_type = "dogshoot", -- Alternate punching/shooting
attack_npcs = true,
reach = 0, -- Punching max distance reach = 0, -- Punching max distance
damage = 0, -- Punching damage damage = 0, -- Punching damage
dogshoot_switch = 1, -- Start of shooting dogshoot_switch = 1, -- Start of shooting