retrofit-forge-0.3.0-beta.jar
Curse Maven Snippet
What's new
## 0.3.0-beta
1.7.10 and 1.20.1 mods now work together, as if they were made for the same version:
- **Energy**: legacy machines speak RF (CoFH: BuildCraft, Thermal Expansion, EnderIO...) and IC2's EU; 1.20.1 machines speak Forge Energy. Legacy machines offer Forge Energy to 1.20.1 cables and machines (RF 1:1, 1 EU = 4 FE), and 1.20.1 energy blocks are RF handlers to legacy machines and join IC2's energy net as a sink and a low-voltage source.
- **Items**: 1.20.1 items with no 1.7.10 form travel through legacy inventories, pipes, machines and recipes as themselves (carried by `retrofit:modern_item`, numbered in `retrofit/modern-items.txt`). The Ore Dictionary and 1.20.1 tags are joined both ways (`ingotCopper` <-> `#forge:ingots/copper`, `logWood` <-> `#minecraft:logs`...).
- **Fluids**: every legacy fluid is a 1.20.1 fluid (with its own look) and every 1.20.1 fluid a legacy one. Legacy tanks have Forge's fluid handler; 1.20.1 tanks are IFluidHandlers to legacy pipes and pumps.
- **Creatures**: legacy mobs see 1.20.1 creatures, items, and experience orbs (as their 1.7.10 classes: a zombie is an `EntityZombie`, a modded monster an `EntityMob`), target and hurt them, push them, set them on fire, give them potions; magnets and vacuum hoppers pick up 1.20.1 items. 1.20.1 AI treats legacy monsters as enemies (iron golems, guards), and Smite and Bane of Arthropods know undead and arthropod legacy mobs.
- **Blocks**: 1.20.1 mods' blocks are no longer plain stone to legacy code: quarries and miners get their real drops, hardness and light come from the block, and legacy ore generators replace modded stone.
- **Recipes**: legacy shaped and shapeless recipes (vanilla and Ore Dictionary ones) show in the recipe book, JEI, REI and EMI; crafting itself still goes through the legacy recipe list.
- **Creative tabs**: each mod's 1.7.10 creative tab is a 1.20.1 tab with the mod's own order, subtypes, and prebuilt items; legacy items in vanilla tabs go to the matching 1.20.1 tabs.
- **Enchantments**: mods' enchantments are 1.20.1 enchantments (tooltips, enchanting table, anvils, books), and enchantments on legacy gear convert both ways.
- **Achievements**: mods' achievements are advancements, a tab per achievement page.
- **Commands**: tab completion for legacy commands.
- **Off hand**: legacy items work in the off hand (except ones used over time, like bows).
- Mobs that 1.20.1 spawns (natural spawning, spawn eggs, /summon) get their 1.7.10 spawn setup (`onSpawnWithEgg`: equipment, variants, sizes); held items and armour of legacy mobs show on clients.
- GregTech 5 Unofficial joins the tested mods. Fixed for it, and any mod alike: threads mods start no longer keep a stopped server running (they are daemon threads, as 1.7.10's exit made them in effect); `Arrays.asList(...).toArray()` keeps its array type as on Java 8 (GregTech's import of IC2's recipes); a deadlock when world generation placed tile entities in chunks that already had them; block items with more than 16 subtypes (GregTech's machines) kept only the first 16; `WorldServer.getPlayerManager()` knew no players, so packets mods send to a chunk's watchers (GregTech's machine data) never left.
- Vanilla GUIs legacy code opens (furnace, dispenser, hopper, brewing stand, beacon, crafting table, enchanting table, anvil) work, and mods' chat messages through `Minecraft.ingameGUI`.
- **Full world height**: legacy ore generators also fill the overworld below y 0 (a second, shifted pass that only keeps ores, in stone and deepslate; `-Dretrofit.deepOres=false` turns it off). Legacy mobs pathfind, and legacy code sees loaded blocks below y 0, and mob spawners in 1.20.1 places are `TileEntityMobSpawner`s to legacy code.
- **Wood types for 1.20.1 mods**: each legacy wood (a log its mod crafts into planks) is also `<mod>:<wood>_planks` and `<mod>:<wood>_log`, named from its English name, so mods that add things for every wood type (Every Compat, Moonlight) find them. Those are names only: placing one places the legacy block. Ore Dictionary names whose blocks all belong become block tags too (`#forge:ores/copper`, `#minecraft:logs`).
- **Performance**: tile entities that never update (`canUpdate()` false, like GregTech's ore blocks) are no longer ticked, and legacy reads of the world are cheaper. In a heavy test pack (IC2, GregTech, BuildCraft, Thaumcraft, Witchery, with Mekanism and JEI), the server tick with 574 legacy machines placed went from 37 to 10 ms (8 ms without any legacy blocks), and from 43 to 16 ms with about 400 legacy creatures around as well.
- **Rendering**: blocks drawn by mods' renderers are lit like 1.20.1 blocks (their sides were dark); items with custom renderers and blocks with custom models are drawn in inventories and hands where 1.7.10 drew them (they were too big, misplaced or missing), including renderers that only handle some views (OreSpawn's Royal Guardian Sword and other big weapons in hand); tools and weapons are held like tools. Colours: items' render passes and colours (`getColorFromItemStack`: Thaumcraft's phials and wisps, spawn eggs, potions) and blocks' colours (`colorMultiplier`: leaves and grass in their biome's colour) were missing. Text of mods that reload their translations themselves (IC2's GUIs) is no longer raw keys.
- **Lines and block highlights**: lines legacy code draws (outlines, selection boxes, area previews) show, and `DrawBlockHighlightEvent` fires for the block the player looks at, so mods' own outlines replace the vanilla one.
- **Skies**: mods' dimensions with their own sky renderer (`WorldProvider.getSkyRenderer`) show that sky instead of the overworld's.
- **Leashes**: leads work on legacy creatures as in 1.7.10 (the creature follows, lets go beyond 10 blocks, drops the lead), and show on clients.
- Fixed: legacy render tick handlers (Thaumcraft's research popups) drew with the Tessellator that chunk building uses at the same time ("Already tesselating!"); one failing part of the legacy data pack no longer takes the rest (recipes, dimensions) with it.
- Fixed: potions legacy code throws (Witchery's coven witches) failed to convert or arrived as water; they arrive as the 1.20.1 splash potion of the same effect.
- **Villager trades**: mods' trade handlers (`VillagerRegistry`) give 1.20.1 villagers their trades, by the profession each grew out of; trades for mods' own professions go to wandering traders.
- **Player rendering events**: `RenderPlayerEvent` (Pre, Specials, Post) fires around the local player's model, so mods' capes, wings, goggles and transformations show, and cancelling or moving the player works.
- Mods' dimensions become 1.20.1 dimensions (`retrofit:legacy_dim_N`) generated by the mods' own chunk generators and populators, with their creature lists and their providers' fog and sky colours. Travel works through `travelToDimension` and the mods' Teleporters (Witchery's Spirit World, Torment and Mirror, Thaumcraft's Outer Lands, Mo' Creatures' Wyvern Lair).
- Players' legacy state (extended properties, Forge entity data, mod potions) survives dimension changes and logouts.
- Potion effects in both directions; mod potions' attribute modifiers (speed, health, damage) apply to the player. Flight that legacy code grants or takes away applies too.
- Riding: legacy mounts (brooms, horses, air sleds, dolphins) carry the player, steered with the player's movement keys; legacy creatures riding legacy creatures ride in 1.20.1 as well.
- Living events for players (attack, hurt, death, fall, jump, heal, break speed, `LivingUpdateEvent`); `EntityJoinWorldEvent` for legacy entities, and cancelling it works.
- Tooltips from `addInformation` and `ItemTooltipEvent`; `Minecraft.objectMouseOver`; `Minecraft.renderViewEntity` is the player outside world rendering.
- Block touches (`onEntityCollidedWithBlock`, `onEntityWalking`, `onFallenUpon`).
- Chunk loading: chunks forced by mods' `ForgeChunkManager` tickets stay loaded in 1.20.1.
- Vanilla chests, furnaces, hoppers, dispensers, droppers, brewing stands, and any block with an item handler are inventories to legacy code (BuildCraft pipes, IC2 machines), as the matching 1.7.10 tile entity classes.
- Fixed: legacy tile entities got `onChunkUnload` only as an invalidation (Ars Magica 2 power networks lost their nodes); `getEntityByID` on servers missed legacy entities (Thaumcraft's Traveling Trunk); mod blocks in legacy dimensions' generated terrain; container contents with more slots than the client's copy of a mod container.
- The mod sweeps, right-clicks, and rides creatures, uses every item, travels to each dimension, and checks host inventories.
This mod has no additional files