QualityAPI

Shared item quality for NeoForge: data-driven tiers from Crude to Masterwork that change durability, speed, attributes and enchantments, carry through crafting, and break instead of vanishing. Standalone or as an API for other mods.
Back to Files

qualityapi-1.21.1-1.9.0

File namequality_api-1.9.0.jar
Uploader
SilvertideSilvertide
Uploaded
Nov 29, 2026
Downloads
50
Size
203.6 KB
Mod Loaders
NeoForge
File ID
9921193
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:qualityapi-1686305:9921193"

Learn more about Curse Maven

What's new

1.9.0

  • Quality stars are redone. Every tier now shows whole stars counting up from the lowest tier: crude is one star, standard two, masterwork six. Half stars are gone, and so is the five star limit.
    • Stars follow the tiers that are loaded, not the level number. A datapack that adds a tier adds a star, a gap between levels adds none, and tiers that share a level show the same stars.
    • New client config showEmptyStars (default off). When on, grey empty stars follow a tier's own stars up to the highest tier, so a fine item shows three coloured stars and three empty ones.
    • This applies everywhere the tier is shown: item tooltips, quality stack tooltips and the tier on mobs and players.
    • For resource packs: textures/font/stars.png is now 32×16, a filled star in the left 16×16 and an empty star in the right. A pack that repainted the old texture needs updating.

1.8.1

  • A quality stack of food can be eaten straight from the hand. The best quality is eaten first, or the one chosen by scrolling over the stack.
    • Each bite is the real food: its quality effects, its own behaviour (chorus fruit teleports, honey clears poison) and its statistics all apply as if it were eaten loose.
    • A bottle or bowl a food leaves behind goes to the inventory, or to the hand when it was the last one. When only one quality is left, the stack turns back into a normal stack.
    • AppleSkin's preview shows the values of the food that will be eaten next.
    • Drinks start at once, as honey bottles do, so a drink from another mod that normally needs an empty hunger bar can be drunk from a quality stack while full.
    • The sound while chewing or drinking is the generic one. Crops still cannot be planted from a quality stack.
    • Mods that track eaten food through the item-use events see the quality stack, not the food.
  • Fixed the durability bar ignoring quality. An item whose quality changes its durability showed a bar measured against the unscaled durability, so a crude item's bar ran out early and a masterwork item's bar stayed full for too long. Items from other mods that draw their own bar are unchanged.

1.8.0

  • Quality now carries through cooking and smelting. The furnace, smoker, blast furnace and campfire pass the quality of what went in to what comes out, and with Farmer's Delight installed so do the cooking pot, stove, skillet and cutting board.
    • Results follow craftInheritance, with AVERAGE rounded instead of rolled so one batch always stacks.
    • New config stationInheritanceDamageableOnly (default off) decides whether only results with durability inherit at stations. craftInheritanceDamageableOnly now covers the crafting table only, so cooked food and ingots inherit by default while planks and sticks still do not.
    • The player who takes a result by hand is recorded as the crafter of a result that has a quality. Hoppers and other automation record nobody.
    • A result slot refuses pickup while the cursor holds something, and shift-click needs an empty inventory slot.
  • When a furnace or cooking pot makes a result of a different quality from the one already in its output, the two pool into a quality stack there instead of the station stopping. Needs qualityStacks on. Hoppers move the pooled result as one quality stack.
    • The crafter is recorded on a pooled result only when everything in it has a quality.
    • Other mods that react to smelting see the pooled result as one quality stack item.
    • With qualityStacks off, a station waits until the output is emptied before making a result of another quality. The cooking pot also waits while a meal of the old quality is still inside it, for example when it is out of bowls.
  • For mods: QualityProcessEvent (a station made a result: level, station position, ingredients, result, ingredient mean level, proposed tier, setQuality) and QualityResultTakenEvent (a player took a result: player, stack, tier, setQuality; once per tier for a pooled result). QualityProcessEvent listeners must give the same tier for the same ingredients, since stations check a result before making it.
  • Farmer's Delight is optional, 1.3.3 or newer; its hooks load only when it is installed. They are tested against 1.3.3, and a later Farmer's Delight update that changes the code they attach to can stop the game at startup until QualityAPI is updated.