Topic category: Troubleshooting, bugs, and solutions
When I want import a new java model today,I can't make it,it always says:"a type with the same simple name is already defined by the single-type-import of Main".When I check the source,I found that it imported three more packages,"net.minecraft.server.Main","net.minecraft.data.Main"and"net.minecraft.client.main.Main",two of them cause the above issue,and these three packages are not present in the models that was imported before.
When I tried to manually modify the model source to remove the three redundant packages, I found that every build would rewrite the model and rewrite the three packages, which continued to cause problems.I don't know if this is my problem or the MCR's. I put the original model(before import) link below for reference.
https://pastebin.ubuntu.com/p/V3z8Cy3mMr/
(I will no longer use this model in my project...)
This only seems to happen on this one model, other models don't necessarily have this issue when imported the same way again. And the model cannot be deleted normally, it can only be deleted by regenerating the code.