Imported Blockbench Model looks garbled #2654
Unanswered
gaffeyic908
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using Minecraft Neoforge 1.21.1 and Blockbench 4.12.6. I'm making a mod that includes a Steam Train entity that extends from AbstractMinecart. At the moment my goal is to make it function like a typical minecart but use a model I made in Blockbench. I exported the model to Java and included it in my repository. However, the model looks garbled and messed up. Here's how it looked in Blockbench vs. how it looks in-game:
And here's the code for the model, generated from "export Java entity" in Blockbench and edited slightly:
`
package net.gaffmods.steamtrainmod.entity.client;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import net.gaffmods.steamtrainmod.SteamTrainMod;
import net.gaffmods.steamtrainmod.entity.custom.SteamTrainEntity;
import net.minecraft.client.model.HierarchicalModel;
import net.minecraft.client.model.geom.ModelLayerLocation;
import net.minecraft.client.model.geom.ModelPart;
import net.minecraft.client.model.geom.PartPose;
import net.minecraft.client.model.geom.builders.*;
import net.minecraft.resources.ResourceLocation;
import org.jetbrains.annotations.NotNull;
// Made with Blockbench 4.12.6
// Exported for Minecraft version 1.17 or later with Mojang mappings
// Paste this class into your mod and generate all required imports
public class SteamTrainModel extends HierarchicalModel {
// This layer location should be baked with EntityRendererProvider.Context in the entity renderer and passed into this model's constructor
public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(ResourceLocation.fromNamespaceAndPath(SteamTrainMod.MOD_ID, "steam_train_entity"), "main");
private final ModelPart bone_base;
private final ModelPart bone_couplingrod_right;
private final ModelPart bone_wheel_back_right;
private final ModelPart bone_wheel_front_right;
private final ModelPart bone_couplingrod_left;
private final ModelPart bone_wheel_front_left;
private final ModelPart bone_wheel_back_left;
private final ModelPart bone_firebox;
private final ModelPart bone_chimney_base;
}
`
Beta Was this translation helpful? Give feedback.
All reactions