7 avr. 2015, 12:17

La boucle for dans ta fonction writeToNBT ne sert à rien.
Et toujours dans ton tile entity, ajoute ces deux fonctions pour la synchronisation :

    public Packet getDescriptionPacket()

    {
        NBTTagCompound nbttagcompound = new NBTTagCompound();
        this.writeToNBT(nbttagcompound);
        return new S35PacketUpdateTileEntity(this.xCoord, this.yCoord, this.zCoord, 0, nbttagcompound);
    }

    public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt)
    {
        this.readFromNBT(pkt.func_148857_g());
    }