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.

Splintax01

Members
  • Joined

  • Last visited

  1. Ok thanks! I'll give this a try. Also, could you give me an example of some vanilla items that use this?
  2. Where exactly an i meant to put this? All I'm getting is errors
  3. I am making a mod and I've made a staff that teleports you to the block you are looking at when you right click. The teleportation works but it teleports me further than where I aim. Here is my code: public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { int distance = 15; //moveEntity(x, y, z) par3EntityPlayer.moveEntity(-distance*Math.sin(Math.toRadians(par3EntityPlayer.rotationYawHead))*Math.cos(Math.toRadians(par3EntityPlayer.rotationPitch)) ,-distance*Math.sin(Math.toRadians(par3EntityPlayer.rotationPitch)) , distance*Math.cos(Math.toRadians(par3EntityPlayer.rotationYawHead))*Math.cos(Math.toRadians(par3EntityPlayer.rotationPitch))); par3EntityPlayer.setItemInUse(par1ItemStack, this.getMaxItemUseDuration(par1ItemStack)); return par1ItemStack; } Anyone know a fix? Thanks
  4. Hey guys. I need some help with code. How can I use ISpecialArmor tom get a full armor set bonus? I want my full set of obsidian armor to be very or completely blast resistant. Please help

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.