Procedure error

Started by Mejek-Moj on

Topic category: Help with MCreator software

Active 3 days ago
Joined Aug 2024
Points:
51

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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.

Active 5 hours ago
Joined Dec 2014
Points:
1080

User statistics:

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

Can you send a screenshot of your procedure?

Active 3 days ago
Joined Aug 2024
Points:
51

User statistics:

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

Yeah, I thank I can

Active 3 days ago
Joined Aug 2024
Points:
51

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
(No subject)
Fri, 10/11/2024 - 16:08

Active 3 days ago
Joined Aug 2024
Points:
51

User statistics:

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

I've got a better one:

Active 3 weeks ago
Joined Jan 2024
Points:
153

User statistics:

  • Modifications: 2
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 24
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 

Active 3 days ago
Joined Aug 2024
Points:
51

User statistics:

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

Ok, I'll try it. Thanks!