28 juil. 2015, 12:20

Pour le tile entity c’est bon, le problème vient donc du bloc.
Tout ce que tu as dans la fonction public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) ne sert à rien.
Tu devrais avoir ça :

@Override
public void onBlockPlacedBy(World world, BlockPos pos, IBlockState state, EntityLivingBase entity, ItemStack stack)
{
TileEntity te = world.getTileEntity(pos);
if(te instanceof TileEntityPlateCrafter)
{
TileEntityPlateCrafter tile = (TileEntityPlateCrafter)te;
int l = (MathHelper.floor_double(entity.rotationYaw * 4.0F / 360.0F + 2.5D) & 3);
tile.setDirection((byte)l);
}
}