MasterBall Traders API 0.3.0 (NeoForge)
Curse Maven Snippet
What's new
NeoForge version. Playing on Fabric? Use MasterBall Traders API (Fabric) instead. Pair it with MasterBall Traders Co. (NeoForge). Source: github.com/T4V00/masterball-api
Required by MasterBall Traders Co. 1.1.0. Minecraft 1.21.1, Java 21.
New: NeoForge support
- The API now runs natively on NeoForge 1.21.1 (NeoForge 21.1+). There are two files from now on, one for Fabric and one for NeoForge, with the same cards, packs, rarities, print variants and card art.
- On NeoForge the 12,800 card and pack item models are served by the API's built-in virtual resource pack (no extra files, no log spam). Card items use the same renderer on both loaders.
- Cards stay hidden from the creative menu and recipe viewers on NeoForge too (unless
showCardsInCreativeAndRecipeViewersis on), through thec:hidden_from_recipe_viewerstag that REI 16+, JEI and EMI honour. The extra REI client plugin is Fabric-only. - The ScalperTCG conversion (old
cobbletcg:*items and placed albums) stays Fabric-only. Moving a Fabric world to NeoForge is not supported.
Platform layer (for mod developers)
- New loader-independent layer in
dev.masterball.api.platform, used by MasterBall Traders Co. so its shared code never touches a loader API:Platform: loader name, game/config paths,isModLoaded, physical side, creative tabs, entity attributes and spawns, world features, reload listeners;Net: payload registration and sending (server and client);ClientPlatform: client networking, key mappings, item / entity / block-entity renderers, extra models, player render layers, client reload listeners;PlayerData: persistent per-player data (optionally kept on death);- event holders
ServerEvents,PlayerEventsandClientEvents(server lifecycle, ticks, commands, loot tables, entity load and death; player join/leave/respawn, block and item use; client ticks, HUD, tooltips, screen and world rendering).
- Each loader ships its own bridge (Fabric API / NeoForge events), found through Java's ServiceLoader. The code moved to Mojang names (with Parchment) on both loaders.
Fixes
- Chunk-loading freeze fixed. Rescuing old ScalperTCG albums and pack boxes ran while a chunk was still loading, which could deadlock the server with C2ME (watchdog crash). The rescue is now queued and placed a few ticks later, once the chunk is fully loaded.
Pack odds
- Separate pull and pricing tables. Packs now open with much rarer hits: normal / semi-god / god packs are 99.05 / 0.8 / 0.15% (semi-god 1 in 125, god about 1 in 667), the luck slot gives plain and holo Rares more often, and Special Illustration and Hyper Rares are much rarer. God packs are still full art only.
PackContents.expectedValue, which MasterBall Traders Co. uses for pack and box prices, keeps the original, more generous reference table, so prices did not drop: opening a whole booster box only rarely pays for itself.- Sets with no Commons or Uncommons (for example Celebrations) fill those slots with their lowest rarity instead of handing out Rares, and missing rarity families fall back to the set's plain Rares.
This mod has no additional files

