if(armorType == 2){
int x = MathHelper.floor_double(player.posX);
int y = MathHelper.floor_double(player.posY);
int z = MathHelper.floor_double(player.posZ);
for (int l = 0; l < 4; ++l)
{
x = MathHelper.floor_double(player.posX);
y = MathHelper.floor_double(player.posY-2);
z = MathHelper.floor_double(player.posZ);
if(player.worldObj.getBlock(x,y,z) == Blocks.water)
{
player.motionY = 0.0D;
}
}
}
(put this in your onArmorTick code)
There's still unnecessary code.
Remove the for-loop and also the first time you round the player's position (you don't need it twice).
There's still unnecessary code.
Remove the for-loop and also the first time you round the player's position (you don't need it twice).
Also instead of
Not doing mc modding that much anymore because I am making a full blown game that does not have limitations that mc has. (rip Magiology for now)
I may come back if MC fixes it's rendering pipeline.
That would keep the player's movement if he jumped, right? Instead of locking him into the same spot.
Yes exactly!
It's basically a shorter way of saying
Not doing mc modding that much anymore because I am making a full blown game that does not have limitations that mc has. (rip Magiology for now)
I may come back if MC fixes it's rendering pipeline.
You got it nice!
[url ="http://www.minecraftforum.net/topic/1066990-hardcore-ender-expansion"]
[I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
[url=http://www.minecraftnoobtest.com/test.php][/url]
To take the test, check out
[url=http://www.minecraftnoobtest.com/test.php]http://minecraftnoobtest.com/test.php[/url]