Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
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.


