Jump to content

Darkflame

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by Darkflame

  1. I was messing around with some tutorial code I found, but one piece of code isn't working: drawCenteredString(mc.fontRenderer, "text", width / 2, (height / 2) - 4, Integer.parseInt("FFAA00", 16)); In this, the 'fontRenderer' is underlined and gives the options to: Change to fontRendererObj, Change to standardGalacticFontRenderer Here's the class. Help! package com.example.examplemod; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.ScaledResolution; public class TestGui extends Gui { public TestGui(Minecraft mc) { ScaledResolution scaled = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight); int width = scaled.getScaledWidth(); int height = scaled.getScaledHeight(); drawCenteredString(mc.fontRenderer, "text", width / 2, (height / 2) - 4, Integer.parseInt("FFAA00", 16)); //fontRenderer not working? It gives options: Change to fontRendererObj, Change to standardGalacticFontRenderer } }
  2. package com.darkflame.entity; import net.minecraft.block.Block; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntitySnowball; import net.minecraft.util.BlockPos; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class PiguCarMob extends EntityLiving { private static final String __OBFID = "CL_00001545"; public PiguCarMob(World worldIn) { super(worldIn); } public boolean interact(EntityPlayer entityplayer) { if (riddenByEntity == null || riddenByEntity == entityplayer) { entityplayer.mountEntity(this); return true; } else { return false; } } public boolean isJumping() { return this.isJumping; } //Do I need an @Override here? public void setJumping(boolean p_110255_1_) { this.isJumping = p_110255_1_; } public void fall(float distance, float damageMultiplier) {} protected void func_180433_a(double p_180433_1_, boolean p_180433_3_, Block p_180433_4_, BlockPos p_180433_5_) {} /** * Moves the entity based on the specified heading. Args: strafe, forward */ public void moveEntityWithHeading(float p_70612_1_, float p_70612_2_) { if(this.riddenByEntity != null && this.riddenByEntity instanceof EntityLivingBase) { p_70612_1_ = ((EntityLivingBase)this.riddenByEntity).moveStrafing * 0.1F; //initial value 0.5F p_70612_2_ = ((EntityLivingBase)this.riddenByEntity).moveForward * 0.50F; //Forward move speed } if(this.isJumping) { par2World.spawnEntityInWorld(new EntityWitherSkull(par2World, par3EntityPlayer)); } if (this.isInWater()) { this.moveFlying(p_70612_1_, p_70612_2_, 0.02F); this.moveEntity(this.motionX, this.motionY, this.motionZ); this.motionX *= 0.800000011920929D; this.motionY *= 0.800000011920929D; this.motionZ *= 0.800000011920929D; } else if (this.isInLava()) { this.moveFlying(p_70612_1_, p_70612_2_, 0.02F); this.moveEntity(this.motionX, this.motionY, this.motionZ); this.motionX *= 0.5D; this.motionY *= 0.5D; this.motionZ *= 0.5D; } else { float f2 = 0.91F; if (this.onGround) { f2 = this.worldObj.getBlockState(new BlockPos(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.getEntityBoundingBox().minY) - 1, MathHelper.floor_double(this.posZ))).getBlock().slipperiness * 0.91F; } float f3 = 0.16277136F / (f2 * f2 * f2); this.moveFlying(p_70612_1_, p_70612_2_, this.onGround ? 0.1F * f3 : 0.02F); f2 = 0.91F; if (this.onGround) { f2 = this.worldObj.getBlockState(new BlockPos(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.getEntityBoundingBox().minY) - 1, MathHelper.floor_double(this.posZ))).getBlock().slipperiness * 0.91F; } this.moveEntity(this.motionX, this.motionY, this.motionZ); this.motionX *= (double)f2; this.motionY *= (double)f2; this.motionZ *= (double)f2; } if (this.riddenByEntity != null && this.riddenByEntity instanceof EntityLivingBase) { this.prevRotationYaw = this.rotationYaw = this.riddenByEntity.rotationYaw; this.rotationPitch = this.riddenByEntity.rotationPitch * 0.5F; this.setRotation(this.rotationYaw, this.rotationPitch); this.rotationYawHead = this.renderYawOffset = this.rotationYaw; } if (!this.worldObj.isRemote) { this.setAIMoveSpeed((float)this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).getAttributeValue()); super.moveFlying(p_70612_1_, p_70612_2_, 0.2F); } this.prevLimbSwingAmount = this.limbSwingAmount; double d1 = this.posX - this.prevPosX; double d0 = this.posZ - this.prevPosZ; float f4 = MathHelper.sqrt_double(d1 * d1 + d0 * d0) * 4.0F; if (f4 > 1.0F) { f4 = 1.0F; } this.limbSwingAmount += (f4 - this.limbSwingAmount) * 0.4F; this.limbSwing += this.limbSwingAmount; } /** * returns true if this entity is by a ladder, false otherwise */ public boolean isOnLadder() { return false; } }
  3. Hi I was working on a tank mob, and was going to make it shoot fireballs. I tried to use par2World.spawnEntityInWorld(new EntityWitherSkull(par2World, par3EntityPlayer)); but that didn't work. Probably because it was meant for use in an item. The way I set up the launch of the fireball was (btw do I need an @Override there?) public boolean isJumping() { return this.isJumping; } //Do I need an @Override here? public void setJumping(boolean p_110255_1_) { this.isJumping = p_110255_1_; } and then in the public void moveEntityWithHeading(float p_70612_1_, float p_70612_2_) { } method I put if(isJumping) { par2World.spawnEntityInWorld(new EntityWitherSkull(par2World, par3EntityPlayer)); } What am I doing wrong? Thanks!
  4. Hi! Guess what? I copied code directly from a public source (ars magica 2) because I was interested in the air sled. I have a few seemingly stupid errors Check out the class! (The error is "Syntax error: '}', '{' expected) around line 169 or so (pretty far down there) package com.darkflame.entity; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.DamageSource; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class PiguCarMob extends EntityLiving{ private float rotation; public PiguCarMob(World par1World){ super(par1World); this.setSize(0.5f, 1); this.stepHeight = 1.02f; } @Override public void onUpdate(){ this.stepHeight = 1.02f; if (worldObj.isRemote){ rotation += 1f; /*if (this.worldObj.isAirBlock((int)this.posX, (int)(this.posY - 1), (int)this.posZ)){ for (int i = 0; i < AMCore.config.getGFXLevel(); ++i){ AMParticle cloud = (AMParticle)AMCore.proxy.particleManager.spawn(worldObj, "sparkle2", posX, posY + 0.5, posZ); if (cloud != null){ cloud.addRandomOffset(1, 1, 1); cloud.AddParticleController(new ParticleFadeOut(cloud, 1, false).setFadeSpeed(0.01f)); } } }*/ } super.onUpdate(); } public float getRotation(){ return rotation; } @Override public boolean shouldRiderSit(){ return false; } @Override public boolean interact(EntityPlayer par1EntityPlayer){ if (this.riddenByEntity != null && this.riddenByEntity instanceof EntityPlayer && this.riddenByEntity != par1EntityPlayer){ return true; }else{ if (!this.worldObj.isRemote){ if (par1EntityPlayer.isSneaking()){ this.setDead(); EntityItem item = new EntityItem(worldObj); item.setPosition(posX, posY, posZ); //item.setEntityItemStack(ItemsCommonProxy.airSledEnchanted.copy()); worldObj.spawnEntityInWorld(item); }else{ par1EntityPlayer.mountEntity(this); } } return true; } } @Override public void updateRiderPosition(){ if (this.riddenByEntity != null){ double d0 = Math.cos(this.rotationYaw * Math.PI / 180.0D) * 0.4D; double d1 = Math.sin(this.rotationYaw * Math.PI / 180.0D) * 0.4D; this.riddenByEntity.setPosition(this.posX, this.posY + this.getMountedYOffset() + this.riddenByEntity.getYOffset(), this.posZ); } } @Override public void moveEntityWithHeading(float par1, float par2){ if (this.riddenByEntity != null){ this.prevRotationYaw = this.rotationYaw = this.riddenByEntity.rotationYaw; this.rotationPitch = this.riddenByEntity.rotationPitch * 0.5F; this.setRotation(this.rotationYaw, this.rotationPitch); this.rotationYawHead = this.renderYawOffset = this.rotationYaw; par1 = ((EntityLivingBase)this.riddenByEntity).moveStrafing * 0.5F; par2 = ((EntityLivingBase)this.riddenByEntity).moveForward; if (par2 <= 0.0F){ par2 *= 0.25F; } this.stepHeight = 1.0F; this.jumpMovementFactor = this.getAIMoveSpeed() * 0.1F; if (!this.worldObj.isRemote){ par2 *= 0.06f; if (par1 != 0){ float f4 = MathHelper.sin(this.rotationYaw * (float)Math.PI / 180.0F); float f5 = MathHelper.cos(this.rotationYaw * (float)Math.PI / 180.0F); this.motionX += (par1 * f5 - par2 * f4) * 0.06f; this.motionZ += (par2 * f5 + par1 * f4) * 0.06f; } this.motionX += -Math.sin(Math.toRadians(this.rotationYaw)) * par2; this.motionY += -Math.sin(Math.toRadians(this.rotationPitch)) * par2; this.motionZ += Math.cos(Math.toRadians(this.rotationYaw)) * par2; } }else{ if (!this.onGround && !this.isInWater()) this.motionY = -0.1f; else this.motionY = 0f; this.motionX *= 0.7f; this.motionZ *= 0.7f; } if (this.riddenByEntity != null) this.setSize(0.5f, 3); this.moveEntity(this.motionX, this.motionY, this.motionZ); if (this.riddenByEntity != null) this.setSize(0.5f, 1); float f2 = 0.91F; this.motionY *= f2;//0.9800000190734863D; this.motionX *= f2; this.motionZ *= f2; } @Override public double getMountedYOffset(){ return 1.6f; } @Override protected void entityInit(){ super.entityInit(); } @Override public void playSound(String par1Str, float par2, float par3){ } /*@Override protected void fall(float par1){ }*/ @Override public boolean canBeCollidedWith(){ return true; } @Override public AxisAlignedBB getCollisionBox(Entity par1Entity){ return null; } @Override public boolean attackEntityFrom(DamageSource par1DamageSource, float par2){ if (this.ridingEntity != null) this.ridingEntity.mountEntity(null); return false; } } //********I AM GETTING THE ERROR RIGHT HERE**********************************:"Syntax error on '}'; '{' expected" this.stepHeight = 1.0F; this.jumpMovementFactor = this.getAIMoveSpeed() * 0.1F; if (!this.worldObj.isRemote) { this.setAIMoveSpeed((float)this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).getAttributeValue()); super.moveEntityWithHeading(p_70612_1_, p_70612_2_); } this.prevLimbSwingAmount = this.limbSwingAmount; double d1 = this.posX - this.prevPosX; double d0 = this.posZ - this.prevPosZ; float f4 = MathHelper.sqrt_double(d1 * d1 + d0 * d0) * 4.0F; if (f4 > 1.0F) { f4 = 1.0F; } this.limbSwingAmount += (f4 - this.limbSwingAmount) * 0.4F; this.limbSwing += this.limbSwingAmount; } /*else*/ { this.stepHeight = 0.5F; this.jumpMovementFactor = 0.02F; super.moveEntityWithHeading(p_70612_1_, p_70612_2_); } } //}
  5. btw I have maybe 12 topics on flying mobs out there I just can't do it...
  6. Hi! I was trying to find the location of the boat entity in the minecraft files but couldn't... Could anyone give me an exact directory of where this would be in the forge source files? (I feel so stupid...) Thanks!
  7. Hi! I was working on my mob, and it's supposed to be a helicopter. I hate how realistic the helicopters are from the flans and MCHeli mods, and I was poking around at alternative flying methods, and I saw the flying broom from witchery and the air sled from ars magica 2 mod. I looked around, but I couldn't find any source code out there for them. Does anyone have a link out there for any, or can someone tell me how to do this? Thanks!
  8. Hey I'm a noob at coding, and I know this could get a lot of criticization, but I have made a mod and there's one thing I'd like to add to it; A Helicopter. I've asked around and no advice anyone could give me did the trick. I can't give money, but if you have a steam account, I have an extra copy of terraria that I'll give anyone who can write this code for me. Please email me at darkfirecatproductions@gmail.com or mewdude@cox.net if you're interested. A few guidelines: -A mob -Space = up, ctrl = down -needs to be modelable, I'll handle the animation -WASD directions, mouse turns; turning speed limited Thanks, and yes, I know, this is pretty horrible of me, but I'd just like to mess around with it. Thanks!
  9. Don't use the turbo model. Just use the normal model without a preset.
  10. I looked at that, but when I try to do that it makes me change it to onUpdate(). But I after poking around the arrow class I think that's better.
  11. Hi! I was working on a bullet entity, and right now it's invisible, and I'd like to add particles that spawn every tick at it's coordinates while it's flying. I looked at the world.spawnParticle(etc etc etc etc);, and then I poked around the arrow class a bit and found this bit of code, but I don't know how to set the particles to always spawn: public void setIsCritical(boolean p_70243_1_) { byte b0 = this.dataWatcher.getWatchableObjectByte(16); p_70243_1_ = true; if (p_70243_1_) { this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 | 1))); } else { this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 & -2))); } p_70243_1_ = true; } public boolean getIsCritical() { byte b0 = this.dataWatcher.getWatchableObjectByte(16); return (b0 & 1) != 0; } So, how would I change it to make it so it would always spawn crit particles behind the entity while it flies?
  12. I followed the event tutorial, but what event should I use? I can't use the interact event because that would shoot a bullet every time I mounted the mob.
  13. I want to make the bullet shoot when the player is riding the mech, and he right clicks.
  14. Hi! I've been working on a Rideable Mech mod, and I looked into making the battle mech shoot. I looked at some gun tutorials, and followed them. So I have a gun Item. However, I tried to make it so when the person was riding the mech, they would be able to right click and the bullet entity would be created, and work as if it was fired from a gun. Naturally, this didn't work. How could it work? Maybe if I made an item that only was able to create the bullet entity when I was riding the mech? but how would I make it recognize that I was in the mech? Help Please! D:> Here's my mob class: package com.mech.entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class BattleMechMob extends EntityMob { public BattleMechMob(World worldIn) { super(worldIn); // TODO Auto-generated constructor stub } public boolean interact(EntityPlayer entityplayer) { if (riddenByEntity == null || riddenByEntity == entityplayer) { entityplayer.mountEntity(this); return true; } else { return false; } } public void moveEntityWithHeading(float p_70612_1_, float p_70612_2_) { if (this.riddenByEntity != null && this.riddenByEntity instanceof EntityLivingBase) { this.prevRotationYaw = this.rotationYaw = this.riddenByEntity.rotationYaw; this.rotationPitch = this.riddenByEntity.rotationPitch * 0.5F; this.setRotation(this.rotationYaw, this.rotationPitch); this.rotationYawHead = this.renderYawOffset = this.rotationYaw; //this.posY = this.rotationPitch; new addition //this.posY = ((EntityLivingBase)this.riddenByEntity).moveFlying(p_70612_1_, p_70612_2_, ); //this.posY = ((EntityLivingBase)this.riddenByEntity).moveFlying(strafe, forward, friction); p_70612_1_ = ((EntityLivingBase)this.riddenByEntity).moveStrafing * 0.1F; //initial value 0.5F p_70612_2_ = ((EntityLivingBase)this.riddenByEntity).moveForward * 0.50F; //Forward move speed if (p_70612_2_ <= 0.0F) { p_70612_2_ *= 0.25F; //Reverse move speed } this.stepHeight = 1.0F; this.jumpMovementFactor = this.getAIMoveSpeed() * 0.1F; if (!this.worldObj.isRemote) { this.setAIMoveSpeed((float)this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).getAttributeValue()); super.moveEntityWithHeading(p_70612_1_, p_70612_2_); } this.prevLimbSwingAmount = this.limbSwingAmount; double d1 = this.posX - this.prevPosX; double d0 = this.posZ - this.prevPosZ; float f4 = MathHelper.sqrt_double(d1 * d1 + d0 * d0) * 4.0F; if (f4 > 1.0F) { f4 = 1.0F; } this.limbSwingAmount += (f4 - this.limbSwingAmount) * 0.4F; this.limbSwing += this.limbSwingAmount; } else { this.stepHeight = 0.5F; this.jumpMovementFactor = 0.02F; super.moveEntityWithHeading(p_70612_1_, p_70612_2_); } } } Here's my gun class: package com.mech.item; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.DamageSource; import net.minecraft.world.World; import com.mech.entity.EntityBlasterBolt; public class ItemBlasterRifle extends Item { public ItemBlasterRifle() { super(); setCreativeTab(CreativeTabs.tabCombat); setUnlocalizedName("blasterRifle"); } @Override public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World,EntityPlayer par3EntityPlayer) { if(par3EntityPlayer.capabilities.isCreativeMode||par3EntityPlayer.inventory.consumeInventoryItem(Items.redstone)) { par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F)); if (!par2World.isRemote) { par2World.spawnEntityInWorld(new EntityBlasterBolt(par2World, par3EntityPlayer)); } } return par1ItemStack; } } And here's my bullet class: package com.mech.entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.projectile.EntityThrowable; import net.minecraft.util.DamageSource; import net.minecraft.util.EnumParticleTypes; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; public class EntityBlasterBolt extends EntityThrowable { private float explosionRadius = 1.5F; public EntityBlasterBolt(World par1World) { super(par1World); } public EntityBlasterBolt(World par1World, EntityLivingBase par2EntityLivingBase) { super(par1World, par2EntityLivingBase); } public EntityBlasterBolt(World par1World, double par2, double par4, double par6) { super(par1World, par2, par4, par6); } @Override protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { if(true){ this.attackEntityFrom(DamageSource.generic, 100); } this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)this.explosionRadius , false); this.setDead(); } public void onUpdate() { super.onUpdate(); this.worldObj.spawnParticle(EnumParticleTypes.CRIT_MAGIC, this.posX, this.posY, this.posZ, 100.0D, 100.0D, 100.0D, new int[100]); } } Thank you to anyone that helps <:3
  15. Hi! This is like, the 10th post in this "Help with flying mobs" thing where I end up removing them. But I think I know what to ask this time! So, I was using some code from the horse class to make the mobs rideable and while messing around I found this line of code, where the strafe, forward, and friction values need to be modified: this.posY = ((EntityLivingBase)this.riddenByEntity).moveFlying(strafe, forward, friction); I assume that the strafe value should be p_70612_1_ and the forward value should be p_70612_2_, but I don't know what to put for friction. ***Side question that doesn't really need to be answered: Once the above question is answered, it would be awesome if I could get this info too- What else in my class do I need to change, if anything, to make the [this.posY=etc] line do something? here's the class: package com.darkflame.entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class RedCarMob extends EntityMob { public RedCarMob(World worldIn) { super(worldIn); } public boolean interact(EntityPlayer entityplayer) { if (riddenByEntity == null || riddenByEntity == entityplayer) { entityplayer.mountEntity(this); return true; } else { return false; } } public void moveEntityWithHeading(float p_70612_1_, float p_70612_2_) { if (this.riddenByEntity != null && this.riddenByEntity instanceof EntityLivingBase) { this.prevRotationYaw = this.rotationYaw = this.riddenByEntity.rotationYaw; this.rotationPitch = this.riddenByEntity.rotationPitch * 0.5F; this.setRotation(this.rotationYaw, this.rotationPitch); this.rotationYawHead = this.renderYawOffset = this.rotationYaw; p_70612_1_ = ((EntityLivingBase)this.riddenByEntity).moveStrafing * 0.5F; p_70612_2_ = ((EntityLivingBase)this.riddenByEntity).moveForward; if (p_70612_2_ <= 0.0F) { p_70612_2_ *= 0.25F; } this.stepHeight = 1.0F; this.jumpMovementFactor = this.getAIMoveSpeed() * 0.1F; if (!this.worldObj.isRemote) { this.setAIMoveSpeed((float)this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).getAttributeValue()); super.moveEntityWithHeading(p_70612_1_, p_70612_2_); } this.prevLimbSwingAmount = this.limbSwingAmount; double d1 = this.posX - this.prevPosX; double d0 = this.posZ - this.prevPosZ; float f4 = MathHelper.sqrt_double(d1 * d1 + d0 * d0) * 4.0F; if (f4 > 1.0F) { f4 = 1.0F; } this.limbSwingAmount += (f4 - this.limbSwingAmount) * 0.4F; this.limbSwing += this.limbSwingAmount; } else { this.stepHeight = 0.5F; this.jumpMovementFactor = 0.02F; super.moveEntityWithHeading(p_70612_1_, p_70612_2_); } } } Thank you so much!
  16. When and where was this? and can you please just tell me where I can find the creative flying class?
  17. There aren't any other flying posts that've been replied to- I took them down when I fixed something
  18. It's self explanatory, and it's embarrassing. I'm trying to make a flyable mob and want to look at creative flying, but I can't find the creative flying class See? Embarrassing. Can anyone tell me where to find it?
  19. Hi! I was poking around the source files a bit and I tried to find a class for a chest, but I couldn't find it! So I guess I have 2 questions: Where can I find a storage GUI class to use as a parent class, and how would I open a storage GUI on the item's use?
  20. It didn't work... but so far, here is my class:package com.camp.entity; import com.camp.item.ItemManager; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAISwimming; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.passive.EntityHorse; import net.minecraft.world.World; public class UnicornMob extends EntityHorse { public boolean stationary; public UnicornMob(World worldIn) { super(worldIn); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(1, new EntityAIWander(this, 1.0D)); } protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(30.0D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.3d); } @Override public void dropFewItems(boolean recentlyHit, int lootLevel) { int quantity = this.rand.nextInt(4) + 1; for (int i = 0; i < quantity; i++) { if (this.isBurning()) { this.dropItem(ItemManager.unicornHorn, 1); } else { this.dropItem(ItemManager.unicornHorn, 1); } } } public boolean isAIEnabled() { return true; } }
  21. What if I didn't want a saddle or horse GUI- just right click and I'm riding?
  22. The very sad part is: ... it's very sad... I can't find the EntityHorse Class.
×
×
  • Create New...

Important Information

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