Add configurable item ordering options
1.18 version of #156
Is there any plans to still add this feature to 1.18?
@moderngamer327 it has https://github.com/cpw/inventorysorter/pull/156. But you'll need to build it yourself since the developer apparently is happy with his weird sorting preferences and is unwilling to merge these changes.
@ABruel I actually did try to build it but it wouldn’t work. Something called Jackson-Core has updated to Java 19 but if you build it with Java 19 it can’t be used in 1.18
@moderngamer327 sorry, your initial comment being here confused me. This PR is the 1.18 version. The one I linked previously is on master.
As for how to build, Jackson Core has become incompatible with older versions of gladle https://github.com/FasterXML/jackson-core/issues/955#issuecomment-1480411209. You just need to upgrade the gradle version by changing the value in gradle-wrapper.properties. You may also need to remove the changelog task as it appears the changelog.md file doesn't exist. Here are the required changes:
-
Change gradle version. file:
./gradle/wrapper/gradle-wrapper.properties -
Remove changelog generation from build steps. file:
./build.gradle
Then build it with ./gradlew build (use .\gradlew.bat build if you're on windows) from the root directory of the project and voilà, the jar will be inside build/libs. Remove the old version from your mods folder and place the new one in. Configure the ordering from the main menu and it should work.
Here's a download link if you can't be bothered. https://gofile.io/d/Z6rtgo
@moderngamer327 Remember to also checkout this pr with gh pr checkout 157. If you don't have gh, you can download it from https://cli.github.com/