Topic category: Troubleshooting, bugs, and solutions
when i run the code it gives this error:
error: reached end of file while parsing
but when i try to fix it by doing what they said here https://mcreator.net/forum/41046/code-error-beyond-my-repair#:~:text=The%20error%20Reached%20End%20of,extra%20parenthesis%20in%20the%20end it gives this error:
Executing Gradle task: build
Build info: MCreator 2023.4.52316, fabric-1.20.1, 64-bit, 32469 MB, Windows 11, JVM 17.0.9, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2024-04-07-13:30:43
> Configure project :
Fabric Loom: 1.4.6
> Task :compileJava FAILED
C:\Users\ethan\MCreatorWorkspaces\minecraft_expansion_\src\main\java\net\mcreator\minecraftexpansion\procedures\CalclateTempProcedure.java:9: error: class CalclateTempProcedure is already defined in package net.mcreator.minecraftexpansion.procedures @Mod.EventBusSubscriber public class CalclateTempProcedure {
^
C:\Users\ethan\MCreatorWorkspaces\minecraft_expansion_\src\main\java\net\mcreator\minecraftexpansion\procedures\CalclateTempProcedure.java:9: error: package Mod does not exist @Mod.EventBusSubscriber public class CalclateTempProcedure {
^
C:\Users\ethan\MCreatorWorkspaces\minecraft_expansion_\src\main\java\net\mcreator\minecraftexpansion\procedures\CalclateTempProcedure.java:10: error: package TickEvent does not exist @SubscribeEvent public static void onPlayerTick(TickEvent.PlayerTickEvent event) {
^
C:\Users\ethan\MCreatorWorkspaces\minecraft_expansion_\src\main\java\net\mcreator\minecraftexpansion\procedures\CalclateTempProcedure.java:10: error: cannot find symbol @SubscribeEvent public static void onPlayerTick(TickEvent.PlayerTickEvent event) {
^
symbol: class SubscribeEvent
location: class net.mcreator.minecraftexpansion.procedures.CalclateTempProcedure.CalclateTempProcedure
C:\Users\ethan\MCreatorWorkspaces\minecraft_expansion_\src\main\java\net\mcreator\minecraftexpansion\procedures\CalclateTempProcedure.java:11: error: package TickEvent does not exist if (event.phase == TickEvent.Phase.END) {
^
5 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.
BUILD FAILED in 2s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 3 seconds
i'm using fabric on 2023.4
i would love any help :)
this is for a temperature mod if it helps
Seems like fabric generator plugin bug. I recommend getting in touch with the plugin author