• 0

    posted a message on Minecraft - Wizard´s Vending Machine Mod

    Uhmmm My Game Crashed Can You Please Take A Loo At This Please >w<


    ---- Minecraft Crash Report ----
    // I let you down. Sorry :(

    Time: 7/02/17 8:10 PM
    Description: Unexpected error

    java.lang.IndexOutOfBoundsException
    at java.nio.Buffer.checkIndex(Buffer.java:540)
    at java.nio.DirectIntBufferU.get(DirectIntBufferU.java:253)
    at net.minecraft.client.renderer.RenderGlobal.func_72712_a(RenderGlobal.java:350)
    at net.minecraft.client.renderer.RenderGlobal.func_72732_a(RenderGlobal.java:294)
    at net.minecraft.client.Minecraft.func_71353_a(Minecraft.java:2216)
    at net.minecraft.client.Minecraft.func_71403_a(Minecraft.java:2146)
    at net.minecraft.client.network.NetHandlerPlayClient.func_147282_a(NetHandlerPlayClient.java:240)
    at net.minecraft.network.play.server.S01PacketJoinGame.func_148833_a(SourceFile:70)
    at net.minecraft.network.play.server.S01PacketJoinGame.func_148833_a(SourceFile:13)
    at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
    at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:2061)
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:973)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:898)
    at net.minecraft.client.main.Main.main(SourceFile:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- Head --
    Stacktrace:
    at java.nio.Buffer.checkIndex(Buffer.java:540)
    at java.nio.DirectIntBufferU.get(DirectIntBufferU.java:253)
    at net.minecraft.client.renderer.RenderGlobal.func_72712_a(RenderGlobal.java:350)
    at net.minecraft.client.renderer.RenderGlobal.func_72732_a(RenderGlobal.java:294)
    at net.minecraft.client.Minecraft.func_71353_a(Minecraft.java:2216)
    at net.minecraft.client.Minecraft.func_71403_a(Minecraft.java:2146)
    at net.minecraft.client.network.NetHandlerPlayClient.func_147282_a(NetHandlerPlayClient.java:240)
    at net.minecraft.network.play.server.S01PacketJoinGame.func_148833_a(SourceFile:70)
    at net.minecraft.network.play.server.S01PacketJoinGame.func_148833_a(SourceFile:13)
    at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)

    -- Affected level --
    Details:
    Level name: MpServer
    All players: 0 total; []
    Chunk stats: MultiplayerChunkCache: 0, 0
    Level seed: 0
    Level generator: ID 01 - flat, ver 0. Features enabled: false
    Level generator options:
    Level spawn location: World: (8,64,8), Chunk: (at 8,4,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 0 game time, 0 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
    Forced entities: 0 total; []
    Retry entities: 0 total; []
    Server brand: ~~ERROR~~ NullPointerException: null
    Server type: Integrated singleplayer server
    Stacktrace:
    at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:373)
    at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2444)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:927)
    at net.minecraft.client.main.Main.main(SourceFile:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_25, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 121316336 bytes (115 MB) / 325472256 bytes (310 MB) up to 1060372480 bytes (1011 MB)
    JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 3 mods loaded, 3 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
    UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1558-1.7.10.jar)
    UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forge-1.7.10-10.13.4.1558-1.7.10.jar)
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 369.09' Renderer: 'GeForce 810M/PCIe/SSE2'
    Launched Version: 1.7.10-Forge10.13.4.1558-1.7.10
    LWJGL: 2.9.1
    OpenGL: GeForce 810M/PCIe/SSE2 GL version 4.5.0 NVIDIA 369.09, NVIDIA Corporation
    GL Caps: Using GL 1.3 multitexturing.
    Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
    Anisotropic filtering is supported and maximum anisotropy is 16.
    Shaders are available because OpenGL 2.1 is supported.

    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: [Faithful 1.11.2-rv2.zip] Current Language: English (US)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Anisotropic Filtering: Off (1)


    i think you are using forge 1.70, this mod is 1.10
    Posted in: Minecraft Mods
  • 0

    posted a message on Jumping Code for Mob

    i was having compilation errors when i try to add random sections of code witch i think would work, im doing trying-error most of times, kinda hard to find people who have patience to help us like you :D


    I need to see a code from a 1.10 jumping mod that work so i can make my own, i look the rabbit file from vanilla, but i just cant see what i must add and what i must not.

    Posted in: Modification Development
  • 0

    posted a message on Heigh when you seat on a Mob

    Hey guys im trying to make steve ride a giraffe here, he he sits to low on it, how i make it seat higher on this code?


    public void moveEntityWithHeading(float strafe, float forward) {
    			Entity entity = this.getPassengers().isEmpty() ? null : (Entity) this.getPassengers().get(0);
    
    			if (this.isBeingRidden() && this.canBeSteered()) {
    				this.rotationYaw = entity.rotationYaw;
    				this.prevRotationYaw = this.rotationYaw;
    				this.rotationPitch = entity.rotationPitch * 0.5F;
    				this.setRotation(this.rotationYaw, this.rotationPitch);
    				this.renderYawOffset = this.rotationYaw;
    				this.rotationYawHead = this.rotationYaw;
    				this.stepHeight = 1.0F;
    				this.jumpMovementFactor = this.getAIMoveSpeed() * 0.1F;
    
    				if (this.canPassengerSteer()) {
    					float f = (float) this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).getAttributeValue() * 0.225F;
    					this.setAIMoveSpeed(f);
    					super.moveEntityWithHeading(0.0F, 1.0F);
    				} else {
    					this.motionX = 0.0D;
    					this.motionY = 0.0D;
    					this.motionZ = 0.0D;
    				}
    
    				this.prevLimbSwingAmount = this.limbSwingAmount;
    				double d1 = this.posX - this.prevPosX;
    				double d0 = this.posZ - this.prevPosZ;
    				float f1 = MathHelper.sqrt_double(d1 * d1 + d0 * d0) * 4.0F;
    
    				if (f1 > 1.0F) {
    					f1 = 1.0F;
    				}
    
    				this.limbSwingAmount += (f1 - this.limbSwingAmount) * 0.4F;
    				this.limbSwing += this.limbSwingAmount;
    			} else {
    				this.stepHeight = 0.5F;
    				this.jumpMovementFactor = 0.02F;
    				super.moveEntityWithHeading(strafe, forward);
    			}
    Posted in: Modification Development
  • 0

    posted a message on Jumping Code for Mob

    Hey guys, im trying to learn to mod alone, its so hard... im trying to make my kangaroo jump, like the vanilla rabbit animation, but i keep looking at the rabbit file, adding code, removing code, and all i get is errors, can someone please help? after i learn this i can make a lot of mobs, any help apreciated.. thanks!


    here is my mob:


    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.EntityAIMate;
    import net.minecraft.entity.ai.EntityAILookIdle;
    import net.minecraft.entity.ai.EntityAIEatGrass;
    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.client.renderer.GlStateManager;
    import net.minecraft.entity.ai.EntityAIFollowParent;
    import net.minecraft.entity.ai.EntityAIWatchClosest;
    
    import net.minecraft.entity.ai.EntityJumpHelper;
    import net.minecraft.entity.ai.EntityMoveHelper;
    import net.minecraft.network.datasync.DataParameter;
    import net.minecraft.network.datasync.DataSerializers;
    import net.minecraft.network.datasync.EntityDataManager;
    
    import java.util.Random;
    import java.util.Iterator;
    import java.util.ArrayList;
    
    @SuppressWarnings("unchecked")
    public class mcreator_canguruGrey {
    
    	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<EntityAgeable>(Minecraft.getMinecraft().getRenderManager(), new mcreator_canguruGrey.ModelNew(), 0) {
         
         protected ResourceLocation getEntityTexture(EntityAgeable par1Entity) {
              return new ResourceLocation("Canguru_Grey.png");
         }
         
         protected void preRenderCallback(EntityAgeable entitylivingbaseIn, float partialTickTime) {
              float f = 1.0F;
              if (entitylivingbaseIn.getGrowingAge() < 0) {
                   f = (float)((double)f * 0.5D);
                   this.shadowSize = 0.25F;
              } else {
                   this.shadowSize = 0.5F;
              }
              GlStateManager.scale(f, f, f);
         }    
         
    };
              RenderingRegistry.registerEntityRenderingHandler(mcreator_canguruGrey.EntitycanguruGrey.class, customRender);
    
         }
    
    	public void serverLoad(FMLServerStartingEvent event) {
    	}
    
    	public void preInit(FMLPreInitializationEvent event) {
    		int entityID = MathHelper.getRandomUUID().hashCode();
    		mobid = entityID;
    		EntityRegistry.registerModEntity(mcreator_canguruGrey.EntitycanguruGrey.class, "canguruGrey", entityID, instance, 64, 1, true, (102 << 16)
    				+ (102 << 8) + 102, (204 << 16) + (204 << 8) + 204);
    		EntityRegistry.addSpawn(mcreator_canguruGrey.EntitycanguruGrey.class, 16, 3, 9, EnumCreatureType.CREATURE,
    				Biome.REGISTRY.getObject(new ResourceLocation("plains")));
    
    	}
    
    	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 EntitycanguruGrey extends EntityAnimal {
    		World world = null;
    
    	public EntitycanguruGrey(World var1) {
                   super(var1);
    			world = var1;
    			experienceValue = 8;
    			this.isImmuneToFire = false;
    			addRandomArmor();
    			setNoAI(!true);
    			this.tasks.addTask(0, new EntityAISwimming(this));
    			this.tasks.addTask(7, new EntityAIWander(this, 1.0D));
                   this.tasks.addTask(4, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    			this.tasks.addTask(8, new EntityAILookIdle(this));
    			this.tasks.addTask(9, new EntityAILookIdle(this));
    			this.tasks.addTask(6, new EntityAITempt(this, 0.8D, Items.WHEAT, false));
    			this.tasks.addTask(5, new EntityAIEatGrass(this));
    			this.tasks.addTask(3, new EntityAIMate(this, 1.0D));
                   this.tasks.addTask(10, new EntityAIFollowParent(this, 0.9D));
                   this.setSize(0.4F, 0.5F);
    
    		}
    
      
    
    		protected void applyEntityAttributes() {
    			super.applyEntityAttributes();
    			this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.4D);
    			this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(12D);
    			if (this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE) != null)
    				this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(3D);
    		}
    
    
    		protected void addRandomArmor() {
    
    		}
    
    		public EntitycanguruGrey createChild(EntityAgeable ageable) {
    			return new EntitycanguruGrey(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[]{Items.WHEAT,}).contains(stack.getItem());
    		}
    
    		@Override
    		protected Item getDropItem() {
    			return new ItemStack(Items.LEATHER).getItem();
    		}
    
    		@Override
    		protected net.minecraft.util.SoundEvent getAmbientSound() {
    			return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(""));
    		}
    
    		@Override
    		protected net.minecraft.util.SoundEvent getHurtSound() {
    			return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("game.neutral.hurt"));
    		}
    
    		@Override
    		protected net.minecraft.util.SoundEvent getDeathSound() {
    			return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("game.neutral.die"));
    		}
    
    		@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: 26/11/2017 12:07:30
    	// Template version 1.1
    	// Java generated by Techne
    	// Keep in mind that you still need to fill in some blanks
    	// - ZeuX
    
    	public static class ModelNew extends ModelBase {
    		// fields
    		ModelRenderer BodyMain;
    		ModelRenderer BodyFront;
    		ModelRenderer BodyBack;
    		ModelRenderer BodyFrontB;
    		ModelRenderer NeckBase;
    		ModelRenderer UpperArm1;
    		ModelRenderer LowerArm1;
    		ModelRenderer Hand1;
    		ModelRenderer UpperArm2;
    		ModelRenderer LowerArm2;
    		ModelRenderer Hand2;
    		ModelRenderer Leg1Piece;
    		ModelRenderer Leg2Piece;
    		ModelRenderer HeadPiece;
    		ModelRenderer TailPiece;
    		ModelRenderer TailBase;
    		ModelRenderer Tail1;
    		ModelRenderer Tail2;
    		ModelRenderer Tail3;
    		ModelRenderer Tail4;
    		ModelRenderer Neck;
    		ModelRenderer Head;
    		ModelRenderer Nose;
    		ModelRenderer Ear1;
    		ModelRenderer Ear2;
    		ModelRenderer UpperLeg1;
    		ModelRenderer LowerLeg1;
    		ModelRenderer Foot1;
    		ModelRenderer UpperLeg2;
    		ModelRenderer LowerLeg2;
    		ModelRenderer Foot2;
              ModelRenderer Mouth;
    
    		public ModelNew() {
    			textureWidth = 256;
    			textureHeight = 128;
    
    			BodyMain = new ModelRenderer(this, 88, 41);
    			BodyMain.addBox(-3F, -2F, -3F, 8, 10, 11);
    			BodyMain.setRotationPoint(-0.5F, 7.5F, 2F);
    			BodyMain.setTextureSize(256, 128);
    			BodyMain.mirror = true;
    			setRotation(BodyMain, -0.2617994F, 0F, 0F);
    			BodyFront = new ModelRenderer(this, 59, 47);
    			BodyFront.addBox(-2F, -4F, -1F, 7, 8, 7);
    			BodyFront.setRotationPoint(-1F, 11F, -5F);
    			BodyFront.setTextureSize(256, 128);
    			BodyFront.mirror = true;
    			setRotation(BodyFront, 0.3490659F, 0F, 0F);
    			BodyBack = new ModelRenderer(this, 3, 65);
    			BodyBack.addBox(-3F, -1F, -1F, 7, 8, 7);
    			BodyBack.setRotationPoint(0F, 9F, 9F);
    			BodyBack.setTextureSize(256, 128);
    			BodyBack.mirror = true;
    			setRotation(BodyBack, -0.4363323F, 0F, 0F);
    			BodyFrontB = new ModelRenderer(this, 32, 50);
    			BodyFrontB.addBox(-3F, -2F, -3F, 7, 6, 6);
    			BodyFrontB.setRotationPoint(0F, 9.5F, -7F);
    			BodyFrontB.setTextureSize(256, 128);
    			BodyFrontB.mirror = true;
    			setRotation(BodyFrontB, -0.0523599F, 0F, 0F);
    			NeckBase = new ModelRenderer(this, 13, 54);
    			NeckBase.addBox(-2F, -2F, -2F, 6, 5, 3);
    			NeckBase.setRotationPoint(-0.5F, 10F, -10F);
    			NeckBase.setTextureSize(256, 128);
    			NeckBase.mirror = true;
    			setRotation(NeckBase, -0.1745329F, 0F, 0F);
    			UpperArm1 = new ModelRenderer(this, 2, 21);
    			UpperArm1.addBox(-1F, 0F, -1F, 2, 7, 3);
    			UpperArm1.setRotationPoint(-2.5F, 8.5F, -8.5F);
    			UpperArm1.setTextureSize(256, 128);
    			UpperArm1.mirror = true;
    			setRotation(UpperArm1, 0.4363323F, -0.1745329F, 0F);
    			LowerArm1 = new ModelRenderer(this, 13, 21);
    			LowerArm1.addBox(-1F, 0F, -1F, 2, 6, 2);
    			LowerArm1.setRotationPoint(-3F, 13.5F, -5F);
    			LowerArm1.setTextureSize(256, 128);
    			LowerArm1.mirror = true;
    			setRotation(LowerArm1, -0.6108652F, -0.1745329F, 0F);
    			Hand1 = new ModelRenderer(this, 22, 21);
    			Hand1.addBox(0F, 0F, 0F, 3, 3, 2);
    			Hand1.setRotationPoint(-3.7F, 18F, -10F);
    			Hand1.setTextureSize(256, 128);
    			Hand1.mirror = true;
    			setRotation(Hand1, 0.4363323F, -0.1745329F, 0F);
    			UpperArm2 = new ModelRenderer(this, 3, 3);
    			UpperArm2.addBox(-1F, 0F, -1F, 2, 7, 3);
    			UpperArm2.setRotationPoint(3.5F, 9F, -8.5F);
    			UpperArm2.setTextureSize(256, 128);
    			UpperArm2.mirror = true;
    			setRotation(UpperArm2, 0.4363323F, 0.1745329F, 0F);
    			LowerArm2 = new ModelRenderer(this, 15, 3);
    			LowerArm2.addBox(-1F, 0F, -1F, 2, 6, 2);
    			LowerArm2.setRotationPoint(4F, 14F, -5F);
    			LowerArm2.setTextureSize(256, 128);
    			LowerArm2.mirror = true;
    			setRotation(LowerArm2, -0.6108652F, 0.1745329F, 0F);
    			Hand2 = new ModelRenderer(this, 25, 3);
    			Hand2.addBox(-1F, -1F, -1F, 3, 3, 2);
    			Hand2.setRotationPoint(3F, 18.5F, -9F);
    			Hand2.setTextureSize(256, 128);
    			Hand2.mirror = true;
    			setRotation(Hand2, 0.4363323F, 0.1745329F, 0F);
    			Leg1Piece = new ModelRenderer(this, "Leg1Piece");
    			Leg1Piece.setRotationPoint(-3F, 12F, 4F);
    			setRotation(Leg1Piece, 0F, 0F, 0F);
    			Leg1Piece.mirror = true;
    			UpperLeg1 = new ModelRenderer(this, 51, 2);
    			UpperLeg1.addBox(-2F, -4F, -13F, 4, 7, 9);
    			UpperLeg1.setRotationPoint(0F, -4F, 7F);
    			UpperLeg1.setTextureSize(256, 128);
    			UpperLeg1.mirror = true;
    			setRotation(UpperLeg1, 0.7853982F, 0F, 0F);
    			LowerLeg1 = new ModelRenderer(this, 79, 2);
    			LowerLeg1.addBox(-1.5F, 0F, -1.5F, 3, 8, 4);
    			LowerLeg1.setRotationPoint(0F, 2F, -1F);
    			LowerLeg1.setTextureSize(256, 128);
    			LowerLeg1.mirror = true;
    			setRotation(LowerLeg1, 0F, 0F, 0F);
    			Foot1 = new ModelRenderer(this, 97, 2);
    			Foot1.addBox(-2F, 0F, -9F, 4, 2, 12);
    			Foot1.setRotationPoint(0F, 10F, -1F);
    			Foot1.setTextureSize(256, 128);
    			Foot1.mirror = true;
    			setRotation(Foot1, 0F, 0F, 0F);
    
    			Leg2Piece = new ModelRenderer(this, "Leg2Piece");
    			Leg2Piece.setRotationPoint(4F, 12F, 4F);
    			setRotation(Leg2Piece, 0F, 0F, 0F);
    			Leg2Piece.mirror = true;
    			UpperLeg2 = new ModelRenderer(this, 51, 19);
    			UpperLeg2.addBox(-2F, -4F, -13F, 4, 7, 9);
    			UpperLeg2.setRotationPoint(0F, -4F, 7F);
    			UpperLeg2.setTextureSize(256, 128);
    			UpperLeg2.mirror = true;
    			setRotation(UpperLeg2, 0.7853982F, 0F, 0F);
    			LowerLeg2 = new ModelRenderer(this, 79, 18);
    			LowerLeg2.addBox(-1.5F, 0F, -1.5F, 3, 8, 4);
    			LowerLeg2.setRotationPoint(0F, 2F, -1F);
    			LowerLeg2.setTextureSize(256, 128);
    			LowerLeg2.mirror = true;
    			setRotation(LowerLeg2, 0F, 0F, 0F);
    			Foot2 = new ModelRenderer(this, 97, 17);
    			Foot2.addBox(-2F, 0F, -9F, 4, 2, 12);
    			Foot2.setRotationPoint(0F, 10.06667F, -1F);
    			Foot2.setTextureSize(256, 128);
    			Foot2.mirror = true;
    			setRotation(Foot2, 0F, 0F, 0F);
    
    			HeadPiece = new ModelRenderer(this, "HeadPiece");
    			HeadPiece.setRotationPoint(0.5F, 10F, -12F);
    			setRotation(HeadPiece, 0F, 0F, 0F);
    			HeadPiece.mirror = true;
    			Neck = new ModelRenderer(this, 13, 45);
    			Neck.addBox(-3F, 2F, 1F, 5, 4, 4);
    			Neck.setRotationPoint(0.5F, -5F, -1F);
    			Neck.setTextureSize(256, 128);
    			Neck.mirror = true;
    			setRotation(Neck, -0.4363323F, 0F, 0F);
    			Head = new ModelRenderer(this, 2, 32);
    			Head.addBox(-3F, -5F, -7F, 6, 6, 6);
    			Head.setRotationPoint(0F, -1F, 0F);
    			Head.setTextureSize(256, 128);
    			Head.mirror = true;
    			setRotation(Head, 0.1745329F, 0F, 0F);
    			Nose = new ModelRenderer(this, 27, 32);
    			Nose.addBox(-1.5F, -6.5F, -7F, 4, 3, 4);
    			Nose.setRotationPoint(-0.5F, 1.5F, -2F);
    			Nose.setTextureSize(256, 128);
    			Nose.mirror = true;
    			setRotation(Nose, 0.3490659F, 0F, 0F);
    			Mouth = new ModelRenderer(this, 35, 43);
    			Mouth.addBox(-1.5F, -1F, -2F, 3, 1, 2);
    			Mouth.setRotationPoint(0F, 1.0F, -6.5F);
    			Mouth.setTextureSize(256, 128);
    			Mouth.mirror = true;
    			setRotation(Mouth, 0F, 0F, 0F);
    			Ear1 = new ModelRenderer(this, 4, 45);
    			Ear1.addBox(-2F, -4F, 0F, 3, 5, 1);
    			Ear1.setRotationPoint(-1.5F, -5.5F, -4F);
    			Ear1.setTextureSize(256, 128);
    			Ear1.mirror = true;
    			setRotation(Ear1, 0F, 0.2617994F, -0.2617994F);
    			Ear2 = new ModelRenderer(this, 4, 52);
    			Ear2.addBox(-1F, -4F, 0F, 3, 5, 1);
    			Ear2.setRotationPoint(1.5F, -5.7F, -4F);
    			Ear2.setTextureSize(256, 128);
    			Ear2.mirror = true;
    			setRotation(Ear2, 0F, -0.2617994F, 0.2617994F);
    
    			TailPiece = new ModelRenderer(this, "TailPiece");
    			TailPiece.setRotationPoint(0F, 14F, 13F);
    			setRotation(TailPiece, 0F, 0F, 0F);
    			TailPiece.mirror = true;
    			TailBase = new ModelRenderer(this, 3, 82);
    			TailBase.addBox(-3F, -7F, 2F, 6, 7, 5);
    			TailBase.setRotationPoint(0.5F, 3F, -5F);
    			TailBase.setTextureSize(256, 128);
    			TailBase.mirror = true;
    			setRotation(TailBase, -0.2617994F, 0F, 0F);
    			Tail1 = new ModelRenderer(this, 3, 96);
    			Tail1.addBox(-3F, -3F, 0F, 5, 6, 5);
    			Tail1.setRotationPoint(1F, 1.5F, 2F);
    			Tail1.setTextureSize(256, 128);
    			Tail1.mirror = true;
    			setRotation(Tail1, -0.1396263F, 0F, 0F);
    			Tail2 = new ModelRenderer(this, 3, 109);
    			Tail2.addBox(-2F, -2F, 0F, 4, 5, 5);
    			Tail2.setRotationPoint(0.5F, 1.5F, 5F);
    			Tail2.setTextureSize(256, 128);
    			Tail2.mirror = true;
    			setRotation(Tail2, 0F, 0F, 0F);
    			Tail3 = new ModelRenderer(this, 24, 109);
    			Tail3.addBox(-1.5F, -1F, -1F, 3, 4, 5);
    			Tail3.setRotationPoint(0.5F, 1F, 9F);
    			Tail3.setTextureSize(256, 128);
    			Tail3.mirror = true;
    			setRotation(Tail3, 0.0872665F, 0F, 0F);
    			Tail4 = new ModelRenderer(this, 42, 110);
    			Tail4.addBox(-1F, 0F, -2F, 2, 3, 5);
    			Tail4.setRotationPoint(0.5F, 0.5F, 14F);
    			Tail4.setTextureSize(256, 128);
    			Tail4.mirror = true;
    			setRotation(Tail4, 0.1396263F, 0F, 0F);
    
    			HeadPiece.addChild(Head);
    			HeadPiece.addChild(Neck);
    			HeadPiece.addChild(Nose);
    			HeadPiece.addChild(Ear1);
    			HeadPiece.addChild(Ear2);
                   HeadPiece.addChild(Mouth);
    
    			Leg1Piece.addChild(UpperLeg1);
    			Leg1Piece.addChild(LowerLeg1);
    			Leg1Piece.addChild(Foot1);
    
    			Leg2Piece.addChild(UpperLeg2);
    			Leg2Piece.addChild(LowerLeg2);
    			Leg2Piece.addChild(Foot2);
    
    			TailPiece.addChild(TailBase);
    			TailPiece.addChild(Tail1);
    			TailPiece.addChild(Tail2);
    			TailPiece.addChild(Tail3);
    			TailPiece.addChild(Tail4);
    
    		}
    
    		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);
    			BodyMain.render(f5);
    			BodyFront.render(f5);
    			BodyBack.render(f5);
    			BodyFrontB.render(f5);
    			NeckBase.render(f5);
    			UpperArm1.render(f5);
    			LowerArm1.render(f5);
    			Hand1.render(f5);
    			UpperArm2.render(f5);
    			LowerArm2.render(f5);
    			Hand2.render(f5);
    			Leg1Piece.render(f5);
    			Leg2Piece.render(f5);
    			HeadPiece.render(f5);
    			TailPiece.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.Leg1Piece.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
    			this.Leg2Piece.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;
    			this.HeadPiece.rotateAngleY = f3 / (180F / (float) Math.PI);
    			this.HeadPiece.rotateAngleX = f4 / (180F / (float) Math.PI);
    			this.TailPiece.rotateAngleY = f3 / (180F / (float) Math.PI);
    			this.Mouth.rotateAngleX = f4 / (180F / (float) Math.PI);
    
    		}
    
    	}
    
    }
    
    Posted in: Modification Development
  • 0

    posted a message on Little help with aquatic mobs

    What imports should i add to makeextends EntityWaterMob work?

    Posted in: Modification Development
  • 0

    posted a message on Little help with aquatic mobs

    the only water mob i can look on vanilla is the squid, and when i copy the parts i think i need it give me several errors.. could, if possible, point me the parts i need (post the code) so i can add on my mob file? thanks!

    Posted in: Modification Development
  • 0

    posted a message on Zoo and Wild Animals Mod: African Adventure Update
    Quote from Soggy_Mustache»

    We know how to develop for 1.10 but thank you anyways

    i never question that, its pretty obvious you guys can, i was offering extra help ;) anyway nice work on the models, im using them as visual ref to my own, they are amazing! congratulations!
    Posted in: WIP Mods
  • 0

    posted a message on Little help with aquatic mobs

    Hey guys!


    So im trying my first aquatic mob here, its all good, except for 2 aspects:


    - It only swim like a regular land swimmir, i want it to swim like a fish

    - it drowns if it stays to long on water, i want to make it imunne to drowning or something like that... how people make aquatic mobs? :D


    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.client.renderer.GlStateManager;
    
    import java.util.Random;
    import java.util.Iterator;
    import java.util.ArrayList;
    
    @SuppressWarnings("unchecked")
    public class mcreator_seaTurtleGreen  {
    
    	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<EntityAgeable>(Minecraft.getMinecraft().getRenderManager(), new mcreator_seaTurtleGreen.ModelSeaTurtle(), 0) {
         
         protected ResourceLocation getEntityTexture(EntityAgeable par1Entity) {
              return new ResourceLocation("SeaTurtle_Green.png");
         }
         
         protected void preRenderCallback(EntityAgeable entitylivingbaseIn, float partialTickTime) {
              float f = 0.8F;
              if (entitylivingbaseIn.getGrowingAge() < 0) {
                   f = (float)((double)f * 0.5D);
                   this.shadowSize = 0.25F;
              } else {
                   this.shadowSize = 0.5F;
              }
              GlStateManager.scale(f, f, f);
         }    
         
    };
              RenderingRegistry.registerEntityRenderingHandler(mcreator_seaTurtleGreen.EntityseaTurtleGreen.class, customRender);
    
         }
    
    	public void serverLoad(FMLServerStartingEvent event) {
    	}
    
    	public void preInit(FMLPreInitializationEvent event) {
    		int entityID = MathHelper.getRandomUUID().hashCode();
    		mobid = entityID;
    		EntityRegistry.registerModEntity(mcreator_seaTurtleGreen.EntityseaTurtleGreen.class, "seaTurtleGreen", entityID, instance, 64, 1, true,
    				(111 << 16) + (146 << 8) + 86, (0 << 16) + (153 << 8) + 102);
    		EntityRegistry.addSpawn(mcreator_seaTurtleGreen.EntityseaTurtleGreen.class, 18, 1, 5, EnumCreatureType.WATER_CREATURE,
    				Biome.REGISTRY.getObject(new ResourceLocation("ocean")));
    
    	}
    
    	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 EntityseaTurtleGreen extends EntityAnimal {
    		World world = null;
    
    		public EntityseaTurtleGreen(World var1) {
    			super(var1);
    			world = var1;
    			experienceValue = 8;
    			this.isImmuneToFire = false;
    			addRandomArmor();
    			setNoAI(!true);
    
    			
                 
                 this.tasks.addTask(2, new EntityAIMate(this, 0.7D));
                 this.tasks.addTask(3, new EntityAITempt(this, 0.9D, Items.MELON, 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.tasks.addTask(10, new EntityAISwimming(this));
                 this.setSize(0.9F, 1.4F);
    
    		}
    
    		protected void applyEntityAttributes() {
    			super.applyEntityAttributes();
    			this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.2D);
    			this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(12D);
    			if (this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE) != null)
    				this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(1D);
    		}
    
    		protected void addRandomArmor() {
    
    		}
    
    		public EntityseaTurtleGreen createChild(EntityAgeable ageable) {
    			return new EntityseaTurtleGreen(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[]{Items.MELON,}).contains(stack.getItem());
    		}
    
    		@Override
    		protected Item getDropItem() {
    			return null;
    		}
    
    		@Override
    		protected net.minecraft.util.SoundEvent getAmbientSound() {
    			return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(""));
    		}
    
    		@Override
    		protected net.minecraft.util.SoundEvent getHurtSound() {
    			return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("game.neutral.hurt"));
    		}
    
    		@Override
    		protected net.minecraft.util.SoundEvent getDeathSound() {
    			return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("game.neutral.die"));
    		}
    
    		@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: 25/11/2017 16:31:22
    	// Template version 1.1
    	// Java generated by Techne
    	// Keep in mind that you still need to fill in some blanks
    	// - ZeuX
    
    	public static class ModelSeaTurtle extends ModelBase {
    		// fields
    		ModelRenderer LowerBody;
    		ModelRenderer LowerBack;
    		ModelRenderer Leg2;
    		ModelRenderer Leg1;
    		ModelRenderer UpArm1;
    		ModelRenderer Arm1;
    		ModelRenderer UpArm2;
    		ModelRenderer Arm2;
    		ModelRenderer Shell1;
    		ModelRenderer Shell2;
    		ModelRenderer Shell3;
    		ModelRenderer Shell4;
    		ModelRenderer HeadPiece;
    		ModelRenderer Nose;
    		ModelRenderer Mouth;
    		ModelRenderer Neck;
    		ModelRenderer Head;
    
    		public ModelSeaTurtle() {
    			textureWidth = 128;
    			textureHeight = 64;
    
    			LowerBody = new ModelRenderer(this, 20, 47);
    			LowerBody.addBox(-5F, -1F, -5F, 9, 4, 10);
    			LowerBody.setRotationPoint(0.5F, 20F, 0F);
    			LowerBody.setTextureSize(64, 32);
    			LowerBody.mirror = true;
    			setRotation(LowerBody, 0F, 0F, 0F);
    			LowerBack = new ModelRenderer(this, 30, 37);
    			LowerBack.addBox(-4F, -1F, -2F, 8, 3, 6);
    			LowerBack.setRotationPoint(0F, 20.5F, 4F);
    			LowerBack.setTextureSize(64, 32);
    			LowerBack.mirror = true;
    			setRotation(LowerBack, 0F, 0F, 0F);
    			Leg2 = new ModelRenderer(this, 40, 26);
    			Leg2.addBox(0F, 0F, 0F, 3, 2, 6);
    			Leg2.setRotationPoint(0F, 20F, 8F);
    			Leg2.setTextureSize(64, 32);
    			Leg2.mirror = true;
    			setRotation(Leg2, 0F, 0.3490659F, 0F);
    			Leg1 = new ModelRenderer(this, 40, 16);
    			Leg1.addBox(-3F, -1F, 0F, 3, 2, 6);
    			Leg1.setRotationPoint(0F, 21F, 8F);
    			Leg1.setTextureSize(64, 32);
    			Leg1.mirror = true;
    			setRotation(Leg1, 0F, -0.3490659F, 0F);
    			UpArm1 = new ModelRenderer(this, 60, 34);
    			UpArm1.addBox(-4F, -1F, -1F, 4, 2, 3);
    			UpArm1.setRotationPoint(-4F, 21F, -4F);
    			UpArm1.setTextureSize(64, 32);
    			UpArm1.mirror = true;
    			setRotation(UpArm1, 0F, 0.2617994F, 0F);
    			Arm1 = new ModelRenderer(this, 76, 34);
    			Arm1.addBox(-3F, -1F, -1F, 3, 2, 7);
    			Arm1.setRotationPoint(-5.5F, 21F, -2F);
    			Arm1.setTextureSize(64, 32);
    			Arm1.mirror = true;
    			setRotation(Arm1, 0F, -0.3490659F, 0F);
    			UpArm2 = new ModelRenderer(this, 60, 47);
    			UpArm2.addBox(0F, -1F, -2F, 4, 2, 3);
    			UpArm2.setRotationPoint(4F, 21F, -3F);
    			UpArm2.setTextureSize(64, 32);
    			UpArm2.mirror = true;
    			setRotation(UpArm2, 0F, -0.2617994F, 0F);
    			Arm2 = new ModelRenderer(this, 76, 47);
    			Arm2.addBox(0F, 0F, 0F, 3, 2, 7);
    			Arm2.setRotationPoint(5.5F, 20F, -3F);
    			Arm2.setTextureSize(64, 32);
    			Arm2.mirror = true;
    			setRotation(Arm2, 0F, 0.3490659F, 0F);
    			Shell1 = new ModelRenderer(this, 92, 2);
    			Shell1.addBox(0F, 0F, 0F, 6, 2, 11);
    			Shell1.setRotationPoint(0F, 17F, -6F);
    			Shell1.setTextureSize(64, 32);
    			Shell1.mirror = true;
    			setRotation(Shell1, 0F, 0F, 0.2617994F);
    			Shell2 = new ModelRenderer(this, 92, 18);
    			Shell2.addBox(-6F, 0F, 0F, 6, 2, 11);
    			Shell2.setRotationPoint(0F, 17F, -6F);
    			Shell2.setTextureSize(64, 32);
    			Shell2.mirror = true;
    			setRotation(Shell2, 0F, 0F, -0.2617994F);
    			Shell3 = new ModelRenderer(this, 70, 12);
    			Shell3.addBox(-5F, 0F, 0F, 5, 2, 5);
    			Shell3.setRotationPoint(0F, 17.5F, 5F);
    			Shell3.setTextureSize(64, 32);
    			Shell3.mirror = true;
    			setRotation(Shell3, 0F, 0F, -0.2617994F);
    			Shell4 = new ModelRenderer(this, 70, 3);
    			Shell4.addBox(0F, 0F, 0F, 5, 2, 5);
    			Shell4.setRotationPoint(0F, 17.5F, 5F);
    			Shell4.setTextureSize(64, 32);
    			Shell4.mirror = true;
    			setRotation(Shell4, 0F, 0F, 0.2617994F);
    			HeadPiece = new ModelRenderer(this, "HeadPiece");
    			HeadPiece.setRotationPoint(0F, 21F, -4F);
    			setRotation(HeadPiece, 0F, 0F, 0F);
    			HeadPiece.mirror = true;
    			Neck = new ModelRenderer(this, 2, 57);
    			Neck.addBox(-2F, -1F, 0F, 4, 2, 2);
    			Neck.setRotationPoint(0F, 0F, -2F);
    			Neck.setTextureSize(64, 32);
    			Neck.mirror = true;
    			setRotation(Neck, 0F, 0F, 0F);
    			Head = new ModelRenderer(this, 2, 46);
    			Head.addBox(-2F, -2F, -4F, 4, 4, 4);
    			Head.setRotationPoint(0F, 0F, -2F);
    			Head.setTextureSize(64, 32);
    			Head.mirror = true;
    			setRotation(Head, 0F, 0F, 0F);
    			Nose = new ModelRenderer(this, 2, 39);
    			Nose.addBox(-1.5F, -1F, -1.5F, 3, 2, 3);
    			Nose.setRotationPoint(0F, 0F, -7.5F);
    			Nose.setTextureSize(64, 32);
    			Nose.mirror = true;
    			setRotation(Nose, -0.0523599F, 0F, 0F);
    			Mouth = new ModelRenderer(this, 2, 33);
    			Mouth.addBox(-1.5F, -0.5F, -2.5F, 3, 1, 3);
    			Mouth.setRotationPoint(0F, 1.3F, -6.5F);
    			Mouth.setTextureSize(64, 32);
    			Mouth.mirror = true;
    			setRotation(Mouth, 0.0872665F, 0F, 0F);
    
    			HeadPiece.addChild(Neck);
    			HeadPiece.addChild(Head);
    			HeadPiece.addChild(Nose);
    			HeadPiece.addChild(Mouth);
    		}
    
    		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);
    			LowerBody.render(f5);
    			LowerBack.render(f5);
    			Leg2.render(f5);
    			Leg1.render(f5);
    			UpArm1.render(f5);
    			Arm1.render(f5);
    			UpArm2.render(f5);
    			Arm2.render(f5);
    			Shell1.render(f5);
    			Shell2.render(f5);
    			Shell3.render(f5);
    			Shell4.render(f5);
    			HeadPiece.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.HeadPiece.rotateAngleY = f3 / (180F / (float) Math.PI);
    			this.HeadPiece.rotateAngleX = f4 / (180F / (float) Math.PI);
    			this.Leg1.rotateAngleY = MathHelper.cos(f * 0.6662F) * 1.4F * f1 - 0.3490659F;
    			this.Leg2.rotateAngleY = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.4F * f1 + 0.3490659F;
    			this.Arm1.rotateAngleY = MathHelper.cos(f * 0.6662F) * 1.4F * f1 - 0.3490659F;
    			this.Arm2.rotateAngleY = MathHelper.cos(f * 0.6662F + (float) Math.PI) * 1.4F * f1 + 0.3490659F;
                   this.Mouth.rotateAngleY = f3 / (180F / (float)Math.PI) + 0.0872665F;
    		}
    
    	}
    
    }
    

    I tried to add this below, but it game me errors:

    public void setMovementVector(float randomMotionVecXIn, float randomMotionVecYIn, float randomMotionVecZIn)
        {
            this.randomMotionVecX = randomMotionVecXIn;
            this.randomMotionVecY = randomMotionVecYIn;
            this.randomMotionVecZ = randomMotionVecZIn;
        }
    
        public boolean hasMovementVector()
        {
            return this.randomMotionVecX != 0.0F || this.randomMotionVecY != 0.0F || this.randomMotionVecZ != 0.0F;
        }

    its from the squid mob, the only aquatic mob i can use to learn, but i dont see anything recent on google too, apreciate some help!

    Posted in: Modification Development
  • 0

    posted a message on Explanation about very small Code part ?

    this topis is closed i got the solution, i had to change here:


    float f = 0.9375F; <--- Set 1.5F for 50% larger parent/adult

    Posted in: Modification Development
  • 0

    posted a message on Explanation about very small Code part ?

    this 1.10 btw

    Posted in: Modification Development
  • 0

    posted a message on Explanation about very small Code part ?

    so i want to make my mob 30% larger what else should i change so the child dont born at 130% too? its strange because at 100% the child born on 50%

    Posted in: Modification Development
  • 0

    posted a message on Explanation about very small Code part ?

    Guys can someone explain me how this work?


    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);
         }  

    protected void preRenderCallback(EntityAgeable entitylivingbaseIn, float partialTickTime) {
    float f = 0.9375F;
    if (entitylivingbaseIn.getGrowingAge() < 0) {
    f = (float)((double)f * 0.25D); < ----- should i decresce here too? i dont get this...
    this.shadowSize = 0.25F;
    } else {
    this.shadowSize = 0.5F;
    }
    GlStateManager.scale(1.5f, 1.5f, 1.5f); <-----for example, if i change f here to make my mob bigger, the child born at same adult size, witch it dont if i let it like above, what else i must change here to make the child follow the logic it follow on f f f?


    }

    Posted in: Modification Development
  • 0

    posted a message on 1.10 Tameable Mob Coding

    should i maybe add this? :


    public boolean processInteract(EntityPlayer player, EnumHand hand, @Nullable ItemStack stack)
        {
            if (this.isTamed())
            {
                if (this.isOwner(player) && !this.worldObj.isRemote && !this.isBreedingItem(stack))
                {
                    this.aiSit.setSitting(!this.isSitting());
                }
            }
            else if ((this.aiTempt == null || this.aiTempt.isRunning()) && stack != null && stack.getItem() == Items.FISH && player.getDistanceSqToEntity(this) < 9.0D)
            {
                if (!player.capabilities.isCreativeMode)
                {
                    --stack.stackSize;
                }
    
                if (!this.worldObj.isRemote)
                {
                    if (this.rand.nextInt(3) == 0)
                    {
                        this.setTamed(true);
                        this.setTameSkin(1 + this.worldObj.rand.nextInt(3));
                        this.setOwnerId(player.getUniqueID());
                        this.playTameEffect(true);
                        this.aiSit.setSitting(true);
                        this.worldObj.setEntityState(this, (byte)7);
                    }
                    else
                    {
                        this.playTameEffect(false);
                        this.worldObj.setEntityState(this, (byte)6);
                    }
                }
    
                return true;
            }
    
            return super.processInteract(player, hand, stack);
        }
    Posted in: Modification Development
  • 0

    posted a message on 1.10 Tameable Mob Coding

    Hello guys!


    Im trying to finish this mob here for a mod, all i need now is taming, im looking on the wolf file to trying to learn, i got what i could, but i could use some help filling the gaps, thanks!


    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 net.minecraft.entity.ai.EntityAISit;
    import net.minecraft.entity.ai.EntityAIFollowOwner;
    
    
    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<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.4D);
                   this.shadowSize = 0.25F;
              } else {
                   this.shadowSize = 0.5F;
              }
              GlStateManager.scale(0.8f, 0.8f, 0.8f);
         }    
         
    };
              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.tasks.addTask(8, this.aiSit);
                 this.tasks.addTask(9, new EntityAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
                 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() {
    
    		}
             
            //atacando se provocado 
            public void setAttackTarget(@Nullable EntityLivingBase entitylivingbaseIn)
            {
            super.setAttackTarget(entitylivingbaseIn);
    
            if (entitylivingbaseIn == null)
            {
                this.setAngry(false);
            }
            else if (!this.isTamed())
            {
                this.setAngry(true);
            }
            }
         
    	         
    
    		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);
    		}
    
             
    
    	}
    
    }
    

    i wonder if i have to make new codes for the siting model or the program does it for me?

    also i wonder if i need to add this:

    public boolean processInteract(EntityPlayer player, EnumHand hand, @Nullable ItemStack stack)
        {
            if (this.isTamed())
            {
                if (this.isOwner(player) && !this.worldObj.isRemote && !this.isBreedingItem(stack))
                {
                    this.aiSit.setSitting(!this.isSitting());
                }
            }
            else if ((this.aiTempt == null || this.aiTempt.isRunning()) && stack != null && stack.getItem() == Items.FISH && player.getDistanceSqToEntity(this) < 9.0D)
            {
                if (!player.capabilities.isCreativeMode)
                {
                    --stack.stackSize;
                }
    
                if (!this.worldObj.isRemote)
                {
                    if (this.rand.nextInt(3) == 0)
                    {
                        this.setTamed(true);
                        this.setTameSkin(1 + this.worldObj.rand.nextInt(3));
                        this.setOwnerId(player.getUniqueID());
                        this.playTameEffect(true);
                        this.aiSit.setSitting(true);
                        this.worldObj.setEntityState(this, (byte)7);
                    }
                    else
                    {
                        this.playTameEffect(false);
                        this.worldObj.setEntityState(this, (byte)6);
                    }
                }
    
                return true;
            }
    
            return super.processInteract(player, hand, stack);
        }
    Posted in: Modification Development
  • 0

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

    this was solved this post is finished

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