Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c:coal appended minecraft:coals tag breaking recipes #4305

Open
ffuentesm opened this issue Dec 16, 2024 · 2 comments
Open

c:coal appended minecraft:coals tag breaking recipes #4305

ffuentesm opened this issue Dec 16, 2024 · 2 comments

Comments

@ffuentesm
Copy link

adding c:coal to the #minecraft:coals tag is breaking some of my recipes

https://github.com/FabricMC/fabric/blob/1.21.1/fabric-convention-tags-v2/src/generated/resources/data/c/tags/item/coal.json

This is causing the c:coal tag to be added to charcoal and coal coke items from other mods I have. It breaks the recipes that use the c:charcoal and c:coal_coke tags. To fix that, you just have to unappend the c:coal from the #minecraft:coals tag and instead add the minecraft:coal item.

Could you make it this instead?

{
"values": [
{
"id": "minecraft:coal",
"required": false
}
]
}

@Juuxel
Copy link
Member

Juuxel commented Dec 16, 2024

I think the tag contents are correct. A better solution for recipes is to take minecraft:coal directly if you only want it to work with that item, or to use difference ingredients:

/**
* Creates an ingredient that matches if its base ingredient matches, and its subtracted ingredient <strong>does not</strong> match.
*
* <p>The JSON format is as follows:
* <pre>{@code
* {
* "fabric:type": "fabric:difference",
* "base": // base ingredient,
* "subtracted": // subtracted ingredient
* }
* }</pre>
*/
public static Ingredient difference(Ingredient base, Ingredient subtracted) {

@ffuentesm
Copy link
Author

The problem that I have is due to c:coal being automatically attached to the mineacraft:coals tag.
This causes charcoal, and any other item that used the Minecraft:coals to inherit the c;coal tag.

I use a unification mod to merge duplicate items from the game, and due to that, charcoal (and other items that use mineacraft:coals ) get removed from the game due to inheriting the c:coal tag. Basically, burning logs result into coal being produced. Coal Coke is removed from the game due to this. A lot of problems arise due to this.

btw: the mods that add those other coal types, name those coals with c:charcoal and c:coal_coke tags to use.
Now due to how c:coal is being inherited, it gets added to those other coal types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants