Topic category: Plugins and third-party tools
I am already a bit deep into making a mod with various features, using various plugins, and I was trying to add a system to detect mobs that should be categorized as arthropods but aren't. To do this, I used the Configuration Files plugin by NerdyPuzzle and added to my config file variables arthropod_list and arthropod_filter, which are then referred to when a specific projectile hits an entity and is supposed to deal AoE damage to nearby mobs that fit the criteria. After adding those two variables, trying to run the game or regenerate code gives me a compilation error message.
Does anyone have any ideas for how this could be fixed, or do I simply have to not include my arthropod detection system because it will inevitably make the mod non-functional?
Also I wanted to include the workspace file here so that anyone can see what exactly it is I'm dealing with, but I don't see an option to embed files. How can I share the file here? Do I need to upload it elsewhere and link it?
Couldn't you just use NBT tags?
@bobo Sorry, I wasn't really clear about what the arthropod detection is for. I want it to identify mobs from other mods as arthropods based on their registry names. For example, I have found that the "Mosquito Swarm" mob in Twilight Forest is not classified as an arthropod, but I want my custom damage type applied to it anyway. So I added its specific registry name to the config under the "arthropods_list" variable.
The "arthropods_filter" variable would take general terms such as "spider" to further catch other mobs that have words like that in their registry names, but aren't specifically mentioned under "arthropods_list"
This is purely a compatibility feature and I wanted people to be able to customize it to fit their own modpacks. Worst case scenario, I just won't have it customizable in the config file and the system will have to rely entirely on the parameters I set in the procedure.
I don't know if I can set NBTs for mobs from other mods, but even if I could, I don't see how it would help with the configurable aspect of the system.
Thanks for the response tho and please let me know if you have any ideas, given further context :)
@bo_bo Or rather I wasn't clear about the fact that my issue is not making the system work (I think, I haven't actually tested that it does work). My issue is making the system customizable by letting players/modpack makers edit the lists in a config file. That's what I'm trying to resolve. But if I can't, it's no biggie.
Also, sorry for spelling your username wrong the first time XD
I would recommend getting in touch with the plugin author and reporting the bug to the plugin author.