• 0

    posted a message on Tutorial for Code mobs cubes

    ok so this prb was solved so im finishing this topic, thanks again!

    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    }now i notice a detail, my black monkey is a little bit smaller than my brown monkey now (witch i did not change yet), i wonder if its because of this:



    protected void preRenderCallback(EntityAgeable entitylivingbaseIn, float partialTickTime) {
    float f = 0.9375F; <-------------- 1) THIS LINE is the size of the adult?? like the black monkey is 93% of the brown monkey size?
    if (entitylivingbaseIn.getGrowingAge() < 0) {
    f = (float)((double)f * 0.5D); <---------------- 2) THIS tell the child will be 50% of the parents size?
    this.shadowSize = 0.25F;
    } else {
    this.shadowSize = 0.5F;
    }
    GlStateManager.scale(f, f, f); <----------------- 3) and what this do? f is a variable corretct?




    im getting excited now :D next step is learning Taming now :D

    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    YEEEEEEEEEEEEEEEEEEEH it worked! thank you SO much my friend, you are true teacher!

    im a biology professor too and i know how hard is to teach the ignorant on a subject how i am on java, thank you so much ok

    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    so i think i understand, you say to me remove the second customRender, the second on the file i add from the code you gave me:


    RenderLiving customRender = new RenderLiving<EntityAgeable>(Minecraft.getMinecraft().getRenderManager(), new mcreator_monkeyBlack.ModelMonkey(), 0) {
         
         protected ResourceLocation getEntityTexture(EntityAgeable par1Entity) {
              return new ResourceLocation("monkeyblack.png");
         }
    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    but the customRender IS the code you game me :/ im paying atention but i dont know how to do this at all, i dont know if you are telling me to make a second file or not anymore... i made what you told me, i put the second code over there... could you crlt+c then crlt+v what is wrong there so i can see better? thanks again!

    so trying to udnerstand here:


    this is the registerRender:

    public void registerRenderers() {
    		RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_monkeyBlack.ModelMonkey(), 0) {
    			protected ResourceLocation getEntityTexture(Entity par1Entity) {
    				return new ResourceLocation("monkeyblack.png");
    			}
    		};
    		RenderingRegistry.registerEntityRenderingHandler(mcreator_monkeyBlack.EntitymonkeyBlack.class, customRender);
    
    	}
    
    
    where is the variable , just the 'customRender' part or the entire LINE: RenderingRegistry.registerEntityRenderingHandler(mcreator_monkeyBlack.EntitymonkeyBlack.class, customRender);
    
    what i remove here ? and then i add the SECOND code from post 17 right?
    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    this is harder than i tought, i put the part there, it compiles no problem, yet the child is still the same size of parents :(


    i will put the mod code again below, maybe there is still something missing here:


    package mod.mcreator;
    
    import net.minecraftforge.fml.relauncher.SideOnly;
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.common.registry.EntityRegistry;
    import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
    import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLInitializationEvent;
    import net.minecraftforge.fml.client.registry.RenderingRegistry;
    
    import net.minecraft.world.biome.Biome;
    import net.minecraft.world.World;
    import net.minecraft.util.math.MathHelper;
    import net.minecraft.util.ResourceLocation;
    import net.minecraft.util.EnumHand;
    import net.minecraft.util.DamageSource;
    import net.minecraft.item.ItemStack;
    import net.minecraft.item.Item;
    import net.minecraft.init.Items;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.entity.passive.EntityAnimal;
    import net.minecraft.entity.effect.EntityLightningBolt;
    import net.minecraft.entity.ai.EntityAIWander;
    import net.minecraft.entity.ai.EntityAITempt;
    import net.minecraft.entity.ai.EntityAISwimming;
    import net.minecraft.entity.ai.EntityAIPanic;
    import net.minecraft.entity.ai.EntityAIMate;
    import net.minecraft.entity.ai.EntityAILookIdle;
    import net.minecraft.entity.ai.EntityAIFollowParent;
    import net.minecraft.entity.ai.EntityAIWatchClosest;
    import net.minecraft.entity.SharedMonsterAttributes;
    import net.minecraft.entity.EnumCreatureType;
    import net.minecraft.entity.EntityAgeable;
    import net.minecraft.entity.Entity;
    import net.minecraft.client.renderer.entity.RenderLiving;
    import net.minecraft.client.model.ModelRenderer;
    import net.minecraft.client.model.ModelBase;
    import net.minecraft.client.Minecraft;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.entity.EntityLiving;
    
    import net.minecraft.client.renderer.GlStateManager;
    import net.minecraft.entity.EntityLivingBase;
    import net.minecraft.entity.IEntityLivingData;
    
    
    import java.util.Random;
    import java.util.Iterator;
    import java.util.ArrayList;
    
    @SuppressWarnings("unchecked")
    public class mcreator_monkeyBlack {
    
    	public int mobid = 0;
    	public static Object instance;
    
    	public void load(FMLInitializationEvent event) {
    	}
    
    	public void generateNether(World world, Random random, int chunkX, int chunkZ) {
    	}
    
    	public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
    	}
    
    	public int addFuel(ItemStack fuel) {
    		return 0;
    	}
    
         
    
    	@SideOnly(Side.CLIENT)
    	public void registerRenderers() {
    		RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_monkeyBlack.ModelMonkey(), 0) {
    			protected ResourceLocation getEntityTexture(Entity par1Entity) {
    				return new ResourceLocation("monkeyblack.png");
    			}
    		};
    		RenderingRegistry.registerEntityRenderingHandler(mcreator_monkeyBlack.EntitymonkeyBlack.class, customRender);
    
    	}
    
    	public void serverLoad(FMLServerStartingEvent event) {
    	}
    
    	public void preInit(FMLPreInitializationEvent event) {
    		int entityID = MathHelper.getRandomUUID().hashCode();
    		mobid = entityID;
    		EntityRegistry.registerModEntity(mcreator_monkeyBlack.EntitymonkeyBlack.class, "monkeyBlack", entityID, instance, 64, 1, true, (51 << 16)
    				+ (51 << 8) + 51, (219 << 16) + (213 << 8) + 155);
    		EntityRegistry.addSpawn(mcreator_monkeyBlack.EntitymonkeyBlack.class, 6, 2, 8, EnumCreatureType.CREATURE,
    				Biome.REGISTRY.getObject(new ResourceLocation("jungle_hills")));
    
    	}
    
    	public static Biome[] clean(net.minecraft.util.registry.RegistryNamespaced<ResourceLocation, Biome> in) {
    		Iterator<Biome> itr = in.iterator();
    		ArrayList<Biome> ls = new ArrayList<Biome>();
    		while (itr.hasNext()) {
    			ls.add(itr.next());
    		}
    		return ls.toArray(new Biome[ls.size()]);
    	}
    
    	public static class EntitymonkeyBlack extends EntityAnimal {
    		World world = null;
    
    		public EntitymonkeyBlack(World var1) {
    			super(var1);
    			world = var1;
    			experienceValue = 4;
    			this.isImmuneToFire = false;
    			addRandomArmor();
    			setNoAI(!true);
    
                 this.tasks.addTask(0, new EntityAISwimming(this));
                 this.tasks.addTask(1, new EntityAIPanic(this, 1.0D));
                 this.tasks.addTask(2, new EntityAIMate(this, 0.7D));
                 this.tasks.addTask(3, new EntityAITempt(this, 0.9D, mcreator_wildBanana.block, false));
                 this.tasks.addTask(4, new EntityAIFollowParent(this, 0.9D));
                 this.tasks.addTask(5, new EntityAIWander(this, 1.0D));
                 this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
                 this.tasks.addTask(7, new EntityAILookIdle(this));
                 this.setSize(0.9F, 1.4F);
    
    		}
    
    		protected void applyEntityAttributes() {
    			super.applyEntityAttributes();
    			this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.5D);
    			this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(8D);
    			if (this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE) != null)
    				this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(0D);
    		}
    
    		protected void addRandomArmor() {
    
    		}
    
              RenderLiving customRender = new RenderLiving<EntityAgeable>(Minecraft.getMinecraft().getRenderManager(), new mcreator_monkeyBlack.ModelMonkey(), 0) {
         
         protected ResourceLocation getEntityTexture(EntityAgeable par1Entity) {
              return new ResourceLocation("monkeyblack.png");
         }
         
         protected void preRenderCallback(EntityAgeable entitylivingbaseIn, float partialTickTime) {
              float f = 0.9375F;
              if (entitylivingbaseIn.getGrowingAge() < 0) {
                   f = (float)((double)f * 0.5D);
                   this.shadowSize = 0.25F;
              } else {
                   this.shadowSize = 0.5F;
              }
              GlStateManager.scale(f, f, f);
         }    
         
         }; 
    	         
    
    		public EntitymonkeyBlack createChild(EntityAgeable ageable) {
    			return new EntitymonkeyBlack (world);
    		}
    
    		public float getEyeHeight() {
    			return this.isChild() ? this.height : 1.3F;
    		}
    
             
    
    		public boolean isBreedingItem(ItemStack stack) {
    			return stack != null && com.google.common.collect.Sets.newHashSet(new Item[]{mcreator_wildBanana.block,}).contains(stack.getItem());
    		}
    
             
    
    		protected void dropRareDrop(int par1) {
    			this.dropItem(new ItemStack(Items.LEATHER).getItem(), 1);
    		}
    
    		@Override
    		protected Item getDropItem() {
    			return new ItemStack(mcreator_monkeymeat.block).getItem();
    		}
    
    		@Override
    		protected net.minecraft.util.SoundEvent getAmbientSound() {
    			return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(
    					"TestEnvironmentMod:wizard.monkey.squirrel"));
    		}
    
    		@Override
    		protected net.minecraft.util.SoundEvent getHurtSound() {
    			return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(
    					"TestEnvironmentMod:wizard.monkey.hurt"));
    		}
    
    		@Override
    		protected net.minecraft.util.SoundEvent getDeathSound() {
    			return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(
    					"TestEnvironmentMod:wizard.monkey.death"));
    		}
    
    		@Override
    		public void onStruckByLightning(EntityLightningBolt entityLightningBolt) {
    			super.onStruckByLightning(entityLightningBolt);
    			int i = (int) this.posX;
    			int j = (int) this.posY;
    			int k = (int) this.posZ;
    			Entity entity = this;
    
    		}
    
    		@Override
    		public void fall(float l, float d) {
    			super.fall(l, d);
    			int i = (int) this.posX;
    			int j = (int) this.posY;
    			int k = (int) this.posZ;
    			super.fall(l, d);
    			Entity entity = this;
    
    		}
    
    		@Override
    		public void onDeath(DamageSource source) {
    			super.onDeath(source);
    			int i = (int) this.posX;
    			int j = (int) this.posY;
    			int k = (int) this.posZ;
    			Entity entity = this;
    
    		}
    
    		@Override
    		public boolean processInteract(EntityPlayer entity, EnumHand hand, ItemStack stack) {
    			super.processInteract(entity, hand, stack);
    			int i = (int) this.posX;
    			int j = (int) this.posY;
    			int k = (int) this.posZ;
    
    			return true;
    		}
    
    		@Override
    		protected float getSoundVolume() {
    			return 1.0F;
    		}
    
    	}
    
    	// Date: 20/11/2017 21:19:59
    	// Template version 1.1
    	// Java generated by Techne
    	// Keep in mind that you still need to fill in some blanks
    	// - ZeuX
    
     
    
    	public static class ModelMonkey extends ModelBase {
    		// fields
    		ModelRenderer head;
    		ModelRenderer body;
    		ModelRenderer armleft;
    		ModelRenderer armright;
    		ModelRenderer tail;
    		ModelRenderer leftleg;
    		ModelRenderer rightleg;
    		ModelRenderer tailbase;
    		ModelRenderer tailtip;
    		ModelRenderer coxaleft;
    		ModelRenderer canelaleft;
    		ModelRenderer footleft;
    		ModelRenderer coxaright;
    		ModelRenderer canelaright;
    		ModelRenderer footright;
    
    		public ModelMonkey() {
    			textureWidth = 64;
    			textureHeight = 32;
    
    			head = new ModelRenderer(this, 42, 2);
    			head.addBox(-2.5F, -5F, -3.5F, 5, 5, 5);
    			head.setRotationPoint(0.5F, 13F, -1F);
    			head.setTextureSize(64, 32);
    			head.mirror = true;
    			setRotation(head, 0F, 0F, 0F);
    			body = new ModelRenderer(this, 25, 2);
    			body.addBox(-1.5F, -2F, -1F, 4, 7, 3);
    			body.setRotationPoint(0F, 15F, -0.5F);
    			body.setTextureSize(64, 32);
    			body.mirror = true;
    			setRotation(body, 0.7853982F, 0F, 0F);
    			armleft = new ModelRenderer(this, 34, 16);
    			armleft.addBox(0F, 0F, -1F, 1, 10, 1);
    			armleft.setRotationPoint(2.5F, 14F, -1F);
    			armleft.setTextureSize(64, 32);
    			armleft.mirror = true;
    			setRotation(armleft, -0.3490659F, 0F, 0F);
    			armright = new ModelRenderer(this, 40, 16);
    			armright.addBox(-1F, 0F, -1F, 1, 10, 1);
    			armright.setRotationPoint(-1.5F, 14F, -1F);
    			armright.setTextureSize(64, 32);
    			armright.mirror = true;
    			setRotation(armright, -0.3490659F, 0F, 0F);
    			tail = new ModelRenderer(this, "tail");
    			tail.setRotationPoint(0.5F, 16F, 4F);
    			setRotation(tail, 0F, 0F, 0F);
    			tail.mirror = true;
    			tailbase = new ModelRenderer(this, 16, 4);
    			tailbase.addBox(-0.5F, -12.5F, 9.5F, 1, 5, 1);
    			tailbase.setRotationPoint(0F, 0F, -13F);
    			tailbase.setTextureSize(64, 32);
    			tailbase.mirror = true;
    			setRotation(tailbase, -0.7853982F, 0F, 0F);
    			tailtip = new ModelRenderer(this, 11, 4);
    			tailtip.addBox(-0.5F, -5F, -3.5F, 1, 5, 1);
    			tailtip.setRotationPoint(0F, -2F, 6F);
    			tailtip.setTextureSize(64, 32);
    			tailtip.mirror = true;
    			setRotation(tailtip, 0.1745329F, 0F, 0F);
    			leftleg = new ModelRenderer(this, "leftleg");
    			leftleg.setRotationPoint(2F, 17F, 2F);
    			setRotation(leftleg, 0F, 0F, 0F);
    			leftleg.mirror = true;
    			coxaleft = new ModelRenderer(this, 2, 14);
    			coxaleft.addBox(-1F, -11F, 10F, 2, 5, 2);
    			coxaleft.setRotationPoint(0F, 0.5F, -14.5F);
    			coxaleft.setTextureSize(64, 32);
    			coxaleft.mirror = true;
    			setRotation(coxaleft, -0.7853982F, 0F, 0.0174533F);
    			canelaleft = new ModelRenderer(this, 12, 14);
    			canelaleft.addBox(-1F, -6F, -13F, 2, 4, 1);
    			canelaleft.setRotationPoint(0F, -1.0F, 10.5F);
    			canelaleft.setTextureSize(64, 32);
    			canelaleft.mirror = true;
    			setRotation(canelaleft, 0.7853982F, 0F, 0F);
    			footleft = new ModelRenderer(this, 20, 14);
    			footleft.addBox(-1F, 0F, -2F, 2, 1, 3);
    			footleft.setRotationPoint(0F, 6F, -1F);
    			footleft.setTextureSize(64, 32);
    			footleft.mirror = true;
    			setRotation(footleft, 0F, 0F, 0F);
    			rightleg = new ModelRenderer(this, "rightleg");
    			rightleg.setRotationPoint(-1F, 17F, 2F);
    			setRotation(rightleg, 0F, 0F, 0F);
    			rightleg.mirror = true;
    			coxaright = new ModelRenderer(this, 2, 23);
    			coxaright.addBox(-1F, -11F, 10F, 2, 5, 2);
    			coxaright.setRotationPoint(0F, 0.5F, -14.5F);
    			coxaright.setTextureSize(64, 32);
    			coxaright.mirror = true;
    			setRotation(coxaright, -0.7853982F, 0F, 0F);
    			canelaright = new ModelRenderer(this, 12, 23);
    			canelaright.addBox(-1F, -6F, -13F, 2, 4, 1);
    			canelaright.setRotationPoint(0F, -1.0F, 10.5F);
    			canelaright.setTextureSize(64, 32);
    			canelaright.mirror = true;
    			setRotation(canelaright, 0.7853982F, 0F, 0F);
    			footright = new ModelRenderer(this, 20, 23);
    			footright.addBox(-1F, 0F, -2F, 2, 1, 3);
    			footright.setRotationPoint(0F, 6F, -1F);
    			footright.setTextureSize(64, 32);
    			footright.mirror = true;
    			setRotation(footright, 0F, 0F, 0F);
    			tail.addChild(tailbase);
    			tail.addChild(tailtip);
    			leftleg.addChild(coxaleft);
    			leftleg.addChild(canelaleft);
    			leftleg.addChild(footleft);
    			rightleg.addChild(coxaright);
    			rightleg.addChild(canelaright);
    			rightleg.addChild(footright);
    		}
    
             
    
    		public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
    			super.render(entity, f, f1, f2, f3, f4, f5);
    			setRotationAngles(f, f1, f2, f3, f4, f5, entity);
    			head.render(f5);
    			body.render(f5);
    			armleft.render(f5);
    			armright.render(f5);
    			tail.render(f5);
    			leftleg.render(f5);
    			rightleg.render(f5);
    		}
    
    		private void setRotation(ModelRenderer model, float x, float y, float z) {
    			model.rotateAngleX = x;
    			model.rotateAngleY = y;
    			model.rotateAngleZ = z;
    		}
    
    		public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {
    			super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
    			this.head.rotateAngleY = f3 / (180F / (float) Math.PI);
    			this.head.rotateAngleX = f4 / (180F / (float) Math.PI);
    			this.leftleg.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
    			this.rightleg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.4F * f1;
    			this.armleft.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F -0.3490659F;
    			this.armright.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F -0.3490659F;
    			this.tail.rotateAngleY = f3 / (180F / (float) Math.PI);
    		}
    
             
    
    	}
    
    }
    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    so i dont need to create another file? thats great i guess,



    so all i do is to replace the part i show you from the code on post 12 for the second code u gave me on post 17, and i forget the first part you gave on post 17, correct?

    Posted in: Modification Development
  • 0

    posted a message on Zoo and Wild Animals Mod: African Adventure Update

    about the mod, congratulations my friend, you manage to capture the minecraft essence on those mobs, they are super amazing, i know that some of those mobs where made over others, but its all good, i love the result and also i love the fact this mod complement Mo Creatures, you focus on what that mod miss, amazing! again im here for helping you if you need!

    Posted in: WIP Mods
  • 0

    posted a message on Zoo and Wild Animals Mod: African Adventure Update

    im offering myself to help you guys, i was able to (as a test) bring 1 of your mobs to 1.10 enviroment test world, if you guys want i can help you guys make a 1.10 version. send me a message here if you guys need it, thank you

    Posted in: WIP Mods
  • 0

    posted a message on Tutorial for Code mobs cubes

    hum should i remove this fromt this other (model/entity) file?


    public EntitymonkeyBlack createChild(EntityAgeable ageable) {public EntitymonkeyBlack createChild(EntityAgeable ageable) { return new EntitymonkeyBlack (world); }
    public float getEyeHeight() { return this.isChild() ? this.height : 1.3F; }

    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    ok so create this new class, it compiles ok but nothing changes, baby is still an adult, what else should i add on this new file? its like this now:


    public class MonkeyBlackRender {
    RenderLiving customRender = new RenderLiving<EntityAgeable>(Minecraft.getMinecraft().getRenderManager(), new mcreator_monkeyBlack.ModelMonkey(), 0) {
         
         protected ResourceLocation getEntityTexture(EntityAgeable par1Entity) {
              return new ResourceLocation("monkeyblack.png");
         }
         
         protected void preRenderCallback(EntityAgeable entitylivingbaseIn, float partialTickTime) {
              float f = 0.9375F;
              if (entitylivingbaseIn.getGrowingAge() < 0) {
                   f = (float)((double)f * 0.5D);
                   this.shadowSize = 0.25F;
              } else {
                   this.shadowSize = 0.5F;
              }
              GlStateManager.scale(f, f, f);
         }    
         
    }; 
    }
    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    oh i think i start to understand,


    so to create this new inherit class file, i click on New Class, ok its a black file now, then i put the second part of the coding you post only?


    also btw im using MCreator only to learn java, i tried to learn solo from zero wont work i think im not that smart lol, but with Mcreator and people like you helping im really learning so thank you again!


    i want to understand, so 2 classes here: RenderLiving (the one i need) and Render (the one i have) right?

    im creating the new .class here, can i give it any name? or a name it will link to the other file?

    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    Ok so what i did was compilte the hole thing to a test mod, open the class files on a decompiler and post here, it create 3 files per mod, but wont say witch one is what, like this:


    FILE 1: mcreator_monkeyBlack$1


    import net.minecraft.client.model.ModelBase;
    import net.minecraft.client.renderer.entity.RenderLiving;
    import net.minecraft.client.renderer.entity.RenderManager;
    import net.minecraft.entity.Entity;
    import net.minecraft.util.ResourceLocation;
    
    class mcreator_monkeyBlack$1
      extends RenderLiving
    {
      mcreator_monkeyBlack$1(mcreator_monkeyBlack this$0, RenderManager x0, ModelBase x1, float x2)
      {
        super(x0, x1, x2);
      }
      
      protected ResourceLocation func_110775_a(Entity par1Entity)
      {
        return new ResourceLocation("monkeyblack.png");
      }
    }

    FILE 2: mcreator_monkeyBlack$ModelMonkey


    import net.minecraft.client.model.ModelBase;
    import net.minecraft.client.model.ModelRenderer;
    import net.minecraft.entity.Entity;
    import net.minecraft.util.math.MathHelper;
    
    public class mcreator_monkeyBlack$ModelMonkey
      extends ModelBase
    {
      ModelRenderer head;
      ModelRenderer body;
      ModelRenderer armleft;
      ModelRenderer armright;
      ModelRenderer tail;
      ModelRenderer leftleg;
      ModelRenderer rightleg;
      ModelRenderer tailbase;
      ModelRenderer tailtip;
      ModelRenderer coxaleft;
      ModelRenderer canelaleft;
      ModelRenderer footleft;
      ModelRenderer coxaright;
      ModelRenderer canelaright;
      ModelRenderer footright;
      
      public mcreator_monkeyBlack$ModelMonkey()
      {
        this.field_78090_t = 64;
        this.field_78089_u = 32;
        
        this.head = new ModelRenderer(this, 42, 2);
        this.head.func_78789_a(-2.5F, -5.0F, -3.5F, 5, 5, 5);
        this.head.func_78793_a(0.5F, 13.0F, -1.0F);
        this.head.func_78787_b(64, 32);
        this.head.field_78809_i = true;
        setRotation(this.head, 0.0F, 0.0F, 0.0F);
        this.body = new ModelRenderer(this, 25, 2);
        this.body.func_78789_a(-1.5F, -2.0F, -1.0F, 4, 7, 3);
        this.body.func_78793_a(0.0F, 15.0F, -0.5F);
        this.body.func_78787_b(64, 32);
        this.body.field_78809_i = true;
        setRotation(this.body, 0.7853982F, 0.0F, 0.0F);
        this.armleft = new ModelRenderer(this, 34, 16);
        this.armleft.func_78789_a(0.0F, 0.0F, -1.0F, 1, 10, 1);
        this.armleft.func_78793_a(2.5F, 14.0F, -1.0F);
        this.armleft.func_78787_b(64, 32);
        this.armleft.field_78809_i = true;
        setRotation(this.armleft, -0.3490659F, 0.0F, 0.0F);
        this.armright = new ModelRenderer(this, 40, 16);
        this.armright.func_78789_a(-1.0F, 0.0F, -1.0F, 1, 10, 1);
        this.armright.func_78793_a(-1.5F, 14.0F, -1.0F);
        this.armright.func_78787_b(64, 32);
        this.armright.field_78809_i = true;
        setRotation(this.armright, -0.3490659F, 0.0F, 0.0F);
        this.tail = new ModelRenderer(this, "tail");
        this.tail.func_78793_a(0.5F, 16.0F, 4.0F);
        setRotation(this.tail, 0.0F, 0.0F, 0.0F);
        this.tail.field_78809_i = true;
        this.tailbase = new ModelRenderer(this, 16, 4);
        this.tailbase.func_78789_a(-0.5F, -12.5F, 9.5F, 1, 5, 1);
        this.tailbase.func_78793_a(0.0F, 0.0F, -13.0F);
        this.tailbase.func_78787_b(64, 32);
        this.tailbase.field_78809_i = true;
        setRotation(this.tailbase, -0.7853982F, 0.0F, 0.0F);
        this.tailtip = new ModelRenderer(this, 11, 4);
        this.tailtip.func_78789_a(-0.5F, -5.0F, -3.5F, 1, 5, 1);
        this.tailtip.func_78793_a(0.0F, -2.0F, 6.0F);
        this.tailtip.func_78787_b(64, 32);
        this.tailtip.field_78809_i = true;
        setRotation(this.tailtip, 0.1745329F, 0.0F, 0.0F);
        this.leftleg = new ModelRenderer(this, "leftleg");
        this.leftleg.func_78793_a(2.0F, 17.0F, 2.0F);
        setRotation(this.leftleg, 0.0F, 0.0F, 0.0F);
        this.leftleg.field_78809_i = true;
        this.coxaleft = new ModelRenderer(this, 2, 14);
        this.coxaleft.func_78789_a(-1.0F, -11.0F, 10.0F, 2, 5, 2);
        this.coxaleft.func_78793_a(0.0F, 0.5F, -14.5F);
        this.coxaleft.func_78787_b(64, 32);
        this.coxaleft.field_78809_i = true;
        setRotation(this.coxaleft, -0.7853982F, 0.0F, 0.0174533F);
        this.canelaleft = new ModelRenderer(this, 12, 14);
        this.canelaleft.func_78789_a(-1.0F, -6.0F, -13.0F, 2, 4, 1);
        this.canelaleft.func_78793_a(0.0F, -1.0F, 10.5F);
        this.canelaleft.func_78787_b(64, 32);
        this.canelaleft.field_78809_i = true;
        setRotation(this.canelaleft, 0.7853982F, 0.0F, 0.0F);
        this.footleft = new ModelRenderer(this, 20, 14);
        this.footleft.func_78789_a(-1.0F, 0.0F, -2.0F, 2, 1, 3);
        this.footleft.func_78793_a(0.0F, 6.0F, -1.0F);
        this.footleft.func_78787_b(64, 32);
        this.footleft.field_78809_i = true;
        setRotation(this.footleft, 0.0F, 0.0F, 0.0F);
        this.rightleg = new ModelRenderer(this, "rightleg");
        this.rightleg.func_78793_a(-1.0F, 17.0F, 2.0F);
        setRotation(this.rightleg, 0.0F, 0.0F, 0.0F);
        this.rightleg.field_78809_i = true;
        this.coxaright = new ModelRenderer(this, 2, 23);
        this.coxaright.func_78789_a(-1.0F, -11.0F, 10.0F, 2, 5, 2);
        this.coxaright.func_78793_a(0.0F, 0.5F, -14.5F);
        this.coxaright.func_78787_b(64, 32);
        this.coxaright.field_78809_i = true;
        setRotation(this.coxaright, -0.7853982F, 0.0F, 0.0F);
        this.canelaright = new ModelRenderer(this, 12, 23);
        this.canelaright.func_78789_a(-1.0F, -6.0F, -13.0F, 2, 4, 1);
        this.canelaright.func_78793_a(0.0F, -1.0F, 10.5F);
        this.canelaright.func_78787_b(64, 32);
        this.canelaright.field_78809_i = true;
        setRotation(this.canelaright, 0.7853982F, 0.0F, 0.0F);
        this.footright = new ModelRenderer(this, 20, 23);
        this.footright.func_78789_a(-1.0F, 0.0F, -2.0F, 2, 1, 3);
        this.footright.func_78793_a(0.0F, 6.0F, -1.0F);
        this.footright.func_78787_b(64, 32);
        this.footright.field_78809_i = true;
        setRotation(this.footright, 0.0F, 0.0F, 0.0F);
        this.tail.func_78792_a(this.tailbase);
        this.tail.func_78792_a(this.tailtip);
        this.leftleg.func_78792_a(this.coxaleft);
        this.leftleg.func_78792_a(this.canelaleft);
        this.leftleg.func_78792_a(this.footleft);
        this.rightleg.func_78792_a(this.coxaright);
        this.rightleg.func_78792_a(this.canelaright);
        this.rightleg.func_78792_a(this.footright);
      }
      
      public void func_78088_a(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
      {
        super.func_78088_a(entity, f, f1, f2, f3, f4, f5);
        func_78087_a(f, f1, f2, f3, f4, f5, entity);
        this.head.func_78785_a(f5);
        this.body.func_78785_a(f5);
        this.armleft.func_78785_a(f5);
        this.armright.func_78785_a(f5);
        this.tail.func_78785_a(f5);
        this.leftleg.func_78785_a(f5);
        this.rightleg.func_78785_a(f5);
      }
      
      private void setRotation(ModelRenderer model, float x, float y, float z)
      {
        model.field_78795_f = x;
        model.field_78796_g = y;
        model.field_78808_h = z;
      }
      
      public void func_78087_a(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
      {
        super.func_78087_a(f, f1, f2, f3, f4, f5, entity);
        this.head.field_78796_g = (f3 / 57.295776F);
        this.head.field_78795_f = (f4 / 57.295776F);
        this.leftleg.field_78795_f = (MathHelper.func_76134_b(f * 0.6662F) * 1.4F * f1);
        this.rightleg.field_78795_f = (MathHelper.func_76134_b(f * 0.6662F + 3.1415927F) * 1.4F * f1);
        this.armleft.field_78795_f = (MathHelper.func_76134_b(f * 0.6662F) * 2.0F * f1 * 0.5F - 0.3490659F);
        this.armright.field_78795_f = (MathHelper.func_76134_b(f * 0.6662F + 3.1415927F) * 2.0F * f1 * 0.5F - 0.3490659F);
        this.tail.field_78796_g = (f3 / 57.295776F);
      }
    }

    FILE 3: mcreator_monkeyBlack


    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.Random;
    import java.util.UUID;
    import net.minecraft.client.Minecraft;
    import net.minecraft.client.renderer.entity.RenderLiving;
    import net.minecraft.entity.EnumCreatureType;
    import net.minecraft.item.ItemStack;
    import net.minecraft.util.ResourceLocation;
    import net.minecraft.util.math.MathHelper;
    import net.minecraft.util.registry.RegistryNamespaced;
    import net.minecraft.world.World;
    import net.minecraft.world.biome.Biome;
    import net.minecraftforge.fml.client.registry.RenderingRegistry;
    import net.minecraftforge.fml.common.event.FMLInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
    import net.minecraftforge.fml.common.registry.EntityRegistry;
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.relauncher.SideOnly;
    
    public class mcreator_monkeyBlack
    {
      public int mobid = 0;
      public static Object instance;
      
      public void load(FMLInitializationEvent event) {}
      
      public void generateNether(World world, Random random, int chunkX, int chunkZ) {}
      
      public void generateSurface(World world, Random random, int chunkX, int chunkZ) {}
      
      public int addFuel(ItemStack fuel)
      {
        return 0;
      }
      
      @SideOnly(Side.CLIENT)
      public void registerRenderers()
      {
        RenderLiving customRender = new mcreator_monkeyBlack.1(this, Minecraft.func_71410_x().func_175598_ae(), new mcreator_monkeyBlack.ModelMonkey(), 0.0F);
        
        RenderingRegistry.registerEntityRenderingHandler(mcreator_monkeyBlack.EntitymonkeyBlack.class, customRender);
      }
      
      public void serverLoad(FMLServerStartingEvent event) {}
      
      public void preInit(FMLPreInitializationEvent event)
      {
        int entityID = MathHelper.func_188210_a().hashCode();
        this.mobid = entityID;
        EntityRegistry.registerModEntity(mcreator_monkeyBlack.EntitymonkeyBlack.class, "monkeyBlack", entityID, instance, 64, 1, true, 3355443, 14407067);
        
        EntityRegistry.addSpawn(mcreator_monkeyBlack.EntitymonkeyBlack.class, 6, 2, 8, EnumCreatureType.CREATURE, new Biome[] {
          (Biome)Biome.field_185377_q.func_82594_a(new ResourceLocation("jungle_hills")) });
      }
      
      public static Biome[] clean(RegistryNamespaced<ResourceLocation, Biome> in)
      {
        Iterator<Biome> itr = in.iterator();
        ArrayList<Biome> ls = new ArrayList();
        while (itr.hasNext()) {
          ls.add(itr.next());
        }
        return (Biome[])ls.toArray(new Biome[ls.size()]);
      }
    }
    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    im so confused now, i post there all the file i have acess here, if the codes to render the mode are there (above) how come its not a renderer class? is there a way to create more than a file for 1 mob on MCreator? or if it auto-creates, how i show to you?


    thanks again!

    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    hum i remove the 2 shadowSize lines, it compiled Ok, but ingame, Child still born full grow :(

    Posted in: Modification Development
  • To post a comment, please .