Rebirth of the Mobs

Rebirth of the Mobs

603k Downloads

Is it possible to select for modded projectiles as a damage source?

Opened this issue ยท 10 comments

commented

Betteranimalsplus 1.12.2 has a Tarantula mob. This mob can spit "hairs" projectiles without warning that do too much damage, and I'd like to disable these hairs.

betteranimalsplus:tarantulahair is the "entity" that comes up, but I've tried:

S:"Cancel Damage Sources" <
minecraft:player;;betteranimalsplus:tarantulahair
minecraft:player;;tarantulahair
>

     And it doesn't work. Any ideas?
commented

Have you checked the logs? Is something fails to log it will let you know there. Whats the double ;; about?

commented

image

Here's my config. Green arrows point to correcly working and formatted Cancel Damage Sources.

Log shows no errors with this format.

commented

Could you show me the log either way? It might just be the double ;; thats the issue. Optional values can be omitted entirely, not just left empty

commented
commented

Yes, I'm aware. Those lines still function correctly in-game. The only part not functioning correctly is the sounds, which the log is pointing out.

And they have nothing to do with the problem I'm asking about.

commented

image

commented

Have you used the debug item that tells you the name of the damage source? Are you sure the damage source is called "tarantulahair"? It doesn't check for the entity that dealt the damage but the name of the damage source.

From what I can tell from looking at the mods source code it uses the "thrown" damage source

commented

I was going to say that the debug stick isn't working for this projectile. I'll try thrown and see if that work.

commented

thrown worked like a charm!

It's unfortunate that the debug stick doesn't show this damage type for some reason, but thank you for your effort! I appreciate it.