[Fabric] 26.2-1.0.0
Curse Maven Snippet
What's new
New Features
- Added Forwarding Address. This library mod keeps existing worlds working when a mod renames, merges, moves, or removes a block or item. Placed blocks and held items change to their new form, and their contents stay.
- Mod authors declare a migration in code with
Migrations.block(old).to(new).register()orMigrations.item(...). Optional mappers handle renamed properties, different block entity types, hidden container slots, and item components. If the target mod is not installed, the mod skips the migration and logs it. - Modpack makers declare migrations in JSON files in
config/forwardingaddress/migrations/. The mod logs and skips a bad entry and keeps the rest. - Placed blocks convert when their chunk loads, a few at a time, so a chunk full of old blocks does not stall the game. The limit is
maxConversionsPerTick(default 256) inconfig/forwardingaddress/settings.json. If a block cannot be converted exactly, the mod leaves it alone, logs an error, and tries again at the next chunk load. - Items convert in player inventories and ender chests on login, and in placed containers, dropped items, and item frames when they load. Retired items show a tooltip with the item they will become and do not appear in the creative inventory.
- A migration that only renames a block or item also works after the old mod is removed. The mod renames the old ID in saved chunks, entities, and player data as they load.
- Stub blocks replace the blocks of a mod that a pack no longer includes. Declare a stub in JSON, and list its properties or name a vanilla block to copy them from. The mod registers a stub only if the old mod is not installed.
/forwardingaddress dump <namespace>(operators only) writes a starter file toconfig/forwardingaddress/dumps/that lists the blocks and properties of a mod. Fill it in before removing the mod.
This mod has no additional files