Can't import Java model correctly with three redundant packages.

Started by Ironnoob73 on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 01:23, 22. Apr 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can't import Java model correctly with three redundant packages.
Mon, 01/24/2022 - 00:09 (edited)

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...)

Edited by Ironnoob73 on Mon, 01/24/2022 - 00:09
Last seen on 01:23, 22. Apr 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This only seems to happen on…
Sun, 01/23/2022 - 14:35

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.