hammy275 / immersive-mc

A Minecraft mod to make Minecraft more immersive!
GNU Lesser General Public License v3.0
62 stars 7 forks source link

Genericize Crafting Table Detection #352

Open hammy275 opened 7 months ago

hammy275 commented 7 months ago

Already done for other blocks, should do it for crafting tables, too.

hammy275 commented 7 months ago

Done and done!

hammy275 commented 6 months ago

Had to undo the work from this due to a bug with smithing tables (see #371 ). I'm thinking of using a user-customizable whitelist in the future, but until then, this issue is back open.

hammy275 commented 3 months ago

I should use tags for this. Great system already in the game. I can internally keep a list of all crafting tables I know are supported, and it should let authors add their own through the vanilla tag system (will have to write a wiki article for that).

hammy275 commented 1 week ago

I should be able to detect crafting tables using each modloader's pre-existing crafting table tag combined with the new convention one (https://github.com/FabricMC/fabric/blob/e521378444edf1a1f4d41311b8be7edf2c17aef1/fabric-convention-tags-v2/src/generated/resources/data/c/tags/block/player_workstations/crafting_tables.json).