Can someone tell me why I can't build this?

Started by DJH_100 on

Topic category: Help with MCreator software

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can someone tell me why I can't build this?
Sat, 04/01/2023 - 22:05 (edited)

I can't get my mcreator workspace to build. I am using fabric workspace generator and only have 2 blocks but it is glitching.


> Configure project :
Fabric Loom: 1.0.17
Not publishing sources jar as it was not found. Use java.withSourcesJar() to fix.
> Task :compileJava FAILED
C:\Users\danie\McreatorWorkspaces\djfarming\src\main\java\net\mcreator\djfarming\DjfarmingMod.java:38: error: cannot find symbol if (handler.getPlayer().getExtraCustomData().getCompound("PlayerPersisted").isEmpty()) {
^
symbol: method getExtraCustomData()
location: class ServerPlayer
C:\Users\danie\McreatorWorkspaces\djfarming\src\main\java\net\mcreator\djfarming\DjfarmingMod.java:39: error: cannot find symbol handler.getPlayer().getExtraCustomData().put("PlayerPersisted", new CompoundTag());
^
symbol: method getExtraCustomData()
location: class ServerPlayer
C:\Users\danie\McreatorWorkspaces\djfarming\src\main\java\net\mcreator\djfarming\DjfarmingMod.java:41: error: cannot find symbol DjfarmingMod.LOGGER.info(handler.getPlayer().getExtraCustomData());
^
symbol: method getExtraCustomData()
location: class ServerPlayer
C:\Users\danie\McreatorWorkspaces\djfarming\src\main\java\net\mcreator\djfarming\init\DjfarmingModBlocks.java:17: error: cannot find symbol TOMATO_PLANT = Registry.register(Registry.BLOCK, new ResourceLocation(DjfarmingMod.MODID, "tomato_plant"), new TomatoPlantBlock());
^
symbol: class TomatoPlantBlock
location: class DjfarmingModBlocks
C:\Users\danie\McreatorWorkspaces\djfarming\src\main\java\net\mcreator\djfarming\init\DjfarmingModBlocks.java:21: error: cannot find symbol TomatoPlantBlock.clientInit();
^

 

Edited by DJH_100 on Sat, 04/01/2023 - 22:05