Topic category: Troubleshooting, bugs, and solutions
Hello, I'm currently trying to add a bow to my mod, but It keeps saying it "Failed to Compile". I don't much about MCreator so if anyone can help that'd be greatly appreciated. he is my log
Executing
Gradle task: build
Build
info: MCreator 2021.1.18117, forge-1.12.2, 64-bit, 16253 MB, Windows 10,
JVM 1.8.0_275, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
>
Configure project :
New
Dep:
net.minecraftforge:forge:1.12.2-14.23.5.2855_mapped_snapshot_20171003-1.12
>
Task :compileJava FAILED
C:\Users\sarah\MCreatorWorkspaces\teknologym\src\main\java\net\mcreator\teknologym\item\ItemTwilightTempest.java:208:
error: cannot find symbol
public static class ModelTempestArrowProjectile<T extends Entity>
extends EntityModel<T> {
^
symbol: class EntityModel
location: class ItemTwilightTempest
C:\Users\sarah\MCreatorWorkspaces\teknologym\src\main\java\net\mcreator\teknologym\item\ItemTwilightTempest.java:211:
error: cannot find symbol
public static final ModelLayerLocation LAYER_LOCATION = new
ModelLayerLocation(new ResourceLocation("modid", "tempestarrowprojectile"),
^
symbol: class ModelLayerLocation
location: class ModelTempestArrowProjectile<T>
where T is a type-variable:
T extends Entity declared in class ModelTempestArrowProjectile
C:\Users\sarah\MCreatorWorkspaces\teknologym\src\main\java\net\mcreator\teknologym\item\ItemTwilightTempest.java:213:
error: cannot find symbol
private final ModelPart bb_main;
^
symbol: class ModelPart
location: class ModelTempestArrowProjectile<T>
where T is a type-variable:
T extends Entity declared in class ModelTempestArrowProjectile
C:\Users\sarah\MCreatorWorkspaces\teknologym\src\main\java\net\mcreator\teknologym\item\ItemTwilightTempest.java:214:
error: cannot find symbol
public ModelTempestArrowProjectile(ModelPart root) {
^
symbol: class ModelPart
location: class ModelTempestArrowProjectile<T>
where T is a type-variable:
T extends Entity declared in class ModelTempestArrowProjectile
C:\Users\sarah\MCreatorWorkspaces\teknologym\src\main\java\net\mcreator\teknologym\item\ItemTwilightTempest.java:218:
error: cannot find symbol
public static LayerDefinition createBodyLayer() {
^
symbol: class LayerDefinition
location: class ModelTempestArrowProjectile<T>
where T is a type-variable:
T extends Entity declared in class ModelTempestArrowProjectile
C:\Users\sarah\MCreatorWorkspaces\teknologym\src\main\java\net\mcreator\teknologym\item\ItemTwilightTempest.java:264:
error: cannot find symbol
public void renderToBuffer(PoseStack poseStack, VertexConsumer
vertexConsumer, int packedLight, int packedOverlay, float red, float green,
^
symbol: class PoseStack
location: class ModelTempestArrowProjectile<T>
where T is a type-variable:
T extends Entity declared in class ModelTempestArrowProjectile
C:\Users\sarah\MCreatorWorkspaces\teknologym\src\main\java\net\mcreator\teknologym\item\ItemTwilightTempest.java:264:
error: cannot find symbol
public void renderToBuffer(PoseStack poseStack, VertexConsumer
vertexConsumer, int packedLight, int packedOverlay, float red, float green,
^
symbol: class VertexConsumer
location: class ModelTempestArrowProjectile<T>
where T is a type-variable:
T extends Entity declared in class ModelTempestArrowProjectile
7
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
Deprecated
Gradle features were used in this build, making it incompatible with
Gradle 5.0.
Use
'--warning-mode all' to show the individual deprecation warnings.
See
https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:c…
BUILD
FAILED in 1s
1
actionable task: 1 executed
BUILD
FAILED
Task
completed in 3 seconds
You are using wrong model code version. Your model is for MC 1.14.4+
1.12.2 is also no longer supported