Entity Problem in 2021.1

Started by TheKralGame on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity Problem in 2021.1

Hello if i create an entity i get an error in 2021.1 full release.

 

Executing Gradle task: build
Build info: MCreator 2021.1.16710, forge-1.16.5, 64-bit, 7875 MB, Linux, JVM 1.8.0_275, JAVA_HOME: /home/thekralgame/Desktop/MCreator20211/jdk/jre
> Task :compileJava FAILED
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:97: error: method does not override or implement a method from a supertype @Override
^
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:101: error: cannot find symbol super.processInteract(sourceentity, hand);
^
symbol: method processInteract(PlayerEntity,Hand)
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:111: error: registerAttributes() in CustomEntity cannot override registerAttributes() in LivingEntity protected void registerAttributes() {
^
overridden method is static
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:110: error: method does not override or implement a method from a supertype @Override
^
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:113: error: cannot find symbol if (this.getAttribute(SharedMonsterAttributes.MOVEMENT_SPEED) != null)
^
symbol: variable SharedMonsterAttributes
location: class CustomEntity
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:114: error: cannot find symbol this.getAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.3);
^
symbol: variable SharedMonsterAttributes
location: class CustomEntity
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:115: error: cannot find symbol if (this.getAttribute(SharedMonsterAttributes.MAX_HEALTH) != null)
^
symbol: variable SharedMonsterAttributes
location: class CustomEntity
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:116: error: cannot find symbol this.getAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(10);
^
symbol: variable SharedMonsterAttributes
location: class CustomEntity
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:117: error: cannot find symbol if (this.getAttribute(SharedMonsterAttributes.ARMOR) != null)
^
symbol: variable SharedMonsterAttributes
location: class CustomEntity
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:118: error: cannot find symbol this.getAttribute(SharedMonsterAttributes.ARMOR).setBaseValue(0);
^
symbol: variable SharedMonsterAttributes
location: class CustomEntity
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:119: error: cannot find symbol if (this.getAttribute(SharedMonsterAttributes.ATTACK_DAMAGE) == null)
^
symbol: variable SharedMonsterAttributes
location: class CustomEntity
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:120: error: cannot find symbol this.getAttributes().registerAttribute(SharedMonsterAttributes.ATTACK_DAMAGE);
^
symbol: variable SharedMonsterAttributes
location: class CustomEntity
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:120: error: cannot find symbol this.getAttributes().registerAttribute(SharedMonsterAttributes.ATTACK_DAMAGE);
^
symbol: method getAttributes()
/home/thekralgame/MCreatorWorkspaces/testmod/src/main/java/net/mcreator/testmod/entity/SitableEntity.java:121: error: cannot find symbol this.getAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(3);
^
symbol: variable SharedMonsterAttributes
location: class CustomEntity
14 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 9s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 11 seconds
 

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is this in the 2021.1 pre…
Tue, 04/27/2021 - 10:32

Is this in the 2021.1 pre-release snapshot?

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, in the 2021.1 full…
Tue, 04/27/2021 - 10:37

No, in the 2021.1 full release.

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It seems you've made a…
Tue, 04/27/2021 - 10:51

It seems you've made a rideable mob, correct me if that is not right. I've never messed with ridable mobs yet. I'd suggest looking at other tutorials and see if you are doing it wrong.

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Same entity is not get error…
Tue, 04/27/2021 - 11:40

Same entity is not get error in 2021.1.12323

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nope. i use eap 12323  now.
Thu, 05/06/2021 - 08:47

nope. i use eap 12323  now.

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm sorry, but can i ask you…
Fri, 05/07/2021 - 11:18

I'm sorry, but can i ask you to give me download link for MCreator 12323?

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Any thing to do with…
Fri, 05/07/2021 - 18:38

Any thing to do with entities in procedure are bugged it just doesn't work or they changed how things are done again which is dumb unless there is a very very good reason for it 

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
same, please fix this.
Wed, 07/28/2021 - 01:22

same, please fix this.