Chests - NiclasOlofsson/MiNET GitHub Wiki

To create a new chest:

  1. Create a Chest Block.
  2. Create and place a Chest Block Entity on same coordinates.

Then, on interaction:

  1. On UseItem..
  2. Send ContainerOpenPacket.
  3. Send ContainerSetContentPacket.
  4. Send TileEntityPackage.

When content change in the chest:

  1. Handle ContainerSetSlot for chest
  2. Handle ContainerSetSlot for player

When done:

  1. Handle ContainerClose for chest.