I have my own version of this mod in my mod Awards STL, and I've made a couple changes that you could make here too:
Mobs isnt actually required for the mob triggers, this works in vanilla minetest. You can just remove the check for if the mobs mod exists here. Mine says "if true".
I put a check in to make sure the reason isn't equal to nil first in the killed-by-mob check, and I also don't have the debug chat messages.
- turns out you can't "not X == nil", found out the hard way that it has to be "X ~= nil" instead.
you could make these changes to your mod and itll be a little nicer
I may also be adding new triggers myself to my mod. if I get really far and you don't want to rewrite them yourself, you can copy me over on the credit and copy any of my changes over, too. I can also just tell you the changes and you can make them yourself, as well.
I have my own version of this mod in my mod Awards STL, and I've made a couple changes that you could make here too:
Mobs isnt actually required for the mob triggers, this works in vanilla minetest. You can just remove the check for if the mobs mod exists here. Mine says "if true".
I put a check in to make sure the reason isn't equal to nil first in the killed-by-mob check, and I also don't have the debug chat messages. - turns out you can't "not X == nil", found out the hard way that it has to be "X ~= nil" instead.
you could make these changes to your mod and itll be a little nicer
I may also be adding new triggers myself to my mod. if I get really far and you don't want to rewrite them yourself, you can copy me over on the credit and copy any of my changes over, too. I can also just tell you the changes and you can make them yourself, as well.
Got you!