Skip to content

Port to Minecraft 26.1.2 (NeoForge)#5

Open
vanlueckn wants to merge 15 commits into
MrTroble:26.1.2-neoforgefrom
vanlueckn:26.1.2-neoforge
Open

Port to Minecraft 26.1.2 (NeoForge)#5
vanlueckn wants to merge 15 commits into
MrTroble:26.1.2-neoforgefrom
vanlueckn:26.1.2-neoforge

Conversation

@vanlueckn

@vanlueckn vanlueckn commented May 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Migrate from Forge to NeoForge 1.21.8, then bump to NeoForge 26.1 / Minecraft 26.1.2
  • Carries forward earlier 1.20.6 / 1.21.x ports and the multi linking tool fix
  • Includes merge commit syncing LICENSE and the eu.gircom.troblecodings package rename from upstream (rename already present in this branch — kept current contents)

Nico Froehlich and others added 15 commits October 6, 2022 18:57
multilinkingtool dont work
Replace Forge event bus retrieval (FMLJavaModLoadingContext) with
NeoForge's ModLoadingContext.getActiveContainer().getEventBus(), and
swap BuildCreativeModeTabContentsEvent to the net.neoforged package.
Replace the removed NeoForge convenience hurtAndBreak(int, LivingEntity,
EquipmentSlot) with the vanilla hurtAndBreak(int, ServerLevel, LivingEntity,
Consumer<Item>) signature in both Linkingtool and MultiLinkingTool. The
ServerLevel cast is safe because both call sites are guarded by an earlier
isClientSide return.
The branch was half-migrated and did not compile. Restore the
Item.Properties-accepting Linkingtool / MultiLinkingTool
constructors so callers route registrations through
DeferredRegister.Items#registerItem with auto-set ResourceKeys, swap
the removed NbtUtils.writeBlockPos / readBlockPos for IntArrayTag
helpers on Linkingtool, switch Player.displayClientMessage (gone in
26.1.2) back to sendSystemMessage, and call Level.isClientSide() as
the field is private.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants