RubixDev / Inventorio

Inventorio - an inventory enhancement mod for Minecraft (Fabric / (Neo)Forge)
https://modrinth.com/mod/inventorio
57 stars 22 forks source link

Minecraft 1.20.4 and NeoForge #309

Closed RubixDev closed 7 months ago

RubixDev commented 7 months ago

This PR ports the mod to Minecraft 1.20.4 and replaces the forge subproject with a neoforge subproject.

On the Fabric side the port was very simple. The 1.20.2 version already worked except for the removal of AbstractGlassBlock which was used in a test for using silk touch tools. That check was now replaced with a test whether the block is a StainedGlassBlock or the normal glass block.

The NeoForge update required a bit more work, mainly due to these two large refactors in NeoForge: https://github.com/neoforged/NeoForge/pull/277 (Network refactoring) and https://github.com/neoforged/NeoForge/pull/257 (Registry rework).

This is still pretty much my first ever experience with working with (Neo)Forge and Architectury, so I can't guarantee that I haven't made any stupid beginner mistakes.

Lizard-Of-Oz commented 7 months ago

I'll get to it tomorrow, and will then upload to CurseForge, and, hopefully, Modrinth too.

offbeat-stuff commented 7 months ago

Oh nice, cant wait to test this.

Ill try and test this now

offbeat-stuff commented 7 months ago

hmm cant seem to build this, can you tell how to build it?

offbeat-stuff commented 7 months ago

ok got it the build is in subfolders fabric/ forge/

Lizard-Of-Oz commented 7 months ago
plugins {
-    id "architectury-plugin" version "3.4.143"
-    id "dev.architectury.loom" version "0.12.0.301" apply false
+    id "architectury-plugin" version "3.4-SNAPSHOT"
+    id "dev.architectury.loom" version "1.5-SNAPSHOT" apply false

I remember deliberately moving from snapshots to specific versions to avoid an issue, but I no longer remember what that issue was. Something related to the building process. I guess, keep the change but put a pin on it.

Lizard-Of-Oz commented 7 months ago

Uploaded to CurseForge. I hope to find time to upload to Modrinth in the following days.

RubixDev commented 7 months ago

Thanks!

Swapped Hands (the feature that makes binds the hotbar to your off-hand) doesn't work correctly on NeoForge. The player avatar thinks the hands have been swapped, but trying to place blocks or use items causes a desync and the world acts as if your hands are not switched.

I'll take a look later; forgot to test that feature.