Is there a way to dynamically reduce player damage to any mobs (maybe disable knockback)? Or also, dynamically increase the damage from any mobs? For example, for the weakness effect
If you get the mob's own self.object:get_luaentity() then you can change anything about the mob dynamically during gameplay by editing the self.* values like self.damage or self.health etc.
Is there a way to dynamically reduce player damage to any mobs (maybe disable knockback)? Or also, dynamically increase the damage from any mobs? For example, for the weakness effect
This setting may help you https://codeberg.org/tenplus1/mobs_redo/src/branch/master/api.txt#L832
How to change this dynamicly in runtime?
If you get the mob's own self.object:get_luaentity() then you can change anything about the mob dynamically during gameplay by editing the self.* values like self.damage or self.health etc.