Jump to content

UrsOsprey

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

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

UrsOsprey's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. You were very helpful, Jay. Thank you.
  2. How do you suggest I do that?
  3. When I try to find the payer's location via int posX = (int) Math.floor(player.posX); int posY = (int) Math.floor(player.posY); int posZ = (int) Math.floor(player.posZ); the Y position returns 2 numbers, which it outputs one at a time and goes back and forth between them. How would I go about having it return only 1 value? (A Stable value.. if you will)
  4. EntityPlayer player = (EntityPlayer) event.entity; int posX = (int) Math.floor(player.posX); int posY = (int) Math.floor(player.posY); int posZ = (int) Math.floor(player.posZ); if (player.inventory.getCurrentItem() != null) { if (player.inventory.getCurrentItem().getItem() instanceof Item) { player.worldObj.setBlock(posX, posY + 5, posZ, block); } } When I use this code, it places 2 blocks above my head when I'm grounded, but when I fly, it places 2 blocks above my head with a block of air in between. Is there any way I can get the coords of my feet or something to return a more stable Y value? Thank you!
×
×
  • Create New...

Important Information

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