Fabric Generator cannot find symbol (solved)

Started by Farsight066 on

Topic category: Plugins and third-party tools

Last seen on 21:05, 7. May 2023
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fabric Generator cannot find symbol (solved)
Sat, 04/29/2023 - 18:38 (edited)

When I try to run the client I get the One or more of your main mod files did not compile properly. Regenerating code does not solve the issue, as well as reinstalling mcreator, or the fabric plugins. 

The error seems to be on this line

ServerPlayConnectionEvents.JOIN.register((handler, sender, server) -> {

if (handler.getPlayer().getExtraCustomData().getCompound("PlayerPersisted").isEmpty()) {
handler.getPlayer().getExtraCustomData().put("PlayerPersisted", new CompoundTag());
}
ElementalCrystalsMod.LOGGER.info(handler.getPlayer().getExtraCustomData());
}

 in 

C:\Users\[USERNAME]\MCreatorWorkspaces\elemental_crystals\src\main\java\net\mcreator\elementalcrystals\ElementalCrystalsMod.java

 

I've been troubleshooting this issue for weeks and I rely heavily on the fabric generator so any help is appreciated.

 

EDIT: After more testing this happens on every fabric mod I try to use and deleting the gradle folder does not work either

 

SOLUTION: In workspace settings > external api's fabric api and terrablender have to be turned on for the fabric essentials plugin to work

Edited by Farsight066 on Sat, 04/29/2023 - 18:38