BlockPos.x? Jesus.
It might be xpos, or posx, I haven't actually used 1.8 yet, but I can't imagine its that difficult.
public void onMinecartPass(World worldObj, EntityMinecart cart, BlockPos pos1)
This makes the @Override work and the rail itself works. However when i pass over the rail the game crashes.
worldObj.createExplosion(cart, x, y, z, 0.3F, false);
worldObj.newExplosion(cart, x, y, z, 3.5F, true, true);
createExplosion require 3 int meaning "int x, int y, int z"
public Explosion createExplosion(Entity p_72876_1_, double p_72876_2_, double p_72876_4_, double p_72876_6_, float p_72876_8_, boolean p_72876_9_)
If i write this, the @Override and the rail properties dont work at all. But it doesnt show any errors.
public void onMinecartPass(World worldObj, EntityMinecart cart, BlockPos pos1, int x,int y, int z)
I need these "int x, int y, int z" to become "BlockPos x, BlockPos y, BlockPos z" or something like that but then
if (worldObj.[b]getBlockState(pos1)[/b].getBlock() == ERMBase.armedRail)
{
IBlockState blockMetaData = worldObj.[b]getBlockState(pos1)[/b];
these 2 things dont work.
No you don't! The BlockPos class has methods to get the x/y/z variables! Use those! No need for "BlockPos x, BlockPos y, BlockPos z"!