considering most Minecraft mods directly mess with the Minecraft code as opposed to going through a well defined API (forge and fabric only provide so much) you can’t really make that work without outright stealing Minecraft code
the best you can make would be resourcepack and datapack compatibility. maybe whatever molang stuff bedrock’s up to