Home›Java›Mods›Qubit Item Patches
Qubit Item Patches
ModsJava

Qubit Item Patches

Java mod listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by mesosopic · on Modrinth

⬇ Download on Modrinth

Qubit Item Patches

A tiny, configurable mod intended for use in modpacks.

Allows for patching of default item components.

Usage

By default, this mod should change nothing.

It can be configured with a datapack.

Item patches can be placed at data/<namespace>/qubit/item_patch/<id>.json and look like this:

{
  // The patch on the item. See the Minecraft wiki page on item components for more information.
  // Put ! in front of a component name (with an empty definition) to remove it
  "patch": {
    "minecraft:item_name": "New Item Name",
    "minecraft:consumable": {
      "consume_seconds": 1
    },
    "!minecraft:cooking_fuel": {}
  },
  // Optional array of item identifiers to apply this patch to.
  // Can also just be a single item ID or a tag.
  "targets": "#minecraft:coals",
  // Optional array of item patch identifiers which will also apply their
  // `patch`es to the `targets` of this patch (in the order specified).
  // Can also just be a single parent or a tag.
  "parents": "my_namespace:other_patch"
}

However, patches do not load on their own. Instead, a tag qubit:load (at data/qubit/tags/qubit/item_patch/load.json) controls which patches load and, more importantly, in what order they apply, so that multiple patches can apply to the same item in a predictable order. (Patches not in qubit:load might be useful as "prototype" patches that are the parents of other patches.)

Client

Qubit Item Patches is required on the client.

Some other mods that do a similar thing (such as Defaulted) get around this by including the patch in every item packet sent to the client. However, the goal of the Qubit project is for each mod to do its job in the simplest way possible, to maximize compatibility and allow the mods to update as quickly as possible.

So Qubit Item Patches syncs the patches to the client for it to modify its own item registry with, which means everything looks right in the creative inventory, etc.

However, this also means the item patch registry is not reloadable with /reload unlike with Defaulted.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more