Agro to change texture: Uses GeckoLib

Started by tycerkirk on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Agro to change texture: Uses GeckoLib

Executing Gradle task: runClient
Build info: MCreator 2024.3.42716, forge-1.20.1, 64-bit, 7816 MB, Windows 11, JVM 21.0.4, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2024-11-30-11:01:05
Loaded APIs: geckolib

> Task :compileJava
###: error: method execute in class GingerbreadKidBurnProcedure cannot be applied to given types; GingerbreadKidBurnProcedure.execute(this.level(), this);
^
required: LevelAccessor,DamageSource,Entity
found: Level,GingerbreadKidEntity
reason: actual and formal argument lists differ in length
###: error: incompatible types: GingerbreadKidEntity cannot be converted to DamageSource GingerbreadKidBurnProcedure.execute(this.level(), this);
^
###: error: expression type is a subtype of pattern type LivingEntity if (entity instanceof Mob _entity && null instanceof LivingEntity _ent)
^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
> 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 5s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 7 seconds



I am trying to get an Entity to change texture when it is damaged by another entity, and it will then attack that entity for a small amount of time before becoming passive again


(Burnt - local variable controlling Hostility

Passive: Burnt = false
Hostile: Burnt = true)

https://media.discordapp.net/attachments/1311836512312365151/1312375067707047978/Screenshot_2024-11-30_110504.png?ex=674c4406&is=674af286&hm=b179dc4b5952d7692d49bf6939a6970e0f7bbf9bf9e9927555f559077567ee4e&=&format=webp&quality=lossless&width=1875&height=985