Open hammy275 opened 9 months ago
Done and done!
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.
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).
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).
most crafting tables are not supported only (in my testing) the vanilla one works
Yes, this is planned to be fixed. At the moment, ImmersiveMC directly checks if the block is the vanilla crafting table, as other forms of detection that don't use tags end up catching other blocks that are built similarly (see the smithing table issue mentioned above).
Already done for other blocks, should do it for crafting tables, too.