Simple Parts Pack for Flan's Mod

Simple Parts Pack for Flan's Mod

903k Downloads

Options to disable/modify mod items added to mobs

BeachSturmHub opened this issue ยท 2 comments

commented

Issue: Mobs Wearing Modded Armor/Adding config or option to remove modded armor from mobs.

Hello Flans, I decided to make a Github account for the first time to learn more on how to code. But more specifically, to address the regarding issue. Playing this mod is fun especially with the content packs. However, I hate the issue with mobs gaining Flans mod armor and replacing the vanilla items. It doesn't sit well when playing and I found it problematic. Sometimes mobs might even hold flans mod armor in their hand for reasons unknown and there is no orthodox way to change it without interfering with the .class or deleting the teams file in the content packs.

All I ask for, is a way to address this issue or fixing it outright. Either by adding more config options including the option of removing flans mod armor or items from mobs or patching it by necessary means.

Gratitude To Thee

-Beach

commented

I think the implementation would be very simple, it's a shame it weren't properly implemented when the feature was added
The armor spawn rate is defined there:

public static float armourSpawnRate = 0.25F;
with a hardcoded public static float armourSpawnRate = 0.25F;

It would just be needed to edit the public static void syncConfig() function in order to add a new getFloat for the armourSpawnRate Value

public static void syncConfig()

I don't have the toolchain installed, but if someone has already everything needed to compile and test an edit, I'd be okay with filling a pull request and letting someone else compile and test it!

commented

Yeah, this is pretty annoying as well. The only solution for me was to open each content pack's .jar with 7zip and delete the teams.txt file.
Really looking forward to seeing a config option for this in the future.