Well I was finally able to get back to coding and yep, merely setting the metadata values below 15 worked TY! In the tileentity I now just check for this.getMetadata. which works great! and for the crashing issue I just use this.metaData = 0; inside the tileentity constructor and that resets it to 0 when the game is freshly loaded.
Example:
Block Class
public void onNeighborBlockChange(World world, int i, int j, int k, int l)
{
System.out.println("neighbor Event ran");
if (world.isBlockIndirectlyGettingPowered(i, j, k))
{
world.setBlockMetadataWithNotify(i, j, k, 2,3);
}
else
{
world.setBlockMetadataWithNotify(i, j, k, 0,3);
}
}
TileEntityClass
public TileEntityGlassLaser()
{
this.blockMetadata = 0;
}
@Override
public void updateEntity()
{
if(this.getBlockMetadata() == 2)
{
if(!worldObj.isRemote){
LaserParticleEffects.spawnParticle("test", this.xCoord+0.5f, this.yCoord-0.1f, this.zCoord+0.5f, 1.5D, -0.1D, 1.5D);
}
}
super.updateEntity();
}
TY Everyone!