Procedure error

Started by Mejek-Moj on

Topic category: Help with MCreator software

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.

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?

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, I thank I can
Fri, 10/11/2024 - 16:03

Yeah, I thank I can

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've got a better one:
Fri, 10/11/2024 - 16:12

I've got a better one:

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe try to put Procedure…
Mon, 10/14/2024 - 02:36

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 

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, I'll try it. Thanks!
Mon, 10/14/2024 - 19:11

Ok, I'll try it. Thanks!