Galacticraft Slimeling eats wooden hoes
AdamkiX opened this issue ยท 5 comments
I've decompiled GC slimeling .class file and editted code in such way that it removes wooden hoe from feed item pool. Idk if it is allowed to post edited version of mod here, so I am just informing you about fix. Afterwards I can eventually post EntitySlimeling.class file where mentioned changes were made.
@AdamkiX: hello! ๐
This issue is being automatically closed because it does not follow the issue template.
I don't follow; what is the issue with slimelings? I don't recall one being posted previously.
It's unlikely we can use an edited mod, but it's possible to modify Java bytecode at runtime; the mod https://github.com/DarkPacks/SevPatches is our collection of fixes for other people's mods. You could make a PR there to incorporate your change or you could describe what you've changed in more detail and I'll write the patch.
SevTech disables wooden hoes and because of that you can't feed slimelings (when wooden hoe rolls from feed item pool). I found one report from years ago, but it was closed and never fixed:
#2066
About fix:
I've decompiled EntitySlimeling.class file with dirtyJOE program. Afterwards I edited method setRandomFavFood in such way that switch case is limited to 9 possible cases then switched wooden hoe (field_151017_I ) with boat (field_151124_az). I will post screenshot of commited changes so you could get some feedback.
Also I've tested random function in test world and it never rolled hoe (everything else was), so I assume that my fix works.
I've released a new version of SevPatches that will resolve this issue at runtime; if you add this to your modpack with an unpatched version of GC the slimelings will have prismarine shards added to their diet instead of wooden hoes.