Difference between revisions of "Block Actions"

From wiki.vg
Jump to navigation Jump to search
(general cleanup)
Line 1: Line 1:
__NOTOC__
+
These block actions are used in the [[Protocol#Block Action|Block Action]] packet.
==== Note Block ====
+
 
 +
== Note Block ==
  
 
It shows the note particle being emitted from the block as well as playing the tone.
 
It shows the note particle being emitted from the block as well as playing the tone.
  
===== Byte 1 =====
+
=== Byte 1 ===
  
 
Instrument type.
 
Instrument type.
  
 
{| class="wikitable"
 
{| class="wikitable"
|- class="row0"
+
|-
! class="col0" | Type ID
+
! Type ID
! class="col1" | Type Name
+
! Type Name
|- class="row1"
+
|-
| class="col0" | 0
+
| 0
| class="col1" | Harp
+
| Harp
|- class="row2"
+
|-
| class="col0" | 1
+
| 1
| class="col1" | Double Bass
+
| Double Bass
|- class="row3"
+
|-
| class="col0" | 2
+
| 2
| class="col1" | Snare Drum
+
| Snare Drum
|- class="row4"
+
|-
| class="col0" | 3
+
| 3
| class="col1" | Clicks/Sticks
+
| Clicks/Sticks
|- class="row5"
+
|-
| class="col0" | 4
+
| 4
| class="col1" | Bass Drum
+
| Bass Drum
|}
+
|}
  
===== Byte 2 =====
+
=== 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 on the [http://www.minecraftwiki.net/wiki/Note_Block official Minecraft wiki].
+
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 {{Minecraft Wiki|Note Block}} on the Minecraft wiki.
  
==== Piston ====
+
== Piston ==
  
===== Byte 1 =====
+
=== Byte 1 ===
  
The state the piston changes to - 0 for pushing, 1 for pulling.
+
The state the piston changes to: 0 for pushing, 1 for pulling.
  
===== Byte 2 =====
+
=== Byte 2 ===
  
 
Direction.
 
Direction.
  
 
{| class="wikitable"
 
{| class="wikitable"
|- class="row0"
+
|-
! class="col0" | Direction ID
+
! Direction ID
! class="col1" | Direction
+
! Direction
|- class="row1"
+
|-
| class="col0" | 0
+
| 0
| class="col1" | Down
+
| Down
|- class="row2"
+
|-
| class="col0" | 1
+
| 1
| class="col1" | Up
+
| Up
|- class="row3"
+
|-
| class="col0" | 2
+
| 2
| class="col1" | South
+
| South
|- class="row4"
+
|-
| class="col0" | 3
+
| 3
| class="col1" | West
+
| West
|- class="row5"
+
|-
| class="col0" | 4
+
| 4
| class="col1" | North
+
| North
|- class="row5"
+
|-
| class="col0" | 5
+
| 5
| class="col1" | East
+
| East
|}
+
|}
  
==== Chest ====
+
== Chest ==
  
 
Animates the chest's lid opening. Note that the notchian server will send this every 3s even if the state hasn't changed.
 
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 =====
+
=== Byte 1 ===
  
Not used - always 1
+
Not used, always 1.
  
===== Byte 2 =====
+
=== Byte 2 ===
  
State of the chest - 0 for closed, 1 for open.
+
New state of the chest: 0 for closed, 1 for open.
  
[[Category:Minecraft_Modern]]
+
[[Category:Minecraft Modern]]

Revision as of 03:08, 5 September 2015

These block actions are used in the Block Action packet.

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

New state of the chest: 0 for closed, 1 for open.