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.
source code seems to be sent when you download the mod (zip full of lua files etc). the mod is MIT license and if it really is all licensed correctly you could upload it to github straight after downloading it here, if MIT allows that
you shouldn't depend on dev versions to work! update only to 5.12.0, the latest release, and then to 5.13.0 when it comes out
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.
source code seems to be sent when you download the mod (zip full of lua files etc). the mod is MIT license and if it really is all licensed correctly you could upload it to github straight after downloading it here, if MIT allows that