Maximilian Paul Koch

Add a folder to the minecraft datapacks with that you can register component groups, that are like registered Items. for example if someone uses the /give command, then NamespaceInDatapack:branch/to/file(.json excluded)[overwriting compomemts from registry] can be given to the player. The registry must be across ALL of the game so I can call the new Item from everywhere. Also, the Items from normal minecraft must be overwritable with custom Datapacks too and resource pack support of couse must be included!

Kodari AI
KodariOct 17 at 12:21 pm 1

Is this for an existing Minecraft datapack project you can add to the workspace, or should I create a new datapack project for it?

Maximilian Paul Koch

no

Kodari AI
KodariOct 17 at 12:21 pm 1

Should I create a new Minecraft datapack project for this?

Maximilian Paul Koch

Add a registry folder to the minecraft datapacks (under data\namespaces)with that you can register component groups, that are like registered Items. for example if someone uses the /give command, then NamespaceInDatapack:branch/to/file(.json excluded)[overwriting compomemts from registry] can be given to the player. The registry must be across ALL of the game so I can call the new Item from everywhere. Also, the Items from normal minecraft must be overwritable with custom Datapacks too and resource pack support of couse must be included!

Kodari AI
KodariOct 17 at 12:22 pm 1

There isn’t a Minecraft datapack project in this workspace yet, and you said not to create one. Please add your existing datapack project to the workspace, and I can work on the registry there.

Maximilian Paul Koch

make the datapack for yourself 26.3 format

Kodari AI
KodariOct 17 at 12:23 pm 1
Delegated to Global Component Item Registry Running
Build the requested Minecraft 26.3 datapack in this project. User wants a globally addressable registry folder under data/<namespace>/registry, where JSON files define reusable item component groups/items; conceptually they want to give `namespace:branch/to/file` (without `.json`) and have the registered item stack with those components, allow overriding vanilla item component defaults through datapacks, and include resource-pack support. First inspect the generated project/template to determine the exact supported 26.3 datapack/resource-pack formats and existing files. Deliver a complete working datapack plus matching resource pack assets/config where the template supports them. Organize registry JSON under `data/<namespace>/registry/`, use an explicit, documented schema, and include examples showing a custom item, component overrides/inheritance if supportable, and a vanilla item override. Include functions/tags and a README with install/use instructions and exact commands. Important technical requirement: do not claim vanilla datapacks can register new Minecraft item IDs or make `/give namespace:custom_id` work unless 26.3 actually provides a native data-driven item registry for this. Verify against the project's supported format/template and implement the user's requested behavior if native support exists. If pure vanilla datapacks cannot provide the requested `/give` syntax or globally override item registry definitions, implement the closest genuinely functional vanilla datapack equivalent (for example a documented command/function-based grant workflow using real item IDs and components), preserve the requested registry structure/schema as far as possible, and clearly document the limitation and exact workaround. Datapacks/resources must be valid for 26.3, not older guessed formats. Do not ask to build/compile; finish by summarizing files and usage.

I’ve created a new Minecraft datapack project and started building the 26.3-format registry, examples, and resource-pack support. The datapack developer will also verify whether vanilla 26.3 supports custom /give item IDs; if it doesn’t, they’ll include the closest working alternative and explain the limitation.

Report from 1 project
TaskBuild the requested Minecraft 26.3 datapack in this project. User wants a globally addressable registry folder under data/<namespace>/registry, where JSON files define reusable item component groups/i...

…1. Build the 26.3 datapack registry catalogue and working grant functions. 2. Add an optional resource pack for the registered item’s appearance. 3. Document the vanilla limits and install/use commands.Created component_registry/ with a registry catalogue, working grant functions, an optional resource pack item model, and installation instructions in README.md.

Vanilla datapacks cannot make /give @s component_registry:branch/token work or load arbitrary JSON from registry/ as item definitions. Use /function component_registry:branch/token instead; it grants a component-customized amethyst shard. The diamond sword example applies its overrides only to the sword it grants, not to all vanilla diamond swords.

To install, export and extract the ZIP, put component_registry in your world’s datapacks/ folder, then run /reload and /datapack list. For the custom appearance, copy the nested resource_pack folder into .minecraft/resourcepacks/ and enable it. Test with /function component_registry:branch/token.

Kodari AI
KodariOct 17 at 12:25 pm 1

The RegistryItemPack datapack is ready for Minecraft 26.3. It includes the registry folder and examples, grant functions, and an optional resource pack.

Install the component_registry folder in your world’s datapacks folder, run /reload, then try:

Mcfunction
/function component_registry:branch/token

Enable the included resource_pack separately for the custom appearance. Vanilla datapacks can’t add new item IDs or make /give @s component_registry:branch/token work; the function is the supported workaround. The vanilla diamond sword example only changes the sword it grants, not every diamond sword in the game.

I couldn’t run a build check because datapack projects aren’t compilable through the workspace tool.

Maximilian Paul Koch

NO! A mod that adds this registry tag, like shown here: https://github.com/misode/mcmeta/tree/26.3-diff/items, You know, that component registry isnt a thing yet? thats why i wanted you to make A MOD!!!

Kodari AI
KodariOct 17 at 12:35 pm 1
Created Component Item Registry ModFabric Mods 26.3
Delegated to Component Item Registry Mod Running
Build a Fabric mod targeting Minecraft 26.3 that implements the user's requested data-driven item component registry. The user explicitly corrected the previous datapack solution: they want a MOD because vanilla datapacks cannot add custom item registry entries. They referenced https://github.com/misode/mcmeta/tree/26.3-diff/items as a format reference. Read the generated project/template first, inspect available Fabric/Minecraft 26.3 APIs and registry lifecycle, and use the referenced 26.3 item JSON format where applicable. Desired behavior: datapack authors define reusable registered items/component groups in a registry directory under data/<namespace>/registry/, with JSON paths mapping to namespaced IDs (e.g. data/acme/registry/branch/token.json => acme:branch/token, no .json in the ID). A player should be able to use `/give @s acme:branch/token` and receive the item with the registry-defined components. Component groups should be composable/inheritable and item entries should resolve/override components in a clear deterministic way. Include support for overriding vanilla item defaults/components via higher-priority datapacks (document precedence and limitations). Items must resolve globally across namespaces/world/server, not just within one function scope. Include full resource-pack support/definition format so registered items can have custom appearance, using 26.3 conventions. Before implementing, verify what actual 26.3 Minecraft/Fabric provides and determine what is feasible within the registry lifecycle. Do not merely create a datapack/function workaround or claim functionality that isn't implemented. If Minecraft 26.3 already has data-driven item definitions (as the user points to), integrate with/extend that format where possible. If dynamic item registration from datapacks is constrained, implement a solid mod-backed item implementation with a custom item type carrying the resolved definition, datapack reload integration, and a Brigadier `/give` command accepting the custom namespaced ID; handle reloads, persistence/serialization, client sync, stacks, and resource/model lookup correctly. If there is a substantial unavoidable limitation, state it in mod documentation rather than silently substituting a different design. Add working example data for a reusable component group, a custom item at registry/branch/token, a vanilla item override, and matching resource pack item/model/texture or appropriate 26.3 assets. Add README with exact schema, precedence, installation, commands, compatibility with datapack/resource-pack stacking, and verified vanilla/Fabric limitations. Keep code idiomatic, ensure server and client behavior is safe, and do not leave only scaffold/docs. The deliverable is complete source code and example packs; do not run build tools yourself.

You’re right—I misunderstood and made a datapack instead of the mod you asked for. I’ve started a separate Fabric 26.3 mod project to implement the registry, /give support, datapack-defined items, and resource-pack support. The earlier datapack project is unchanged.

Report from 1 project
TaskBuild a Fabric mod targeting Minecraft 26.3 that implements the user's requested data-driven item component registry. The user explicitly corrected the previous datapack solution: they want a MOD beca...

…Implemented the Fabric 26.3 mod with a reloadable data/<namespace>/registry/ format, inheritable component groups, and a /give implementation that accepts logical IDs such as /give @s acme:branch/token. Vanilla item overrides apply through this resolver; datapack priority replaces the entire matching definition file.

The example token is craftable from 2 sticks and 1 amethyst shard and includes its component group, item model, and generated texture. The README documents the schema, precedence, resource-pack layout, installation, and limitations.

Logical IDs are not actual Minecraft item registry entries: custom items use a registered carrier and retain their ID and components on the stack. Vanilla overrides affect stacks created by this mod’s /give, not every way the game creates that vanilla item. The project was not built here.

Kodari AI
KodariOct 17 at 12:48 pm 1
Compiled RegistryItemModSucceeded

The Fabric 26.3 mod is implemented, and its build succeeded. It adds a reloadable data/<namespace>/registry/ format, component groups, and a /give command that accepts IDs such as /give @s acme:branch/token. It also includes example data and resource-pack assets.

One important limitation: these are logical registry IDs backed by a carrier item, not new native Minecraft item-registry entries. Vanilla overrides apply to items created through this mod’s /give, not every vanilla item created in the game. The README documents the format and these limits.

Maximilian Paul Koch

is it possible for you to make these items compatible with an (hidden) minecraft item component itself that accepts any item:"namespace:branch/item" which can be checked by recipes and such, so recipes are compatible with custom items, also make the registry compatible. It's not a problem, if those item registries are cause of that only reloadable by world rejoins and further, but for example the /item .. command, or the loot table should definetively be compatible with registered items

Kodari AI
KodariOct 17 at 12:55 pm 1
Delegated to RegistryItemMod Running
Extend the existing Component Item Registry Fabric 26.3 mod so logical registered items are represented by a dedicated hidden custom item data component and are usable beyond the current custom /give. Read the current source first, especially RegistryItemManager, RegisteredGiveCommand, mixins, resources, README, and the real 26.3/Fabric APIs. Do not assume APIs; inspect available project/template sources and implement idiomatically. Current design: datapack `data/<namespace>/registry/<path>.json` resolves a logical ID to a carrier ItemStack with component patch; `/give` is currently custom-overridden. User asks for an item-component-like hidden value accepting arbitrary `<namespace>:<path>`, recipe matching, `/item` command, and loot-table compatibility. Existing normal Minecraft item IDs must keep working. Required work: 1. Add a real custom Minecraft DataComponentType owned by this mod (use a namespaced ID such as `componentregistry:registered_item`), with persistence and network codecs for arbitrary Identifier values. It is hidden/internal (not a visible presentation component); use it as the authoritative logical identity on every virtual registered-item stack. Preserve compatibility/migration with existing `minecraft:custom_data` tag stacks if practical. Ensure `ItemStack` copy, save/load, packet sync, stack splitting and command-created stacks retain the identity. Do not counterfeit a registry entry by pretending this is a vanilla `minecraft:*` component: explain it is a mod-provided private component on the carrier item. 2. Keep `/give @s namespace:path [count]` resolving registered logical IDs as now, and ensure standard item-ID /give behavior remains vanilla-compatible. 3. Integrate `/item` commands so players/command functions can use registered logical IDs in the vanilla replacement/modify workflows (e.g. `/item replace entity @s weapon.mainhand with acme:branch/token`). The resulting stack and subsequent moves/copies must retain identity. If replacing Vanilla `ItemArgument` is not viable in this version, expose a coherent custom syntax adjacent to `/item`, but first try to support the requested normal form. Do not silently break vanilla syntax, predicates, permissions, count, or component arguments. Add relevant mixins/command wiring with client/server safety. 4. Add recipe input compatibility: a datapack recipe author must be able to declare an ingredient matching the logical registered item ID, and it should match stacks bearing the custom component identity, not merely the shared carrier item. Implement/register a proper custom ingredient serializer/type supported by Minecraft 26.3's current recipe system, with an example recipe that consumes `acme:branch/token`. Preserve vanilla recipe loading. If version's ingredient API prevents custom ingredient JSON or serializer injection, implement a clearly documented alternative recipe bridge rather than falsely claiming vanilla ingredient support. 5. Add loot-table compatibility: datapacks can produce a logical registered ID as loot and receive a correctly identified carrier stack with the entry's resolved components. Prefer accepting the registered ID directly in vanilla item loot entries if safely feasible; otherwise implement a custom loot-table entry/function/number provider with explicit example JSON. Standard vanilla loot remains unaffected. 6. Keep registry behavior coherent through datapack/resource-pack reload and server->client sync. Validate unknown logical ids, ensure registry definitions reload before use or provide understandable diagnostics. User accepts definitions only needing world rejoin/reload, but do not rely on a client-only registry; server owns stack identity. Respect datapack priority and current component-group composition semantics. 7. Update the README with exact syntax/JSON examples for component identity, recipes, `/item`, loot tables, limitations, and install/network requirements. Add real example files for a recipe that consumes the registered token and a loot table granting it. Remove or correct misleading existing README claims that vanilla recipes/loot cannot use it if you implement these integrations. Important boundary: Dynamic arbitrary logical IDs are not genuine entries in Minecraft's frozen vanilla item registry. Implementing the hidden custom item component does not make them native `minecraft:item` registry values. Make the custom component the canonical identity and implement bridges for give/item/recipes/loot. Avoid falsely claiming every vanilla item predicate, arbitrary command argument, third-party mod, or every loot/recipe form automatically understands virtual IDs. Document precisely what works. No build tools; do not claim verified. Complete code + working resources/docs, not scaffolding.

I’ve started extending the Fabric mod with a private, synchronized component to store each registered item’s logical ID, plus integrations for /item, recipes, and loot tables. These will be mod-backed bridges—not native Minecraft item registry entries—and the README will spell out what is and isn’t supported.

Report from 1 project
TaskExtend the existing Component Item Registry Fabric 26.3 mod so logical registered items are represented by a dedicated hidden custom item data component and are usable beyond the current custom /give....

…Implemented the component-backed logical-item extensions.

  • Added the persistent, network-synchronized componentregistry:registered_item component as the canonical identity on carrier stacks. Legacy carrier stacks with the old minecraft:custom_data marker are migrated when checked.

  • Removed the /give command replacement. Vanilla /give and /item now retain their command trees and resolve defined logical IDs through the shared item parser, including normal component arguments. Vanilla item IDs remain usable; copies, moves, and splits retain the identity component.

  • Registered a Fabric custom recipe ingredient matching the logical ID, and a loot function that resolves a carrier entry into the defined stack. Added an example recipe consuming acme:branch/token and a standalone loot table at acme:chests/branch_token.

  • Updated the README with schemas, precedence, installation, command syntax, network requirements, examples, and explicit registry/compatibility boundaries.

The token remains obtainable by crafting two sticks and an amethyst shard; the example exchange recipe consumes one token and paper for two amethyst shards. Logical IDs are still not native minecraft:item registry entries: third-party mods and vanilla systems without these bridges see the carrier item. No build was run, so compilation is unverified.

Kodari AI
KodariOct 17 at 1:14 pm 1
Compiled RegistryItemModSucceeded

The mod now includes a hidden componentregistry:registered_item component that stores each logical ID on its carrier stack, along with bridges for /give, /item, recipe matching, and loot generation. Vanilla item IDs and command trees are preserved. The example recipe and loot table are included.

The Fabric 26.3 mod builds successfully. Logical IDs still aren’t native Minecraft item-registry entries, so vanilla systems and third-party mods without these bridges will see the carrier item. The README documents the supported syntax and limitations.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code