Topic category: Help with MCreator software
Hey, I am currently working on a mod with guns and i have this procedure, this is code for it (sorry for bad english, i'm from poland)
Event Trigger - Triggered by Connection...
[If
item in the other hand event/goal entity = (my item)
or
item in main hand event/target entity = (my item)
execute
return logic true
otherwise
return logic false]
return logic false
And I have this linked to "View in-game overlay"
Theese are console logs:
Executing Gradle task: runClient
Build info: MCreator 2024.3.40615, forge-1.20.1, 64-bit, 16348 MB, Windows 10, JVM 21.0.4, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2024-10-11-13:45:31> Task :compileJava
C:\Users\MejekMoj\MCreatorWorkspaces\mejekmojs_warfare\src\main\java\net\mcreator\mejekmojswarfare\procedures\AmmodisplayWyswietlNakladkeWGrzeProcedure.java:19
: error: unreachable statement return false;
^
1 error
> Task :compileJava FAILED
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 31s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 5 minutes and 15 seconds
Someone please help.
Can you send a screenshot of your procedure?
Yeah, I thank I can
I've got a better one:
Maybe try to put Procedure in trigger named: "item in hand tick"
/
Może spróbuj postawić tą procedurę w Wyzwalaczu (Triggerze) o nazwie: Przedmiot jest w dłoni
Im not really sure if that will help
Ok, I'll try it. Thanks!