Difference between revisions of "Block Actions"
Jump to navigation
Jump to search
(general cleanup) |
(→Chest: Byte 2 is the number of people who have it open, not a Boolean.) |
||
Line 78: | Line 78: | ||
=== Byte 2 === | === Byte 2 === | ||
− | + | Number of players who have the chest open. If 0, the chest is closed; if 1 or more the chest is open. | |
[[Category:Minecraft Modern]] | [[Category:Minecraft Modern]] |
Revision as of 16:48, 10 March 2016
These block actions are used in the Block Action packet.
Contents
Note Block
It shows the note particle being emitted from the block as well as playing the tone.
Byte 1
Instrument type.
Type ID | Type Name |
---|---|
0 | Harp |
1 | Double Bass |
2 | Snare Drum |
3 | Clicks/Sticks |
4 | Bass Drum |
Byte 2
The pitch of the note (between 0–24 inclusive where 0 is the lowest and 24 is the highest). More information about how the pitch values correspond to notes in real life are available at Note Block on the Minecraft wiki.
Piston
Byte 1
The state the piston changes to: 0 for pushing, 1 for pulling.
Byte 2
Direction.
Direction ID | Direction |
---|---|
0 | Down |
1 | Up |
2 | South |
3 | West |
4 | North |
5 | East |
Chest
Animates the chest's lid opening. Note that the notchian server will send this every 3s even if the state hasn't changed.
Byte 1
Not used, always 1.
Byte 2
Number of players who have the chest open. If 0, the chest is closed; if 1 or more the chest is open.