forked from NiclasOlofsson/MiNET
-
Couldn't load subscription status.
- Fork 0
Chests
Niclas Olofsson edited this page Feb 9, 2015
·
5 revisions
To create a new chest:
- Create a Chest Block.
- Create and place a Chest Block Entity on same coordinates.
Then, on interaction:
- On UseItem..
- Send ContainerOpenPacket.
- Send ContainerSetContentPacket.
- Send TileEntityPackage.
When content change in the chest:
- Handle ContainerSetSlot for chest
- Handle ContainerSetSlot for player
When done:
- Handle ContainerClose for chest.