• 0

    posted a message on Tutorial for Code mobs cubes
    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() {
    
    		}
    
              
    	         
    
    		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
    
     protected void preRenderCallback(EntitymonkeyBlack 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 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

    cool thanks things are happening.. i did add the code, but its giving me a error on compile on the shadow part:



    this.shadowSize = 0.25F;


    error:

    java:150: error: cannot find symbol

    symbol: variable shadowSize
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.


    do i need a import library for the shadowsize or for the prerenderCallback something?

    protected void preRenderCallback(EntitymonkeyBlack 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

    i really apreciate, i found them now! thanks, but what part i need on that on my mob? the part on you show on the screenshot? im gonna back work on it right now..

    Posted in: Modification Development
  • 0

    posted a message on Modding Tutorials? 1.10

    on the villager file i see this:


    public EntityVillager createChild(EntityAgeable ageable)
    {
    EntityVillager entityvillager = new EntityVillager(this.worldObj);
    entityvillager.onInitialSpawn(this.worldObj.getDifficultyForLocation(new BlockPos(entityvillager)), (IEntityLivingData)null);
    return entityvillager;
    }


    public float getEyeHeight()
    {
    return this.isChild() ? 0.81F : 1.62F;
    }




    this is mine:


    public EntitymonkeyBlack createChild(EntityAgeable ageable) {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()); }




    i dont see any scale, nor scale calling, import library on those files, how come the young cow is smaller it makes no sense to me :

    Posted in: Modification Development
  • 0

    posted a message on Help with Mob Age/Scale of the model

    the other thing i want to fix is this arm position, i want that it stick with the arm original position

    (it got a angle like; setRotation(armleft, -0.3490659F, 0F, 0F); and here it starts the animation from vertical fixed position)



    this.armleft.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F;
    this.armright.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;


    lol omg im so stupid i just solve this doing:


    this.armleft.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F -0.3490659F;


    cheeears :D

    but i still need help with the baby monkey child scale thing :(

    Posted in: Modification Development
  • 0

    posted a message on Help with Mob Age/Scale of the model
    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 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.8D, mcreator_wildBanana.block, false));
                 this.tasks.addTask(4, new EntityAIFollowParent(this, 0.8D));
                 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() {
    
    		}
    
    		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 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;
    			this.armright.rotateAngleX = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;
    			this.tail.rotateAngleY = f3 / (180F / (float) Math.PI);
    		}
    
    	}
    
    }

    btw i remove the 'draw' part for space safe here

    Posted in: Modification Development
  • 0

    posted a message on Modding questions [3D Model]
    Quote from Niconiko»

    Hey there, my name is Nico, and I'm here to ask something about modeling item or block to render in 3D.


    So the questions are "How can I port or scripting the model to use in the mod for minecraft 1.7.10?" and "What is the model file format for minecraft 1.7.10?"

    Those are what I need to know for now.

    Thank you in adv :3


    use MCreator for start, its a amazing tool... learning java is a pain in the butt :D
    Posted in: Modification Development
  • 0

    posted a message on Modding Tutorials? 1.10

    this is all i can find on the pig file:


    public EntityPig createChild(EntityAgeable ageable)
    {
    return new EntityPig(this.worldObj);
    }


    public boolean isBreedingItem(@Nullable ItemStack stack)
    {
    return stack != null && TEMPTATION_ITEMS.contains(stack.getItem());
    }



    and i have this on my mob already, i still dont understand how to scale the child down, i just dont see it on the vanilla mobs codings

    and im not advanced lol no way man im still learning, as i said i apreciate and got those tutorials, but i could not find this specific info there, again thanks for your help here :)

    look all over your mob(entity) tutorials, could not find that info there too.. sorry for the trouble lol

    Posted in: Modification Development
  • 0

    posted a message on Rendering Baby Mobs
    Quote from jabelar»



    So overall, if you wanted to make a entity that was always small, all you had to do was put a scaling call in your model, and set the size of the bounding box in your entity.


    scalling call ok, so how i do it man? thanks. you talking about coding right? not making a second model on techne correct?
    Posted in: Modification Development
  • 0

    posted a message on Modding Tutorials? 1.10

    lol come on dude dont give me the 'google' :D its obvious i sunk my head on google first to ask, its just because, i cant understand lol, like minecraft have THOUSANDS of mods, so many people knows how to do stuff, but almost nobody try to teach others :D i want to leaaaaaaaaaaaaarn :D


    thanks for those 2 links i will read them right now! :D

    hum i check those but its most basic stuff and structure... what i need now is how to code the part that the mob child is scaled down, then grow up like a regular minecraf mob, i made this monkey and it looks pretty cool, but on breeding it gives a same size monkey.

    Posted in: Modification Development
  • 0

    posted a message on Help with Mob Age/Scale of the model

    hey guys! i could use some help on this code here; i want my monkey breed a small child monkey, that grows like the vanilla mobs do, but it just give me a regular monkey... im missing a scale call or something, but i dont know how to do it, do i need a brand new model or i can do this adding some lines here?


    thank you all!

    Posted in: Modification Development
  • 0

    posted a message on Help with Mob Age/Scale of the model

    Sorry i acident double post it

    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    i found this on git, because i cant find my own files :/ i know this is lamme but im new on this :(



    https://github.com/vmarchaud/Alkazia/blob/master/1.8/Client/src/minecraft/net/minecraft/client/renderer/entity/RenderVillager.java

    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    well i told on the 3rd posting its a old topic, thats why i post it.. im looking for a new one..


    on my client folder (im looking on 1.10 version file) i cant see 'renderer' folder, btw i never could find the minecraft vanilla entities .class files, so i can visualise them and learn the coding, where can i find these?


    thanks again!

    Posted in: Modification Development
  • 0

    posted a message on Tutorial for Code mobs cubes

    i also need to know how to scale down a model on the code, i got this here, but i dont know how ot set it up, its also 5 years old..


    protected void preRenderCallback(EntityLiving par1EntityLiving, float par2)
    {
    func_40292_b((EntityMyMob)par1EntityLiving, par2);
    }

    protected void func_40292_b(EntityMyMob par1EntityMyMob, float par2)
    {
    float f = 0.9375F;

    f = (float)((double)f * 0.5D);
    shadowSize = 0.25F;

    GL11.glScalef(f, f, f);
    }

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