Jump to content

Splintax01

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Splintax01

  1. Ok, thanks for your help!
  2. Ok thanks! I'll give this a try. Also, could you give me an example of some vanilla items that use this?
  3. Where exactly an i meant to put this? All I'm getting is errors
  4. 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
  5. 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
×
×
  • Create New...

Important Information

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