Unused CottonResources Tags in Crafting Recipes Become Air Blocks
TechnoVisionDev opened this issue ยท 0 comments
Describe the bug
Not entirely sure if this is a bug with Fabric, CottonResources, or just an error on my part? I use CottonResources tags for crafting in one of my mods, but none of my items are actually registered in these tags (meaning they are empty). If a player has my mod loaded with another mod that uses these tags (for copper ingots for example), they can craft specialty items using those materials. If they don't, the crafting recipes are meant to just be unavailable for crafting (this is how forge tags work).
It seems that currently, if a CottonResources tag is used in a crafting recipe but no mod is loaded that adds items to those tags, then the crafting recipes actually accepts air blocks instead of those tags. This means that items that specify tags in their crafting recipe can be crafted with an empty crafting table. Very strange and doesn't seem like how tags are supposed to function, though I could certainly be wrong on this.
To Reproduce
Steps to reproduce the behavior:
- Do NOT add CottonResources as a dependency
- Create one of the c/tags/items jsons yourself
- Use this tag in one of your crafting recipes alongside a vanilla item
- Load the game without any other mods that add to this c/tag
- Attempt to craft the item with just the vanilla items
- You will be able to craft the item using air blocks in place of the c/tag
Expected behavior Optional
Similar to forge tags, if the c/tags are never modified then the crafting recipe should simply not work and be unavailable. For some reason, these c/tags are turning into air blocks when nothing is added to them.
Version of the (please complete the following information):
- Fabric Loader 0.10.8
- Fabric/Minecraft 1.16.4
Additional context Optional
This is currently an issue with my fabric port of IronChests. It seems that CottonResources do not act the way forge tags act because of this bug. If you would like to check out this issue yourself, load up my mod with nothing else besides the Fabric API and throw a wooden plank in the crafting table. You will see this does not match up with the crafting recipe at all!
My Mod: https://www.curseforge.com/minecraft/mc-mods/iron-chests-fabric