Procedure error

Started by Mejek-Moj on

Topic category: Help with MCreator software

Last seen on 12:15, 11. Oct 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure error

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.

Last seen on 12:38, 11. Oct 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you send a screenshot of…
Fri, 10/11/2024 - 12:09

Can you send a screenshot of your procedure?