Jump to content

Awesomeguy8802

Members
  • Posts

    6
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Awesomeguy8802's Achievements

Tree Puncher

Tree Puncher (2/8)

-1

Reputation

  1. Where do I put the Use ItemSword#onItemRightClick? My code for the shooting part is here. First off, Use is not command. Second off he means that you should override onItemRightClick on your Sword class. So I did it in my LavaSword class and this is my code but there is an error on the ItemSword in the @Override ItemSword#onItemRightClick. I also could get any this, posX, and posY statements to work unless I extended my LavaSword class from my EntityLavaShot class. I don't know if that is correct of if I'm putting things in the right classes. @Override ItemSword#onItemRightClick public void attackEntityWithRangedAttack(EntityLivingBase p_82196_1_, float p_82196_2_) { EntityLavaShot entitylavashot = new EntityLavaShot(this.worldObj, this); double d0 = p_82196_1_.posY + (double)p_82196_1_.getEyeHeight() - 1.100000023841858D; double d1 = p_82196_1_.posX - this.posX; double d2 = d0 - entitylavashot.posY; double d3 = p_82196_1_.posZ - this.posZ; float f1 = MathHelper.sqrt_double(d1 * d1 + d3 * d3) * 0.2F; entitylavashot.setThrowableHeading(d1, d2 + (double)f1, d3, 1.6F, 12.0F); this.worldObj.spawnEntityInWorld(entitylavashot); }
  2. Where do I put the Use ItemSword#onItemRightClick? My code for the shooting part is here. First off, Use is not command. Second off he means that you should override onItemRightClick on your Sword class. How would I do that?
  3. Where do I put the Use ItemSword#onItemRightClick? My code for the shooting part is here. public void attackEntityWithRangedAttack(EntityLivingBase p_82196_1_, float p_82196_2_) { Use LavaSword#onItemRightClick; EntityLavaShot entitylavashot = new EntityLavaShot(this.worldObj, this); double d0 = p_82196_1_.posY + (double)p_82196_1_.getEyeHeight() - 1.100000023841858D; double d1 = p_82196_1_.posX - this.posX; double d2 = d0 - entitylavashot.posY; double d3 = p_82196_1_.posZ - this.posZ; float f1 = MathHelper.sqrt_double(d1 * d1 + d3 * d3) * 0.2F; entitylavashot.setThrowableHeading(d1, d2 + (double)f1, d3, 1.6F, 12.0F); this.worldObj.spawnEntityInWorld(entitylavashot); }
  4. Hey guys! I am making a Minecraft mod but I need help with something. I am making a lava sword and I want it so whenever you right click it shoots a small, lava projectile that sets a living entity on fire but I have no idea how to do that. If it is possible and you can help me with this it would be much appreciated. Thanks!
  5. I am making a minecraft mod and I want to make something out of andesite, diorite, and granite. I know that they are variants for stone but I can't figure out how to put them in a crafting recipe. I don't know what to do after Blocks.stone or if I should even do that at all. I would greatly appreciate it if you could help me with my problem. Thanks!
  6. I am a new modder and I need help with my mod. I have looked all over the internet and I can't find how to make a texture work for my item. I have the texture ready but I have no idea how to make it work in my mod. I have looked at the 1.7.10 tutorials and it tells me to do .setTextureName("Example Item"); but the .setTextureName isn't there. Help would be much obliged. Thank's and have a nice day!
×
×
  • Create New...

Important Information

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