Procedure wont compile once I use the damage block using fabric generator

Started by Itsmagma on

Topic category: Help with MCreator software

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure wont compile once I use the damage block using fabric generator


Executing Gradle task: build
Build info: MCreator 2023.2.24119, fabric-1.20.1, 64-bit, 16315 MB, Windows 11, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-06-24-07:26:25

> Configure project :
Fabric Loom: 1.2.7
> Task :compileJava
C:\Users\ACJac\MCreatorWorkspaces\the_corruption\src\main\java\net\mcreator\thecorruption\procedures\TestOnEffectActiveTickProcedure.java:24: error: level has private access in Entity _entity.hurt(new DamageSource(_entity.level.registryAccess().registryOrThrow(Registries.DAMAGE_TYPE).getHolderOrThrow(DamageTypes.GENERIC)) {
^
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 --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 5s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 1 minute and 21 seconds