technic icon indicating copy to clipboard operation
technic copied to clipboard

enable_entity_radiation_damage seems to be ignored when using mobs_redo

Open dontfwiththestream opened this issue 1 year ago • 5 comments

I have a server with technic plus, mobs_redo, mobs_animals/mobs_water and i made a trap for mobs where they fall into a pit of 0.0% uranium blocks. I have not changed the defaults for this setting (enable_entity_radiation_damage), which is default to true. The entities are not being dealt damage whatsoever

dontfwiththestream avatar Oct 21 '23 21:10 dontfwiththestream

Mobs using mobs_redo have the immortal armor group by default, so they are immune to radiation damage: https://github.com/minetest-mirrors/mobs_redo/blob/ce47b81da56bba7618f1ab62ede0daaca1b88ced/api.lua#L3267-L3274 https://github.com/mt-mods/technic/blob/f5949f6bf40a0a945bf0c76fd9ba169e0bd0b2d0/technic/radiation.lua#L296-L302

OgelGames avatar Oct 22 '23 04:10 OgelGames

The armor = <number> only sets the value of the fleshy armor group, see the link to the code in my previous comment.

OgelGames avatar Oct 22 '23 11:10 OgelGames