this is one of the best mods of monsters, it has soo much fuctions that i never thinked could exist on luanti, i like how the spider climbs and soo much all the other monsters, only the problem its that for some reason, monsters cant walk if they have grass or other plants, it acts like a solid block (its not a solid block)
Glad you like using the monsters :) and I did a test with fields of normal and tall grass and each monster wandered around and attacked as I got too close, so things seem to be working fine... Could you tell me the [game] you were using with mobs_redo and mobs_monster ?
im using a custom game that i cant publish here because of the copyright, i use it for a server but i play with some mobs of the monsters when i just want play a little lol there is the code of one that cant walk on grass, i tested too with my monsters and some monsters can walk and others not like this one
-- EVENT: Upon being hit, gets angry and alerts all nearby pigmen
do_punch = function(self, hitter, time_from_last_punch, tool_capabilities, dir)
if hitter and hitter:is_player() then
-- 1. Make the hit target hostile
self.state = "attack"
self.attack = hitter
-- 2. Search within a 16-node radius
local pos = self.object:get_pos()
if not pos then return end
local objects = minetest.get_objects_inside_radius(pos, 16)
for _, obj in ipairs(objects) do
local luaobj = obj:get_luaentity()
-- If another zombie pigman is nearby...
if luaobj and luaobj.name == "sushi_mobs:pigman" then
-- Set it to attack mode against the player as well!
luaobj.state = "attack"
luaobj.attack = hitter
end
end
end
end,
Glad it works now, there is a 'group_attack=true' flag you can add to the mob definition that handles the group attack using the api instead of having to add a custom attack function btw :)
Could you amend the original review text to remove the issue plz :P
this is one of the best mods of monsters, it has soo much fuctions that i never thinked could exist on luanti, i like how the spider climbs and soo much all the other monsters, only the problem its that for some reason, monsters cant walk if they have grass or other plants, it acts like a solid block (its not a solid block)
Glad you like using the monsters :) and I did a test with fields of normal and tall grass and each monster wandered around and attacked as I got too close, so things seem to be working fine... Could you tell me the [game] you were using with mobs_redo and mobs_monster ?
im using a custom game that i cant publish here because of the copyright, i use it for a server but i play with some mobs of the monsters when i just want play a little lol there is the code of one that cant walk on grass, i tested too with my monsters and some monsters can walk and others not like this one
uh its too large the code wait a second XD
local S = minetest.get_translator("sushi_mobs")
--################### -- ZOMBIE PIGMAN (Neutral with True Pack Revenge) --###################
mobs:register_mob("sushi_mobs:pigman", { type = "animal", passive = false, pathfinding = true, attack_players = false, group_attack = true,
-- EVENT: Upon being hit, gets angry and alerts all nearby pigmen do_punch = function(self, hitter, time_from_last_punch, tool_capabilities, dir) if hitter and hitter:is_player() then -- 1. Make the hit target hostile self.state = "attack" self.attack = hitter
})
mobs:register_egg("sushi_mobs:pigman", S("Zombie Pigman"), "default_gold_block.png", 1)
--################### -- PACK SPAWN RULES --###################
mobs:spawn({ name = "sushi_mobs:pigman", nodes = {"nether:rack"}, neighbors = {"air"}, min_light = 0, max_light = 24, -- Adjusted to actual engine light limit (0-15) chance = 250, min_num = 5, max_num = 10, min_height = -30000, max_height = -5000, -- Full lock down! Spawns only in the depths of the Nether })
i separated it in two parts
oh it got solved when i updated to the last version xD sorry
Glad it works now, there is a 'group_attack=true' flag you can add to the mob definition that handles the group attack using the api instead of having to add a custom attack function btw :)
Could you amend the original review text to remove the issue plz :P
ok thanks for the help!