Jump to content

DragonITA

Members
  • Posts

    552
  • Joined

  • Last visited

Everything posted by DragonITA

  1. To extends the HorseModel i need replace the LivingEntity with the AbstractHorseEntity.
  2. i think whoever's bugging me in the HorseEntity Class is, here: private static final String[] HORSE_TEXTURES = new String[]{"textures/entity/horse/horse_white.png", "textures/entity/horse/horse_creamy.png", "textures/entity/horse/horse_chestnut.png", "textures/entity/horse/horse_brown.png", "textures/entity/horse/horse_black.png", "textures/entity/horse/horse_gray.png", "textures/entity/horse/horse_darkbrown.png"};
  3. package net.batonfack.fantasymod.client.models; import net.minecraft.client.renderer.entity.model.EntityModel; import net.minecraft.client.renderer.entity.model.RendererModel; import net.minecraft.client.renderer.model.ModelBox; import net.minecraft.entity.LivingEntity; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; @OnlyIn(Dist.CLIENT) public class ModelUnicornWitoutAbstracHorse<T extends LivingEntity> extends EntityModel<T> { protected final RendererModel field_217127_a; protected final RendererModel field_217128_b; private final RendererModel CornGroup; private final RendererModel Corn1; private final RendererModel Corn2; private final RendererModel Corn3; public ModelUnicornWitoutAbstracHorse(float p_i51065_1_) { this.field_217127_a = null; this.field_217128_b = null; this.textureWidth = 128; this.textureHeight = 64; CornGroup = new RendererModel(this); CornGroup.setRotationPoint(0.0F, 0.0F, 0.0F); Corn1 = new RendererModel(this, 64, 0); Corn1.setRotationPoint(1.5F, -5.0F, -15.0F); this.Corn1.setRotationPoint(0.5409F, 0.0F, 0.0F); CornGroup.addChild(Corn1); Corn1.cubeList.add(new ModelBox(Corn1, 52, 57, -3.0F, -3.0F, -4.0F, 3, 4, 3, 0.0F, true)); Corn2 = new RendererModel(this, 64, 28); Corn2.setRotationPoint(1.5F, -5.0F, -15.0F); this.Corn2.setRotationPoint(0.5409F, 0.0F, 0.0F); CornGroup.addChild(Corn2); Corn2.cubeList.add(new ModelBox(Corn2, 0, 0, -2.4F, -5.3F, -3.6F, 2, 3, 2, 0.0F, true)); Corn3 = new RendererModel(this, 96, 32); Corn3.setRotationPoint(1.5F, -5.0F, -15.0F); this.Corn3.setRotationPoint(0.5409F, 0.0F, 0.0F); CornGroup.addChild(Corn3); Corn3.cubeList.add(new ModelBox(Corn3, 0, 0, -1.8F, -8.1F, -3.2F, 1, 3, 1, 0.0F, true)); } protected void func_199047_a(RendererModel p_199047_1_) { RendererModel renderermodel = new RendererModel(this, 19, 16); renderermodel.addBox(0.55F, -13.0F, 4.0F, 2, 3, 1, -0.001F); RendererModel renderermodel1 = new RendererModel(this, 19, 16); renderermodel1.addBox(-2.55F, -13.0F, 4.0F, 2, 3, 1, -0.001F); p_199047_1_.addChild(renderermodel); p_199047_1_.addChild(renderermodel1); } }
  4. package net.batonfack.fantasymod.entities; import net.batonfack.fantasymod.init.FantasyModEntities; import net.minecraft.entity.EntityType; import net.minecraft.entity.passive.horse.HorseEntity; import net.minecraft.world.World; public class UnicornEntity extends HorseEntity { @SuppressWarnings("unchecked") public UnicornEntity(EntityType<? extends HorseEntity> type, World worldIn) { super((EntityType<? extends HorseEntity>) FantasyModEntities.UNICORN_ENTITY, worldIn); } }
  5. package net.batonfack.fantasymod.client.renders; import net.batonfack.fantasymod.FantasyMod; import net.batonfack.fantasymod.client.models.ModelUnicornWitoutAbstracHorse; import net.batonfack.fantasymod.entities.UnicornEntity; import net.minecraft.client.renderer.entity.EntityRenderer; import net.minecraft.client.renderer.entity.EntityRendererManager; import net.minecraft.client.renderer.entity.MobRenderer; import net.minecraft.util.ResourceLocation; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.fml.client.registry.IRenderFactory; @OnlyIn(Dist.CLIENT) public class UnicornEntityRender extends MobRenderer<UnicornEntity, ModelUnicornWitoutAbstracHorse<UnicornEntity>> { //public UnicornEntityRender(EntityRendererManager manager) { // super(manager, new UnicornEntityModel(0), 0f); //} private static ModelUnicornWitoutAbstracHorse<UnicornEntity> UnicornModel; private static float shadowOpaque = 0.0f; public UnicornEntityRender(EntityRendererManager manager, ModelUnicornWitoutAbstracHorse<UnicornEntity> UnicornModel, float p_i50961_3_) { super(manager, UnicornModel, p_i50961_3_); } @Override protected ResourceLocation getEntityTexture(UnicornEntity entity) { return FantasyMod.location("textures/entity/unicorn_entity.png"); } public static class RenderFactory implements IRenderFactory<UnicornEntity> { @Override public EntityRenderer<? super UnicornEntity> createRenderFor(EntityRendererManager manager) { return new UnicornEntityRender(manager, UnicornModel, shadowOpaque); } } }
  6. You did not say at any point that my model should extend ModelHorse. See the Screenshoot above (i get a error).
  7. Ok sorry, tomorrow can i show you the code, good night.
  8. ok, it work and it dont work. It work: The Horse spawn. It dont work: The Horse spawn but not with the texture i make, but with the classic Minecraft texture.
  9. The HorseModel need the AbstractHorse (sorry for all the words that i misspeled, i am bad in english)
  10. Ok, i made 2 types of ModelClasses, the first is the ModelUnicorn without the Abstract Horse Model and the second with it. i have tried with extending the HorseModel and i get this error.
  11. Who i should add this code(i arleady added it, but i think i added it to the wrong place)
  12. Ok, but i need to add the corn, then i should make a sort of my personalized model, or not? I have copied the HorseModel, changed his Name and added the corn.
  13. No, you have said that i should make that modelUnicorn extends ModelEntity and not ModelHorse, but i need the AbstractHorseEntity, else the gui, animations and etc. wont work and i should rewrite the code.
  14. Ok, thx, but i want make a horse, with horse animations and horse gui and etc. and i dont want write the code of AbstractHorse, i can copy, ok, but then?
  15. I have tried by copy the HorseModel, and i want add the three blocks, but i got this error(read above). Pls help.
  16. Sorry, i am a noob, but i get this error: Bound mismatch: The type UnicornEntityModel is not a valid substitude for the bounded parameter <M extends EntityModel>> of the type LivingRenderer<T,M>
  17. Wich exactly Parameters should i make in the addBox function?
  18. Hi, i want make a new dimension, but i dont have find Tutorials for the version 1.14.4. help.
  19. Ok, then i should import the mod with this plugin?
  20. Ok, normaly this is the last question. I cant find the Head Part Name, HELP
  21. Ok, thx, i will try it (i dont have know that exist a plugin of tabula for blockbench).
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.