[Fixed] Error: Package ModItems does not exist

Started by DeathD84 on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 22:06, 28. Aug 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Fixed] Error: Package ModItems does not exist
Fri, 11/24/2023 - 17:59 (edited)

Walkthrough of what I did before this error occurred

I wanted to make a new armor, so I duplicated locked armor code (code was locked because I change a line in the leggings to render part of the armor on the body)
I didn't realize it would stay locked, so I unlocked the code, and then the entire workspace essentially broke.

Now anything in the mod (procedures and entities) that references an item, is broken, and the console is filled with "error: package ModItems does not exist" to every single place I used an item.

Resaving mod elements doesn't fix it, regenerating code does not fix, exporting workspace and importing does not fix

 

I don't know any other ways I can fix this problem.

Edited by DeathD84 on Fri, 11/24/2023 - 17:59
Last seen on 22:06, 28. Aug 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
using 2023.3 ^
Fri, 11/24/2023 - 02:26

using 2023.3 ^

Last seen on 22:06, 28. Aug 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
clearing caches also does…
Fri, 11/24/2023 - 02:43

clearing caches also does not fix

Do you use any plugins? If…
Fri, 11/24/2023 - 15:19

Do you use any plugins? If not, please open a bug report on our issue tracker at GitHub and attach the workspace and logs

Last seen on 22:06, 28. Aug 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i use geckolib,…
Fri, 11/24/2023 - 17:14

i use geckolib, playeranimator, and procedures+, ive been using all these since i started the project
i recently updated geckolib, but idk the issue seems out of left field

Last seen on 22:06, 28. Aug 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it seems in anything that…
Fri, 11/24/2023 - 17:39

it seems in anything that references an item, the line of code to get the items isnt there
import net.mcreator.jojowos.init.JojowosModItem;

this is not present in any of the code for some reason

Last seen on 22:06, 28. Aug 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the logs seem to tell me its…
Fri, 11/24/2023 - 17:52

the logs seem to tell me its geckolib, as its failing to load, as well as
2023-11-24-10:40:15 [RegenerateCode/ERROR] [Template Generator] Failed to generate template: elementinits/items.java.ftl

Last seen on 22:06, 28. Aug 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
welp, i deleted the plugin…
Fri, 11/24/2023 - 17:57

welp, i deleted the plugin and redownloaded it, and now the problem is fixed

Last seen on 05:38, 28. May 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
huh, i have the exact same…
Sun, 12/24/2023 - 14:07

huh, i have the exact same problem, with geckolib, but on 2023.4. i cant reinstall though. weird how everything about this error seems so random.