if self.attack.dist > ((-self.collisionbox[1] + self.collisionbox[4]) / 2) + 1 thenTenPlus1 wrote:Monsters only need to be at arms length to attack player, different mobs have different attack distances...
TenPlus1 wrote:amadin: which monster is it, I'll check it out...
TenPlus1 wrote:When you attack their is knockback on the monsters so they are hit backwards which puts them out of attack range, but when they recover they will move towards you again ready to attack you... I see no problem in your videos...
TenPlus1 wrote:Mobs Api has been changed slightly, so any mod makers out there adding their own mobs be careful of the rotate value when setting it: 0=front (default), 90=side, 180=back, 270=side2...
amadin wrote:How to disable monsters but save animals? I want use nother monsters.
TenPlus1 wrote:Question: Should I change it so that mobs are removed when they are out of player range (except tamed animals and npc)? This would be a lot lighter on servers and only show mobs spawned in the local area...
Active area can be changed by adding setting active_object_send_range_blocks to minetest.conf file...
blert2112 wrote:Not sure. Let's say I set out of my house to find that I am under siege by a group of angry ninjas that spawned while I was plinking around inside. All I would have to do to get rid of them is run run run out of the area. Then I could come back right away and they would all be gone? Is that about correct as to what could happen? Seems a little cheat-y.
TenPlus1 wrote:To disable monsters in the default mod edit the init.lua file and comment each of the dofile lines containing a monster... e.g...
-- dofile(path.."/dirtmonster.lua")
Linuxdirk wrote:TenPlus1 wrote:To disable monsters in the default mod edit the init.lua file and comment each of the dofile lines containing a monster... e.g...
-- dofile(path.."/dirtmonster.lua")
Why not adding a minetest.conf value for disabling monsters?
TenPlus1 wrote:Question: Should I change it so that mobs are removed when they are out of player range (except tamed animals and npc)? This would be a lot lighter on servers and only show mobs spawned in the local area...
Active area can be changed by adding setting active_object_send_range_blocks to minetest.conf file...
TenPlus1 wrote:Question: Should I change it so that mobs are removed when they are out of player range (except tamed animals and npc)? This would be a lot lighter on servers and only show mobs spawned in the local area...
Active area can be changed by adding setting active_object_send_range_blocks to minetest.conf file...
Users browsing this forum: No registered users and 4 guests