[Fixed] Error: Package ModItems does not exist

Started by DeathD84 on

Topic category: Troubleshooting, bugs, and solutions

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
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 ^

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

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

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

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

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

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.