• Recently Browsing

    No registered users viewing this page.

  • Posts

    • @Draco18s I understand. Have a good day, and thank you for giving the time to help me!   I'll just post the working code here just to help any future users that happend to stumble across this thread: @Override public void addInformation(ItemStack stack, World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) { super.addInformation(stack, worldIn, tooltip, flagIn); tooltip.add(ITextComponent.func_241827_a_("'Lore'em Ipsum! Ha!")); }
    • Do you have a repository? I need to see all the code
    • package com.relaxingleg.tellytubbiemod.entities; import net.minecraft.entity.CreatureEntity; import net.minecraft.entity.EntityType; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.goal.*; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.world.World; public class TinkyWinkyEntity extends CreatureEntity { public TinkyWinkyEntity(EntityType<? extends CreatureEntity> type, World worldIn) { super(type, worldIn); } @Override protected void registerGoals() { super.registerGoals(); this.goalSelector.addGoal(0, new SwimGoal(this)); this.goalSelector.addGoal(1, new PanicGoal(this, 1.25d)); this.goalSelector.addGoal(2, new LookAtGoal(this, PlayerEntity.class, 6.0f)); this.goalSelector.addGoal(3, new WaterAvoidingRandomWalkingGoal(this, 1.0d)); this.goalSelector.addGoal(4, new LookRandomlyGoal(this)); } @Override protected void registerAttributes() { super.registerAttributes(); this.getAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(20); this.getAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.23d); } } /\/\/\ the entity class   package com.relaxingleg.tellytubbiemod.client.model; import com.mojang.blaze3d.matrix.MatrixStack; import com.mojang.blaze3d.vertex.IVertexBuilder; import com.relaxingleg.tellytubbiemod.entities.TinkyWinkyEntity; import net.minecraft.client.renderer.entity.model.EntityModel; import net.minecraft.client.renderer.model.ModelRenderer; import net.minecraft.entity.Entity; public class TinkyWinkyModel<T extends TinkyWinkyEntity> extends EntityModel<T> { private final ModelRenderer lowerleg; private final ModelRenderer left; private final ModelRenderer right2; private final ModelRenderer upperleg; private final ModelRenderer left2; private final ModelRenderer right; private final ModelRenderer body; private final ModelRenderer head; private final ModelRenderer arms; private final ModelRenderer left3; private final ModelRenderer right3; private final ModelRenderer ears; private final ModelRenderer left4; private final ModelRenderer right4; public TinkyWinkyModel() { textureWidth = 128; textureHeight = 128; lowerleg = new ModelRenderer(this); lowerleg.setRotationPoint(0.0F, 24.0F, 0.0F); left = new ModelRenderer(this); left.setRotationPoint(-1.0F, 0.0F, 0.0F); lowerleg.addChild(left); left.setTextureOffset(85, 12).addBox(-6.0F, -1.0F, -4.0F, 4.0F, 1.0F, 5.0F, 0.0F, false); left.setTextureOffset(86, 18).addBox(-6.0F, -4.0F, -3.0F, 4.0F, 3.0F, 4.0F, 0.0F, false); left.setTextureOffset(38, 32).addBox(-5.0F, -1.0F, -5.0F, 2.0F, 1.0F, 1.0F, 0.0F, false); left.setTextureOffset(8, 15).addBox(-5.0F, -4.0F, -4.0F, 2.0F, 3.0F, 1.0F, 0.0F, false); right2 = new ModelRenderer(this); right2.setRotationPoint(1.0F, 0.0F, 0.0F); lowerleg.addChild(right2); right2.setTextureOffset(8, 0).addBox(3.0F, -4.0F, -4.0F, 2.0F, 3.0F, 1.0F, 0.0F, false); right2.setTextureOffset(46, 37).addBox(2.0F, -1.0F, -4.0F, 4.0F, 1.0F, 5.0F, 0.0F, false); right2.setTextureOffset(34, 30).addBox(3.0F, -1.0F, -5.0F, 2.0F, 1.0F, 1.0F, 0.0F, false); right2.setTextureOffset(86, 0).addBox(2.0F, -4.0F, -3.0F, 4.0F, 3.0F, 4.0F, 0.0F, false); upperleg = new ModelRenderer(this); upperleg.setRotationPoint(0.0F, 24.0F, 0.0F); left2 = new ModelRenderer(this); left2.setRotationPoint(-1.0F, 0.0F, 0.0F); upperleg.addChild(left2); left2.setTextureOffset(48, 86).addBox(-6.0F, -9.0F, -3.0F, 4.0F, 5.0F, 4.0F, 0.0F, false); right = new ModelRenderer(this); right.setRotationPoint(1.0F, 0.0F, 0.0F); upperleg.addChild(right); right.setTextureOffset(76, 36).addBox(2.0F, -9.0F, -3.0F, 4.0F, 5.0F, 4.0F, 0.0F, false); body = new ModelRenderer(this); body.setRotationPoint(0.0F, 24.0F, 0.0F); body.setTextureOffset(55, 55).addBox(-7.0F, -25.0F, -3.0F, 14.0F, 16.0F, 5.0F, 0.0F, false); body.setTextureOffset(61, 76).addBox(-7.0F, -25.0F, 2.0F, 14.0F, 13.0F, 1.0F, 0.0F, false); body.setTextureOffset(0, 76).addBox(-7.0F, -25.0F, 3.0F, 14.0F, 11.0F, 2.0F, 0.0F, false); head = new ModelRenderer(this); head.setRotationPoint(0.0F, 24.0F, 0.0F); head.setTextureOffset(0, 15).addBox(-7.0F, -26.0F, -7.0F, 14.0F, 1.0F, 14.0F, 0.0F, false); head.setTextureOffset(76, 34).addBox(-7.0F, -26.0F, -8.0F, 14.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(32, 62).addBox(-8.0F, -26.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false); head.setTextureOffset(60, 53).addBox(-7.0F, -26.0F, 7.0F, 14.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(16, 61).addBox(7.0F, -26.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false); head.setTextureOffset(0, 25).addBox(7.0F, -27.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(56, 17).addBox(-7.0F, -42.0F, -9.0F, 14.0F, 16.0F, 1.0F, 0.0F, false); head.setTextureOffset(0, 23).addBox(-8.0F, -27.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(0, 17).addBox(-8.0F, -27.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(56, 0).addBox(-7.0F, -42.0F, 8.0F, 14.0F, 16.0F, 1.0F, 0.0F, false); head.setTextureOffset(0, 15).addBox(7.0F, -27.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(30, 30).addBox(-9.0F, -42.0F, -7.0F, 1.0F, 16.0F, 14.0F, 0.0F, false); head.setTextureOffset(0, 30).addBox(8.0F, -42.0F, -7.0F, 1.0F, 16.0F, 14.0F, 0.0F, false); head.setTextureOffset(8, 89).addBox(-9.0F, -41.0F, -8.0F, 1.0F, 14.0F, 1.0F, 0.0F, false); head.setTextureOffset(4, 89).addBox(-8.0F, -41.0F, -9.0F, 1.0F, 14.0F, 1.0F, 0.0F, false); head.setTextureOffset(0, 89).addBox(7.0F, -41.0F, -9.0F, 1.0F, 14.0F, 1.0F, 0.0F, false); head.setTextureOffset(48, 60).addBox(7.0F, -41.0F, 8.0F, 1.0F, 14.0F, 1.0F, 0.0F, false); head.setTextureOffset(40, 60).addBox(-8.0F, -41.0F, 8.0F, 1.0F, 14.0F, 1.0F, 0.0F, false); head.setTextureOffset(36, 60).addBox(-9.0F, -41.0F, 7.0F, 1.0F, 14.0F, 1.0F, 0.0F, false); head.setTextureOffset(46, 15).addBox(-9.0F, -40.0F, -9.0F, 1.0F, 12.0F, 1.0F, 0.0F, false); head.setTextureOffset(46, 0).addBox(8.0F, -40.0F, -9.0F, 1.0F, 12.0F, 1.0F, 0.0F, false); head.setTextureOffset(42, 15).addBox(-9.0F, -40.0F, 8.0F, 1.0F, 12.0F, 1.0F, 0.0F, false); head.setTextureOffset(42, 0).addBox(8.0F, -40.0F, 8.0F, 1.0F, 12.0F, 1.0F, 0.0F, false); head.setTextureOffset(10, 12).addBox(8.0F, -41.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(0, 30).addBox(8.0F, -40.0F, -8.0F, 1.0F, 13.0F, 1.0F, 0.0F, false); head.setTextureOffset(32, 60).addBox(8.0F, -41.0F, 7.0F, 1.0F, 14.0F, 1.0F, 0.0F, false); head.setTextureOffset(0, 10).addBox(-8.0F, -42.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(0, 8).addBox(7.0F, -42.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(0, 2).addBox(-8.0F, -42.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(0, 0).addBox(7.0F, -42.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(60, 34).addBox(-8.0F, -43.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false); head.setTextureOffset(60, 51).addBox(-7.0F, -43.0F, 7.0F, 14.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(0, 60).addBox(7.0F, -43.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false); head.setTextureOffset(60, 49).addBox(-7.0F, -43.0F, -8.0F, 14.0F, 1.0F, 1.0F, 0.0F, false); head.setTextureOffset(0, 0).addBox(-7.0F, -44.0F, -7.0F, 14.0F, 1.0F, 14.0F, 0.0F, false); head.setTextureOffset(6, 8).addBox(-1.0F, -46.0F, -1.0F, 2.0F, 2.0F, 2.0F, 0.0F, false); head.setTextureOffset(16, 60).addBox(2.0F, -49.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false); head.setTextureOffset(0, 60).addBox(-3.0F, -48.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false); head.setTextureOffset(59, 37).addBox(-4.0F, -49.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false); head.setTextureOffset(48, 26).addBox(0.0F, -47.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false); head.setTextureOffset(48, 11).addBox(1.0F, -48.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false); head.setTextureOffset(46, 30).addBox(-2.0F, -47.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false); head.setTextureOffset(28, 30).addBox(3.0F, -50.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false); head.setTextureOffset(6, 23).addBox(-5.0F, -50.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false); head.setTextureOffset(46, 34).addBox(-5.0F, -51.0F, -1.0F, 10.0F, 1.0F, 2.0F, 0.0F, false); arms = new ModelRenderer(this); arms.setRotationPoint(0.0F, 24.0F, 0.0F); left3 = new ModelRenderer(this); left3.setRotationPoint(-24.0F, 0.0F, 0.0F); arms.addChild(left3); left3.setTextureOffset(16, 30).addBox(12.0F, -19.0F, -2.0F, 4.0F, 10.0F, 4.0F, 0.0F, false); left3.setTextureOffset(0, 0).addBox(15.0F, -23.0F, -2.0F, 2.0F, 4.0F, 4.0F, 0.0F, false); left3.setTextureOffset(4, 30).addBox(14.0F, -22.0F, -2.0F, 1.0F, 3.0F, 4.0F, 0.0F, false); left3.setTextureOffset(0, 8).addBox(13.0F, -21.0F, -2.0F, 1.0F, 2.0F, 4.0F, 0.0F, false); left3.setTextureOffset(4, 37).addBox(12.0F, -20.0F, -2.0F, 1.0F, 1.0F, 4.0F, 0.0F, false); right3 = new ModelRenderer(this); right3.setRotationPoint(0.0F, 0.0F, 0.0F); arms.addChild(right3); right3.setTextureOffset(0, 15).addBox(7.0F, -23.0F, -2.0F, 2.0F, 4.0F, 4.0F, 0.0F, false); right3.setTextureOffset(32, 32).addBox(9.0F, -22.0F, -2.0F, 1.0F, 3.0F, 4.0F, 0.0F, false); right3.setTextureOffset(0, 23).addBox(10.0F, -21.0F, -2.0F, 1.0F, 2.0F, 4.0F, 0.0F, false); right3.setTextureOffset(32, 39).addBox(11.0F, -20.0F, -2.0F, 1.0F, 1.0F, 4.0F, 0.0F, false); right3.setTextureOffset(32, 77).addBox(8.0F, -19.0F, -2.0F, 4.0F, 10.0F, 4.0F, 0.0F, false); ears = new ModelRenderer(this); ears.setRotationPoint(0.0F, 24.0F, 0.0F); left4 = new ModelRenderer(this); left4.setRotationPoint(0.0F, 0.0F, 0.0F); ears.addChild(left4); right4 = new ModelRenderer(this); right4.setRotationPoint(0.0F, 0.0F, 0.0F); ears.addChild(right4); } @Override public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha){ lowerleg.render(matrixStack, buffer, packedLight, packedOverlay); upperleg.render(matrixStack, buffer, packedLight, packedOverlay); body.render(matrixStack, buffer, packedLight, packedOverlay); head.render(matrixStack, buffer, packedLight, packedOverlay); arms.render(matrixStack, buffer, packedLight, packedOverlay); ears.render(matrixStack, buffer, packedLight, packedOverlay); } public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) { modelRenderer.rotateAngleX = x; modelRenderer.rotateAngleY = y; modelRenderer.rotateAngleZ = z; } @Override public void setRotationAngles(T entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { } } /\/\/\ the model class package com.relaxingleg.tellytubbiemod.client.render; import com.relaxingleg.tellytubbiemod.TellyTubbieMod; import com.relaxingleg.tellytubbiemod.client.model.TinkyWinkyModel; import com.relaxingleg.tellytubbiemod.entities.TinkyWinkyEntity; import net.minecraft.client.renderer.entity.EntityRendererManager; import net.minecraft.client.renderer.entity.MobRenderer; import net.minecraft.util.ResourceLocation; public class TinkyWinkyRender extends MobRenderer<TinkyWinkyEntity, TinkyWinkyModel<TinkyWinkyEntity>> { protected static final ResourceLocation TEXTURE = new ResourceLocation(TellyTubbieMod.MOD_ID, "textures/entity/tinkywinky.png"); public TinkyWinkyRender(EntityRendererManager renderManagerIn) { super(renderManagerIn, new TinkyWinkyModel<>(), 1.0f); } @Override public ResourceLocation getEntityTexture(TinkyWinkyEntity entity) { return null; } } /\/\/\ the render class @SubscribeEvent public static void onClientSetup(FMLClientSetupEvent event) { RenderingRegistry.registerEntityRenderingHandler(ModEntityTypes.TINKYWINKY.get(), TinkyWinkyRender::new); } } /\/\/\ Where i registered the entity renderer
    • I'm making a mod to make hypixel skyblock players life a bit easier ig and this would save a bunch of time to everyone
  • Topics

  • Who's Online (See full list)