Entity Problem in 2021.1

Started by TheKralGame on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Feb 2020
Points:
778

User statistics:

  • Modifications: 1
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 31
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
 

Active 3 years ago
Joined Apr 2020
Points:
718

User statistics:

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

Is this in the 2021.1 pre-release snapshot?

Active 3 years ago
Joined Feb 2020
Points:
778

User statistics:

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

No, in the 2021.1 full release.

Active 3 years ago
Joined Apr 2020
Points:
718

User statistics:

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

Active 3 years ago
Joined Feb 2020
Points:
778

User statistics:

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

Same entity is not get error in 2021.1.12323

Active 3 years ago
Joined Feb 2020
Points:
778

User statistics:

  • Modifications: 1
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 31
no
Tue, 04/27/2021 - 14:12

no

Active 11 hours ago
Joined Apr 2021
Points:
612

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
Hi! Did you solve this…
Wed, 05/05/2021 - 17:41

Hi! Did you solve this problem?

 

Active 3 years ago
Joined Feb 2020
Points:
778

User statistics:

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

nope. i use eap 12323  now.

Active 11 hours ago
Joined Apr 2021
Points:
612

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
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?

Active 2 years ago
Joined Aug 2018
Points:
682

User statistics:

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

Active 3 years ago
Joined Jul 2021
Points:
568

User statistics:

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

same, please fix this.