Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable_entity_radiation_damage seems to be ignored when using mobs_redo #329

Open
dontfwiththestream opened this issue Oct 21, 2023 · 5 comments
Labels
Bug Something isn't working Compatibility

Comments

@dontfwiththestream
Copy link

dontfwiththestream commented Oct 21, 2023

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

@OgelGames
Copy link
Contributor

OgelGames commented Oct 22, 2023

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

local ag = object.get_armor_groups and object:get_armor_groups()
if not ag then
return 0
end
if ag.immortal then
return 0
end

@dontfwiththestream
Copy link
Author

Ah, thank you. It was my misunderstanding then

@dontfwiththestream
Copy link
Author

in context that doesnt make sense, the sea turtles in mobs_water are set to 250, not immortal

@OgelGames
Copy link
Contributor

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

@BuckarooBanzay BuckarooBanzay added Bug Something isn't working Compatibility labels Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Compatibility
Projects
None yet
Development

No branches or pull requests

3 participants