Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Awesomeguy8802

Members
  • Joined

  • Last visited

Everything posted by Awesomeguy8802

  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!

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.