Triggers causing errors

Started by TerraShiii on

Topic category: Help with modding (Java Edition)

Last seen on 23:23, 10. May 2023
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Triggers causing errors

Whenever I add a trigger with 'Event/Target Entity' The compiling fails and I get this error: Your Workspace contains elements that don't compile properly.
The console log when this happens:

Executing Gradle task: build
Build info: MCreator 2021.1.18117, fabric-1.16.5, 64-bit, 16246 MB, Windows 10, JVM 1.8.0_275, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Configure project :
Fabric Loom: 0.6.57 Build(release #57)
> Task :compileJava FAILED
C:\Users\muffe\MCreatorWorkspaces\rainbow_karbon\src\main\java\net\mcreator\rainbowkarbon\item\FlameEnergyItem.java:64: error: cannot find symbol $_dependencies.put("entity", entity);
^
symbol: variable entity
location: class FlameEnergyItem
C:\Users\muffe\MCreatorWorkspaces\rainbow_karbon\src\main\java\net\mcreator\rainbowkarbon\item\SharpEnergyItem.java:64: error: cannot find symbol $_dependencies.put("entity", entity);
^
symbol: variable entity
location: class SharpEnergyItem
2 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 --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 13 seconds
 

PLEASE HELP!

You are calling procedure…
Thu, 05/13/2021 - 16:03

You are calling procedure that needs entity dependency from trigger that does not provide it.

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei