promotional bannermobile promotional banner

RingoLib

Library and modpack toolkit: merge duplicate materials, filter recipes, preserve saves on mod changes, ban items, and profile server lag.

RingoLib merges duplicate items, blocks, and fluids across mods, strips unwanted recipes, and keeps missing-mod items from turning into air in existing saves.

Works with Create and Registrate-based addons (TFMG, Create Big Cannons, Create Deco), JEI, EMI, and Curios API.


What does this mod do?

Material deduplication and registry redirects

Drop two or three tech or magic mods into one modpack and you immediately end up with multiple incompatible versions of steel, lead, brass, or molten metals. RingoLib intercepts duplicate registrations at startup (including Registrate mods that otherwise crash with unregistered Intrusive Holder errors), wires up native NeoForge registry aliases so tags and recipes point to the item you kept, and clears redirected duplicates out of creative tabs.

Before

Replace this with a description

After

For the sake of illustration, I used various mods that add lead. Replace this with a description

Wildcard recipe filtering

Aliasing an item keeps old crafting recipes working, which often leaves duplicate 9 ingots -> 1 block recipes in JEI and EMI. RingoLib drops unwanted recipes inside RecipeManager before JSON parsing using exact IDs or * and ? wildcards. Edit disabled_recipes.json and run /reload, or disable recipes on the fly without waiting for /reload via /rl recipes disable and /rl hand.

Save preservation (DummyItem & DummyBlock)

Removing or swapping a mod in an existing world normally turns unknown items into minecraft:air the first time a chest loads. For every rule in your migration list, RingoLib wraps missing items and blocks into ringolib:dummy_item and ringolib:dummy_block, keeping the original ID and DataComponents intact. Reinstall the required mod and the items restore themselves in the player's inventory with internal placeholder tags stripped so they stack with fresh items.

Modpack tools, lag profiler, and item bans (/ringolib & /rl)

Built-in operator commands (permission level 2) under /ringolib (alias /rl):

  • /rl hand — replacement for /ct hand that copies plain namespace:path IDs directly to your clipboard ([JSON] badge, fluid mB volume, #c:*-first tags, DataComponents patch SNBT, and output recipes with one-click [Disable] buttons).
  • /rl look — raycasts up to 16 blocks to inspect a block (BlockState, tags, BlockEntity SNBT) or entity (UUID, health, effects, active AttributeModifier IDs).
  • /rl recipes & /rl audit — live persistent recipe disabling (disable/enable/list), crafting conflict detection (recipe_conflicts.json), config validation (validate), and cross-mod duplicate scanning (duplicate_candidates.json with a ready-to-edit migrations_template).
  • /rl dump ingots|effects|fluids — JSON exports to speed up writing migrations.json and effect configs.
  • /locate ore <block_or_tag> [radius] & /rl structure place <id> [rotation] — spiral ore search supporting #c:ores/* tags (default radius 512, max 2048) and Ponder/datapack .nbt structure placer.
  • /rl ban add|remove|list|clear — writes config/ringolib/banned_items.json, blocks pickup and crafting results, purges banned items from player inventories once per second, and syncs red warning tooltips to clients.
  • /rl lag — TPS/MSPT monitor with items, entities, tiles (ticking BlockEntities), players, curios <player>, near, hotspots, history, smart cleanup (sparing DummyItem, enchanted/named gear, containers/bundles, RARE/EPIC loot, and boss/netherite gear), auto items (60s check), and alert (30s operator alerts).
  • /rl player revive|force_respawn|drop_inventory|attributes & /rl warnings reset — player state recovery (including NaN/Infinity max health repair) and warning cache reset.

Replace this with a description

One-time warning screens

Mod and modpack authors can use RingoWarningAPI to display one-time AlertScreen notices on the title screen or on world join. Once the player clicks Proceed, the warning ID (title_<id> or world_<id>) is saved to config/ringolib/shown_warnings.json.


Configuration (config/ringolib/)

RingoLib generates migrations.json and disabled_recipes.json in config/ringolib/ on first launch (with fallback reading of legacy ringolib_migrations.json and ringolib_disabled_recipes.json):

config/ringolib/migrations.json

{
  "_comment": "Redirect CBC steel and molten steel to TFMG",
  "items": [
    {
      "from": "createbigcannons:steel_ingot",
      "to": "tfmg:steel_ingot",
      "required_mod": "tfmg",
      "redirect_registry": true
    }
  ],
  "blocks": [
    {
      "from": "createbigcannons:steel_block",
      "to": "tfmg:steel_block",
      "required_mod": "tfmg",
      "redirect_registry": true
    }
  ],
  "fluids": [
    {
      "from": "createbigcannons:molten_steel",
      "to": "tfmg:molten_steel",
      "required_mod": "tfmg",
      "redirect_registry": true
    }
  ],
  "registry_redirects": []
}

Each "fluids" entry redirects the still fluid, flowing_ fluid, placed liquid block, and neoforge:fluid_type in one rule.

config/ringolib/disabled_recipes.json

{
  "_comment": "Disable recipes by exact ID or * / ? wildcard",
  "disabled_recipes": [
    "createbigcannons:steel_block",
    "createbigcannons:steel_ingot_from_*",
    "tfmg:crafting/materials/lead_*"
  ]
}

Commands also read and write banned_items.json and shown_warnings.json, and export reports to duplicate_candidates.json, recipe_conflicts.json, ingots_dump.json, effects_dump.json, and fluids_dump.json inside config/ringolib/.


Developer API

All public Java entry points live in com.ringoway.ringolib.api: RingoMigrationAPI, RegistryRedirectManager, RecipeFilterManager, and RingoWarningAPI.

// Redirect an item and alias its registry ID
RingoMigrationAPI.registerItemRedirect("oldmod:copper_gear", "create:copper_gear", "create");

// Redirect both Block and BlockItem
RingoMigrationAPI.registerBlockAndItemRedirect("oldmod:steel_block", "tfmg:steel_block", "tfmg");

// Redirect still fluid, flowing fluid, FluidType, and liquid block
RingoMigrationAPI.registerFluidRedirect("oldmod:crude_oil", "tfmg:crude_oil", "tfmg");

Mod Compatibility

Mod What it does
Create & Registrate addons Prevents intrusive holder crashes when cancelling Registrate entries via @Pseudo RegistrateRegistrationMixin
JEI & EMI Filtered recipes are removed before syncing; redirected items and blocks resolve to the chosen target
Curios API (optional) /rl player drop_inventory drops Curios slots too, and /rl lag curios <player> reports equipped Curios per mod

RingoLib Team

profile avatar
  • 5
    Followers
  • 26
    Projects
  • 257.7K
    Downloads

More from ringowayView all