Topic category: Help with Minecraft modding (Java Edition)
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
Is this in the 2021.1 pre-release snapshot?
No, in the 2021.1 full release.
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.
Same entity is not get error in 2021.1.12323
Is the code of your entity locked?
no
Hi! Did you solve this problem?
nope. i use eap 12323 now.
Please report this bug on https://github.com/MCreator/MCreator and include a demo workspace
I'm sorry, but can i ask you to give me download link for MCreator 12323?
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
same, please fix this.