Plugin channels: Difference between revisions

From wiki.vg
Jump to navigation Jump to search
imported>Benc
(Created page with "'''Plugin channels''' are implemented using packet 0xFA, allowing client mods and server plugins to communicate without cluttering up chat. [http://dinnerbon...")
imported>SasLemon
m (Join Game -> Login (play))
 
(431 intermediate revisions by 29 users not shown)
Line 1: Line 1:
'''Plugin channels''' are implemented using [[Protocol#0xFA|packet 0xFA]], allowing client mods and server plugins to communicate without cluttering up chat. [http://dinnerbone.com/blog/2012/01/13/minecraft-plugin-channels-messaging/ This post by Dinnerbone] is a good introduction and basic documentation.
'''Plugin channels''' allow client mods and server plugins to communicate without cluttering up chat. [https://web.archive.org/web/20220711204310/https://dinnerbone.com/blog/2012/01/13/minecraft-plugin-channels-messaging/ This post by Dinnerbone] is a good introduction and basic documentation.
{{anchor|Internal}}
{{anchor|Internal}}
== Definitions ==
=== Data Types ===
==== PathEntity ====
Represents calculated path of entity.
{| class="wikitable"
! Name
! Type
! Notes
|-
| Current path index
| {{Type|Int}}
| Index in the points array that the entity is currently targeting.
|-
| Target
| PathPoint
|
|-
| Number of points
| {{Type|Int}}
| Number of elements in the following array
|-
| Points array
| {{Type|Array}} of PathPoint
| The actual points on the path
|-
| Open set length
| {{Type|Int}}
| Number of elements in the following array
|-
| Open set
| {{Type|Array}} of PathPoint
|
|-
| Closed set length
| {{Type|Int}}
| Number of elements in the following array
|-
| Closed set
| {{Type|Array}} of PathPoint
|
|}
You can read more here[https://en.wikipedia.org/wiki/A*_search_algorithm].
==== PathPoint ====
Represents single point in path
{| class="wikitable"
! Name
! Type
! Notes
|-
| X
| {{Type|Int}}
|
|-
| Y
| {{Type|Int}}
|
|-
| Z
| {{Type|Int}}
|
|-
| Distance from origin
| {{Type|Float}}
|
|-
| Cost
| {{Type|Float}}
|
|-
| Cost malus
| {{Type|Float}}
| Number that is rendered
|-
| Has been visited
| {{Type|Boolean}}
|
|-
| Node type
| {{Type|Int}} {{Type|Enum}}
| See below
|-
| Distance to target
| {{Type|Float}}
|
|}
Values for node type:
* 0: BLOCKED
* 1: OPEN
* 2: WALKABLE
* 3: TRAPDOOR
* 4: FENCE
* 5: LAVA
* 6: WATER
* 7: WATER_BORDER
* 8: RAIL
* 9: DANGER_FIRE
* 10: DAMAGE_FIRE
* 11: DANGER_CACTUS
* 12: DAMAGE_CACTUS
* 13: DANGER_OTHER
* 14: DAMAGE_OTHER
* 15: DOOR_OPEN
* 16: DOOR_WOOD_CLOSED
* 17: DOOR_IRON_CLOSED
* 18: BREACH
* 19: LEAVES
* 20: STICKY_HONEY
* 21: COCOA
== Reserved channels ==
=== <code>minecraft:register</code> ===
''Two-way''
Allows the client or server to register for one or more custom channels, indicating that data should be sent on those channels if the receiving end supports it too. Payload is a null (<code>0x00</code>) separated list of strings.
This channel was [https://twitter.com/Dinnerbone/status/1012052979250319360 renamed] from <code>REGISTER</code> in 1.13.
=== <code>minecraft:unregister</code> ===
''Two-way''
Allows the client or server to unregister from one or more custom channels, indicating that the receiving end should stop sending data on those channels. Payload is a null-separated list of strings. This is only useful if plugins are disabled/unloaded while the client is connected.
This channel was [https://twitter.com/Dinnerbone/status/1012052979250319360 renamed] from <code>UNREGISTER</code> in 1.13.
== Channels internal to Minecraft ==
== Channels internal to Minecraft ==
As of 1.3, Minecraft itself started using plugin channels to implement new features. These internal channel names are prefixed by <code>MC|</code>.
Since 1.3, Minecraft itself uses several plugin channels to implement new features. These internal channels use the <code>minecraft</code> namespace. They are '''not''' formally registered using the register channel. The vanilla Minecraft server will send these packets regardless, and the vanilla client will accept them.
=== <code>MC|BEdit</code> ===
 
''Client to server''
Note that there were originally more channels included, but most of these were removed in 1.13.  See [https://wiki.vg/index.php?title=Plugin_channels&oldid=14089 this revision of the article] for the original list.  As of 1.14, the only remaining channels other than the brand one are debugging-related channels, which are not normally sent.
 
=== <code>minecraft:brand</code> ===
''Two-way''
 
''For version 1.12.2(protocol version 340) and below, channel name is: <code>MC|Brand</code>''
 
Announces the server and client implementation name right after a player has logged in. For the Notchian client and server, this is "vanilla" (which is chosen using the function <code>net.minecraft.client.ClientBrandRetriever.getClientModName()</code> and encoded as a UTF-8 string).
 
These brands are used in crash reports and a few other locations. It's recommended that custom clients and servers use their own brand names for the purpose of identification (for the Notchian client, the class used to get the brand is one of the few non-obfuscated classes).  The brand is not processed in any other way, and Notchian clients will connect to servers with different brands with no issue (the brand is not used to validate).
 
The Notchian server sends a <code>minecraft:brand</code> packet right after it sends a [[Protocol#Login (play)|Login (play)]] packet, and the Notchian client sends it right after receiving a Login (play) packet.  However, some modified clients and servers will not send this packet (or will take longer to send it than normal), so it is important to not crash if the brand has not been sent.  Additionally, the brand may change at any time (for instance, if connected through a BungeeCord instance, you may switch from a server with one brand to a server with another brand without receiving a Login (play) packet).
 
=== <code>minecraft:debug/path</code> ===
''Server to client''
 
[[File:MC-DebugPath_in_16w14a.png|thumb|What appears to be the purpose of <code><nowiki>minecraft:debug/path</nowiki></code> as seen in the [https://web.archive.org/web/20161224194609/http://mojang.com/2016/04/minecraft-snapshot-16w14a/ snapshot 16w14a announcement].  This is ''not'' found in the normal game.]]
 
Never sent, but does something with pathfinding debugging.  The client reads the data and stores it, but its renderer cannot be enabled without modifications.
 
{|class="wikitable"
! Name
! Type
! Notes
|-
| Unknown 1
| {{Type|Int}}
| Used as a key in the mapping that stores this data; might be an entity ID?
|-
| Unknown 2
| {{Type|Float}}
| Appears to be the "radius" of the squares for each pathpoint
|-
| Entity
| PathEntity
| See Data Types above
|}
 
PathEntity's index point is rendered red; the others are rendered blue. PathEntity's target PathPoint is rendered as a green cube. PathPoint's closed set is rendered red, and open set is rendered green.
 
=== <code>minecraft:debug/neighbors_update</code> ===
''Server to client''
 
Never sent, but used to debug block updates.  Does not render without modifying the client.
 
{|class="wikitable"
! Name
! Type
! Notes
|-
| Time
| {{Type|VarLong}}
| World timestamp at which the update occurred.  200 ticks after this timestamp, the given update stops rendering.
|-
| Location
| {{Type|Position}}
| Location of the block that updated.
|}
 
=== <code>minecraft:debug/structures</code> ===
''Server to client''
 
Never sent, but (presumably) used to debug structures.  Does not render without modifying the client.
 
Adds a single new structure, which will always be rendered if the player is in the same dimension.
 
 
{| class="wikitable"
!colspan="2"| Field name
!colspan="2"| Field type
! Notes
|-
|colspan="2"| Dimension
|colspan="2"| {{Type|Int}}
| The dimension the structure is in.
|-
|colspan="2"| Bounding box minX
|colspan="2"| {{Type|Int}}
|rowspan="6"| Main box for the structure (rendered in white).  min must be less than max
|-
|colspan="2"| Bounding box minY
|colspan="2"| {{Type|Int}}
|-
|colspan="2"| Bounding box minZ
|colspan="2"| {{Type|Int}}
|-
|colspan="2"| Bounding box maxX
|colspan="2"| {{Type|Int}}
|-
|colspan="2"| Bounding box maxY
|colspan="2"| {{Type|Int}}
|-
|colspan="2"| Bounding box maxZ
|colspan="2"| {{Type|Int}}
|-
|colspan="2"| Count
|colspan="2"| {{Type|Int}}
| Number of elements in the following array
|-
|rowspan="7"| Sub-boxes
| Bounding box minX
|rowspan="7"| {{Type|Array}}
| {{Type|Int}}
|rowspan="6"| min must be less than max
|-
| Bounding box minY
| {{Type|Int}}
|-
| Bounding box minZ
| {{Type|Int}}
|-
| Bounding box maxX
| {{Type|Int}}
|-
| Bounding box maxY
| {{Type|Int}}
|-
| Bounding box maxZ
| {{Type|Int}}
|-
| Flag
| {{Type|Boolean}}
| If true, the sub-box is rendered in green, otherwise in blue.
|}
 
 
=== <code>minecraft:debug/worldgen_attempt</code> ===
''Server to client''
 
Never sent, but (presumably) used to debug something with world generation.  Does not render without modifying the client.
 
Adds a colored cube of the list of things to render.  This cube is never removed.
 
{| class="wikitable"
! Field name
! Field type
! Notes
|-
| Location
| {{Type|Position}}
| The center of the location to render.
|-
| Size
| {{Type|Float}}
| Diameter/side length of a cube to render.
|-
| Red
| {{Type|Float}}
| Red value to render, from 0.0 to 1.0.
|-
| Green
| {{Type|Float}}
| Green value to render, from 0.0 to 1.0.
|-
| Blue
| {{Type|Float}}
| Blue value to render, from 0.0 to 1.0.
|-
| Alpha
| {{Type|Float}}
| Alpha value to render, from 0.0 to 1.0.
|}
 
=== <code>minecraft:debug/poi_ticket_count</code> ===
''Server to client''
 
Never sent, but used to set amount of free tickets for [[POI]]
 
{| class="wikitable"
! Field name
! Field type
|-
| Location of POI
| {{Type|Position}}
|-
| Num of tickets
| {{Type|VarInt}}
|}
 
=== <code>minecraft:debug/poi_added</code> ===
''Server to client''
 
Never sent, but used to add debugging [[POI]].  Does not render without modifying the client.
 
{| class="wikitable"
! Field name
! Field type
! Notes
|-
| Location
| Positon
| Location of POI
|-
| POI Type
| {{Type|String}} (x)
| Type of POI, see the [[POI]] article
|-
| Tickets
| {{Type|VarInt}}
| Amount of free tickets
|}
 
=== <code>minecraft:debug/poi_removed</code> ===
''Server to client''
 
Never sent, but used to remove debugging [[POI]].  Does not render without modifying the client.
 
{| class="wikitable"
! Field name
! Field type
! Notes
|-
| Location
| Positon
| Location of POI
|}
 
=== <code>minecraft:debug/village_sections</code> ===
''Server to client''
 
Never sent, but used to add/remove debugging VilliageSections.  Does not render without modifying the client.
 
{| class="wikitable"
! Field name
! Field type
! Notes
|-
| Num of VillageSection locations to be added
| {{Type|VarInt}}
| Number of VillageSection locations in following fields.
|-
| Location of VillageSection
| {{Type|Array}} of {{Type|Position}}
| Locations of VillageSections
|-
| Num of VillageSection locations to be removed
| {{Type|VarInt}}
| Number of VillageSection locations in following fields.
|-
| Location of VillageSection
| {{Type|Array}} of {{Type|Position}}
| Locations of VillageSections
|}
 
=== <code>minecraft:debug/goal_selector</code> ===
''Server to client''
 
Never sent, but (presumably) used to debug goal selectors.  Does not render without modifying the client.
 
Adds multiple lines of text on the given location, spaced by 0.25 units upward on the Y-axis.
 
{| class="wikitable"
!colspan="2"| Field name
!colspan="2"| Field type
! Notes
|-
|colspan="2"| Location
|colspan="2"| {{Type|Position}}
| The location of the goal selector.
|-
|colspan="2"| Unknown
|colspan="2"| {{Type|Int}}
| Key for the goal selector mapping, possibly entity ID.
|-
|colspan="2"| Count
|colspan="2"| {{Type|Int}}
| Number of elements in the following array.
|-
|rowspan="3"| Goals
| Priority
|rowspan="3"| {{Type|Array}}
| {{Type|Int}}
| Currently unused
|-
| Is running
| {{Type|Boolean}}
| Defines the color of the text. #00FF00 if true, #CCCCCC otherwise
|-
| Name
| {{Type|String}} (255)
|
|}
 
=== <code>minecraft:debug/brain</code> ===
''Server to client''
 
Never sent. Used to debug villager's brain. Doesn't render without modifying the client.
 
{| class="wikitable"
! Field name
! Field type
! Notes
|-
| X
| {{Type|Double}}
| X coordinate of villager's position
|-
| Y
| {{Type|Double}}
| Y coordinate of villager's position
|-
| Z
| {{Type|Double}}
| Z coordinate of villager's position
|-
| Unique ID
| {{Type|UUID}}
| Villager's Unique ID
|-
| Entity ID
| EID
| Villager's Entity ID
|-
| Name
| {{Type|String}} (x)
| Villager's name
|-
| Profession
| {{Type|String}} (x)
| Villager's [https://minecraft.wiki/w/Villager#Professions profession]
|-
| XP
| {{Type|VarInt}}
| Villager's experience points
|-
| Inventory
| {{Type|String}} (x)
| Villager's inventory (need more research on that)
|-
| Has path
| {{Type|Boolean}}
| Indicates whether the next field is Path
|-
| Path
| PathEntity
| Movement path
|-
| Wants golem
| {{Type|Boolean}}
| Indicates whether the villager in need of Golem.
|}
 
=== <code>minecraft:debug/bee</code> ===
''Server to client''
 
Never sent, but (presumably) used to debug bee pathfinding to hives and flowers. Does not render without modifying the client.
 
{| class="wikitable"
! Field name
! Field type
! Notes
|-
| X
| {{Type|Double}}
| X coordinate of rendering location
|-
| Y
| {{Type|Double}}
| Y coordinate of rendering location
|-
| Z
| {{Type|Double}}
| Z coordinate of rendering location
|-
| Unique ID
| {{Type|UUID}}
| Bee's unique ID
|-
| EID
| {{Type|VarInt}}
| EID of the Bee
|-
| Has hive position
| {{Type|Boolean}}
| True if following field value is location of bee hive.
|-
| Location of hive
| {{Type|Position}}
| Optional position of bee hive.
|-
| Has flower position
| {{Type|Boolean}}
| True if following field value is location of flower.
|-
| Location of flower
| {{Type|Position}}
| Optional position of flower.
|-
| Travel ticks
| {{Type|VarInt}}
| Purpose unknown.
|-
| Has path
| {{Type|Boolean}}
| True if following field value is path.
|-
| Path
| PathEntity
| Serialized path.
|-
| Num of goals
| {{Type|VarInt}}
| Number of goals in following fields.
|-
| Goal
| {{Type|Array}} of {{Type|String}} (x)
| Probably string name of goal
|-
| Num of blacklisted hives
| {{Type|VarInt}}
| Number of blacklisted hives in following fields.
|-
| Blacklisted hive
| {{Type|Array}} of {{Type|Position}}
| Position of blacklisted hive.
|}
 
=== <code>minecraft:debug/hive</code> ===
''Server to client''
 
Never sent, but (presumably) used to debug hives. Does not render without modifying the client.
 
{| class="wikitable"
! Field name
! Field type
! Notes
|-
| Location
| {{Type|Position}}
| Rendering location. If a player is more than 30 blocks away, rendering is skipped.
|-
| Hive type
| {{Type|String}}
| Name of hive type
|-
| Occupant count
| {{Type|VarInt}}
| Number of bees inside this hive
|-
| Honey level
| {{Type|VarInt}}
| Level of honey inside this hive
|-
| Sedated
| {{Type|Boolean}}
| True if bees are sedated, false otherwise
|-
| Last seen
| {{Type|VarLong}}
| Never used in debug renderer?
|}
 
=== <code>minecraft:debug/game_test_add_marker</code> ===
''Server to client''
 
Never sent, but used to set different debug markers in the world.
Does not render for vanilla clients below version 1.16.5.
 
{| class="wikitable"
! Field name
! Field type
! Notes
|-
| Location
| {{Type|Position}}
| Location of the marker.
|-
| Color
| {{Type|VarInt}}
| Encoded ARGB color (Read below about encoding). 
|-
| Name
| {{Type|String}} (x)
| Name of marker
|-
| Lifetime
| {{Type|VarInt}}
| Time in milliseconds, after which the marker will be destroyed
|}
 
Color can be encoded as following:
 
<code>
int encoded = 0;<br>
encoded = encoded | ((int) blueChannel);<br>
encoded = encoded | ((int) greenChannel << 8);<br>
encoded = encoded | ((int) redChannel << 16);<br>
encoded = encoded | ((int) alphaChannel << 24);<br>
return encoded;
</code>
 
Note that color is normalized by client.
 
=== <code>minecraft:debug/game_test_clear</code> ===
 
Clears all debug markers.
 
=== <code>minecraft:debug/raids</code> ===
''Server to client''
 
Never sent, but used to set debug raid centers. Does not render without modifying the client.


When a player edits an unsigned book.
{| class="wikitable"
! Field name
! Field type
! Notes
|-
| Num of locations
| {{Type|VarInt}}
| Number of locations provided by following array
|-
| Locations
| {{Type|Array}} of {{Type|Position}}
| Locations of raid centers
|}


=== <code>MC|BSign</code> ===
=== <code>minecraft:debug/game_event</code> ===
''Client to server''
''Server to client''


When a player signs a book.
Never sent, but used to debug game events. Does not render without modifying the client.


=== <code>MC|TPack</code> ===
{| class="wikitable"
''Two-Way''
! Field name
! Field type
! Notes
|-
| Game event identifier
| {{Type|String}} (x)
|  
|-
| Game event location
| {{Type|Position}}
|
|}


Remote texture packs.
=== <code>minecraft:debug/game_event_listeners</code> ===
''Server to client''


===  <code>MC|TrList</code> ===
Never sent, but used to track game event listeners. Does not render without modifying the client.
''Two-Way''


The list of trades a villager NPC is offering.
{| class="wikitable"
! Field name
! Field type
! Notes
|-
| Position source type
| {{Type|Identifier}}
|
|-
| Listener data
| {{Type|Byte Array}}
|
|-
| Listener range
| {{Type|VarInt}}
|
|}


=== <code>MC|TrSel</code> ===
{| class="wikitable"
! Position source type
! {{Type|Identifier}}
! Data
|-
| Block position source
| <code>minecraft:block</code>
| Data contain single block position
|-
| Entity position source
| <code>minecraft:entity</code>
| Data contain single EID
|-
|}
=== <code>MC|PingHost</code> ===
''Client to server''
''Client to server''


When a player selects a specific trade offered by a villager NPC.
Sent ''after'' a Server list ping in Minecraft 1.6. More information on [[Server List Ping#1.6]]. In 1.7 and above, the [[Protocol#Request|Request]] ([[Protocol#Status|Status]], 0x00, serverbound) packet is instead sent ''before'' the ping.
 
{{Warning|Since this plugin channel is only sent for the legacy server list ping, it uses the older packet structure.}}


== Notable community plugin channels ==
== Notable community plugin channels ==
Channels listed in this section are not Mojang-sanctioned. This is just a likely-incomplete list of channels used by mods/plugins popular within the Minecraft community.
Channels listed in this section are not used by the vanilla Minecraft client or server. This is just a likely-incomplete list of channels used by mods/plugins popular within the Minecraft community.
 
=== <code>bungeecord:main</code> ===
 
Formerly <code>BungeeCord</code>; additionally, note that the channel name is remapped by spigot so that the old name can still be used in plugins.
 
[http://www.spigotmc.org/wiki/bukkit-bungee-plugin-messaging-channel/ See here]
 
=== <code>fml:handshake</code>, <code>fml:play</code> ===
 
{{Main|Minecraft Forge Handshake}}
 
Previously <code>FML|HS</code>, <code>FML</code>
 
Used by [http://www.minecraftforge.net/forum/index.php Minecraft Forge] to negotiate required mods, among other things.
[https://github.com/MinecraftForge/MinecraftForge/blob/1.15.x/src/main/java/net/minecraftforge/fml/network/NetworkInitialization.java <code>fml:handshake</code> and <code>fml:play</code>]
 
=== <code>ML|OpenTE</code> ===
''Server to client''
 
Used by [http://www.minecraftforum.net/topic/75440-modloader/ ModLoader] to support custom GUI windows. Does not use the REGISTER channel.
 
=== <code>WECUI</code> ===
{{Main|/WorldEditCUI}}
 
Used by the server-side [http://www.enginehub.org/worldedit/ WorldEdit] and the client-side [http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1292886-worldeditcui/ WorldEditCUI] to coordinate selections.
 
=== <code>wdl:init</code>, <code>wdl:control</code>, <code>wdl:request</code> ===
 
{{Main|/World downloader}}
 
Used by the client-side [http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2520465 World Downloader mod] to get permission information and perform permission requests.
 
=== <code>world_info</code>, <code>world_id</code>, <code>worldinfo:world_id</code> ===
 
Used by [https://www.curseforge.com/minecraft/mc-mods/voxelmap VoxelMap] and [https://www.curseforge.com/minecraft/mc-mods/journeymap JourneyMap (1.16.5+)] to query the world ID, which is useful on BungeeCord-style server networks to keep maps unique.
 
[[Category:Protocol Details]]
[[Category:Minecraft Modern]]

Latest revision as of 14:10, 15 September 2024

Plugin channels allow client mods and server plugins to communicate without cluttering up chat. This post by Dinnerbone is a good introduction and basic documentation.

Definitions

Data Types

PathEntity

Represents calculated path of entity.

Name Type Notes
Current path index {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Index in the points array that the entity is currently targeting.
Target PathPoint
Number of points {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Number of elements in the following array
Points array {{#switch: Plugin channels Data types =
       Array
#default =
       Array
   }} of PathPoint
The actual points on the path
Open set length {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Number of elements in the following array
Open set {{#switch: Plugin channels Data types =
       Array
#default =
       Array
   }} of PathPoint
Closed set length {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Number of elements in the following array
Closed set {{#switch: Plugin channels Data types =
       Array
#default =
       Array
   }} of PathPoint

You can read more here[1].


PathPoint

Represents single point in path

Name Type Notes
X {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Y {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Z {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Distance from origin {{#switch: Plugin channels Data types =
       Float
#default =
       Float
   }}
Cost {{#switch: Plugin channels Data types =
       Float
#default =
       Float
   }}
Cost malus {{#switch: Plugin channels Data types =
       Float
#default =
       Float
   }}
Number that is rendered
Has been visited {{#switch: Plugin channels Data types =
       Boolean
#default =
       Boolean
   }}
Node type {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }} {{#switch: Plugin channels
Data types =
       Enum
#default =
       Enum
   }}
See below
Distance to target {{#switch: Plugin channels Data types =
       Float
#default =
       Float
   }}

Values for node type:

  • 0: BLOCKED
  • 1: OPEN
  • 2: WALKABLE
  • 3: TRAPDOOR
  • 4: FENCE
  • 5: LAVA
  • 6: WATER
  • 7: WATER_BORDER
  • 8: RAIL
  • 9: DANGER_FIRE
  • 10: DAMAGE_FIRE
  • 11: DANGER_CACTUS
  • 12: DAMAGE_CACTUS
  • 13: DANGER_OTHER
  • 14: DAMAGE_OTHER
  • 15: DOOR_OPEN
  • 16: DOOR_WOOD_CLOSED
  • 17: DOOR_IRON_CLOSED
  • 18: BREACH
  • 19: LEAVES
  • 20: STICKY_HONEY
  • 21: COCOA

Reserved channels

minecraft:register

Two-way

Allows the client or server to register for one or more custom channels, indicating that data should be sent on those channels if the receiving end supports it too. Payload is a null (0x00) separated list of strings.

This channel was renamed from REGISTER in 1.13.

minecraft:unregister

Two-way

Allows the client or server to unregister from one or more custom channels, indicating that the receiving end should stop sending data on those channels. Payload is a null-separated list of strings. This is only useful if plugins are disabled/unloaded while the client is connected.

This channel was renamed from UNREGISTER in 1.13.

Channels internal to Minecraft

Since 1.3, Minecraft itself uses several plugin channels to implement new features. These internal channels use the minecraft namespace. They are not formally registered using the register channel. The vanilla Minecraft server will send these packets regardless, and the vanilla client will accept them.

Note that there were originally more channels included, but most of these were removed in 1.13. See this revision of the article for the original list. As of 1.14, the only remaining channels other than the brand one are debugging-related channels, which are not normally sent.

minecraft:brand

Two-way

For version 1.12.2(protocol version 340) and below, channel name is: MC|Brand

Announces the server and client implementation name right after a player has logged in. For the Notchian client and server, this is "vanilla" (which is chosen using the function net.minecraft.client.ClientBrandRetriever.getClientModName() and encoded as a UTF-8 string).

These brands are used in crash reports and a few other locations. It's recommended that custom clients and servers use their own brand names for the purpose of identification (for the Notchian client, the class used to get the brand is one of the few non-obfuscated classes). The brand is not processed in any other way, and Notchian clients will connect to servers with different brands with no issue (the brand is not used to validate).

The Notchian server sends a minecraft:brand packet right after it sends a Login (play) packet, and the Notchian client sends it right after receiving a Login (play) packet. However, some modified clients and servers will not send this packet (or will take longer to send it than normal), so it is important to not crash if the brand has not been sent. Additionally, the brand may change at any time (for instance, if connected through a BungeeCord instance, you may switch from a server with one brand to a server with another brand without receiving a Login (play) packet).

minecraft:debug/path

Server to client

What appears to be the purpose of minecraft:debug/path as seen in the snapshot 16w14a announcement. This is not found in the normal game.

Never sent, but does something with pathfinding debugging. The client reads the data and stores it, but its renderer cannot be enabled without modifications.

Name Type Notes
Unknown 1 {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Used as a key in the mapping that stores this data; might be an entity ID?
Unknown 2 {{#switch: Plugin channels Data types =
       Float
#default =
       Float
   }}
Appears to be the "radius" of the squares for each pathpoint
Entity PathEntity See Data Types above

PathEntity's index point is rendered red; the others are rendered blue. PathEntity's target PathPoint is rendered as a green cube. PathPoint's closed set is rendered red, and open set is rendered green.

minecraft:debug/neighbors_update

Server to client

Never sent, but used to debug block updates. Does not render without modifying the client.

Name Type Notes
Time {{#switch: Plugin channels Data types =
       VarLong
#default =
       VarLong
   }}
World timestamp at which the update occurred. 200 ticks after this timestamp, the given update stops rendering.
Location {{#switch: Plugin channels Data types =
       Position
#default =
       Position
   }}
Location of the block that updated.

minecraft:debug/structures

Server to client

Never sent, but (presumably) used to debug structures. Does not render without modifying the client.

Adds a single new structure, which will always be rendered if the player is in the same dimension.


Field name Field type Notes
Dimension {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
The dimension the structure is in.
Bounding box minX {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Main box for the structure (rendered in white). min must be less than max
Bounding box minY {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Bounding box minZ {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Bounding box maxX {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Bounding box maxY {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Bounding box maxZ {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Count {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Number of elements in the following array
Sub-boxes Bounding box minX {{#switch: Plugin channels Data types =
       Array
#default =
       Array
   }}
{{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
min must be less than max
Bounding box minY {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Bounding box minZ {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Bounding box maxX {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Bounding box maxY {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Bounding box maxZ {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Flag {{#switch: Plugin channels Data types =
       Boolean
#default =
       Boolean
   }}
If true, the sub-box is rendered in green, otherwise in blue.


minecraft:debug/worldgen_attempt

Server to client

Never sent, but (presumably) used to debug something with world generation. Does not render without modifying the client.

Adds a colored cube of the list of things to render. This cube is never removed.

Field name Field type Notes
Location {{#switch: Plugin channels Data types =
       Position
#default =
       Position
   }}
The center of the location to render.
Size {{#switch: Plugin channels Data types =
       Float
#default =
       Float
   }}
Diameter/side length of a cube to render.
Red {{#switch: Plugin channels Data types =
       Float
#default =
       Float
   }}
Red value to render, from 0.0 to 1.0.
Green {{#switch: Plugin channels Data types =
       Float
#default =
       Float
   }}
Green value to render, from 0.0 to 1.0.
Blue {{#switch: Plugin channels Data types =
       Float
#default =
       Float
   }}
Blue value to render, from 0.0 to 1.0.
Alpha {{#switch: Plugin channels Data types =
       Float
#default =
       Float
   }}
Alpha value to render, from 0.0 to 1.0.

minecraft:debug/poi_ticket_count

Server to client

Never sent, but used to set amount of free tickets for POI

Field name Field type
Location of POI {{#switch: Plugin channels Data types =
       Position
#default =
       Position
   }}
Num of tickets {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}

minecraft:debug/poi_added

Server to client

Never sent, but used to add debugging POI. Does not render without modifying the client.

Field name Field type Notes
Location Positon Location of POI
POI Type {{#switch: Plugin channels Data types =
       String
#default =
       String
   }} (x)
Type of POI, see the POI article
Tickets {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Amount of free tickets

minecraft:debug/poi_removed

Server to client

Never sent, but used to remove debugging POI. Does not render without modifying the client.

Field name Field type Notes
Location Positon Location of POI

minecraft:debug/village_sections

Server to client

Never sent, but used to add/remove debugging VilliageSections. Does not render without modifying the client.

Field name Field type Notes
Num of VillageSection locations to be added {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Number of VillageSection locations in following fields.
Location of VillageSection {{#switch: Plugin channels Data types =
       Array
#default =
       Array
   }} of {{#switch: Plugin channels
Data types =
       Position
#default =
       Position
   }}
Locations of VillageSections
Num of VillageSection locations to be removed {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Number of VillageSection locations in following fields.
Location of VillageSection {{#switch: Plugin channels Data types =
       Array
#default =
       Array
   }} of {{#switch: Plugin channels
Data types =
       Position
#default =
       Position
   }}
Locations of VillageSections

minecraft:debug/goal_selector

Server to client

Never sent, but (presumably) used to debug goal selectors. Does not render without modifying the client.

Adds multiple lines of text on the given location, spaced by 0.25 units upward on the Y-axis.

Field name Field type Notes
Location {{#switch: Plugin channels Data types =
       Position
#default =
       Position
   }}
The location of the goal selector.
Unknown {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Key for the goal selector mapping, possibly entity ID.
Count {{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Number of elements in the following array.
Goals Priority {{#switch: Plugin channels Data types =
       Array
#default =
       Array
   }}
{{#switch: Plugin channels Data types =
       Int
#default =
       Int
   }}
Currently unused
Is running {{#switch: Plugin channels Data types =
       Boolean
#default =
       Boolean
   }}
Defines the color of the text. #00FF00 if true, #CCCCCC otherwise
Name {{#switch: Plugin channels Data types =
       String
#default =
       String
   }} (255)

minecraft:debug/brain

Server to client

Never sent. Used to debug villager's brain. Doesn't render without modifying the client.

Field name Field type Notes
X {{#switch: Plugin channels Data types =
       Double
#default =
       Double
   }}
X coordinate of villager's position
Y {{#switch: Plugin channels Data types =
       Double
#default =
       Double
   }}
Y coordinate of villager's position
Z {{#switch: Plugin channels Data types =
       Double
#default =
       Double
   }}
Z coordinate of villager's position
Unique ID {{#switch: Plugin channels Data types =
       UUID
#default =
       UUID
   }}
Villager's Unique ID
Entity ID EID Villager's Entity ID
Name {{#switch: Plugin channels Data types =
       String
#default =
       String
   }} (x)
Villager's name
Profession {{#switch: Plugin channels Data types =
       String
#default =
       String
   }} (x)
Villager's profession
XP {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Villager's experience points
Inventory {{#switch: Plugin channels Data types =
       String
#default =
       String
   }} (x)
Villager's inventory (need more research on that)
Has path {{#switch: Plugin channels Data types =
       Boolean
#default =
       Boolean
   }}
Indicates whether the next field is Path
Path PathEntity Movement path
Wants golem {{#switch: Plugin channels Data types =
       Boolean
#default =
       Boolean
   }}
Indicates whether the villager in need of Golem.

minecraft:debug/bee

Server to client

Never sent, but (presumably) used to debug bee pathfinding to hives and flowers. Does not render without modifying the client.

Field name Field type Notes
X {{#switch: Plugin channels Data types =
       Double
#default =
       Double
   }}
X coordinate of rendering location
Y {{#switch: Plugin channels Data types =
       Double
#default =
       Double
   }}
Y coordinate of rendering location
Z {{#switch: Plugin channels Data types =
       Double
#default =
       Double
   }}
Z coordinate of rendering location
Unique ID {{#switch: Plugin channels Data types =
       UUID
#default =
       UUID
   }}
Bee's unique ID
EID {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}	
EID of the Bee
Has hive position {{#switch: Plugin channels Data types =
       Boolean
#default =
       Boolean
   }}
True if following field value is location of bee hive.
Location of hive {{#switch: Plugin channels Data types =
       Position
#default =
       Position
   }}
Optional position of bee hive.
Has flower position {{#switch: Plugin channels Data types =
       Boolean
#default =
       Boolean
   }}
True if following field value is location of flower.
Location of flower {{#switch: Plugin channels Data types =
       Position
#default =
       Position
   }}
Optional position of flower.
Travel ticks {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Purpose unknown.
Has path {{#switch: Plugin channels Data types =
       Boolean
#default =
       Boolean
   }}
True if following field value is path.
Path PathEntity Serialized path.
Num of goals {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Number of goals in following fields.
Goal {{#switch: Plugin channels Data types =
       Array
#default =
       Array
   }} of {{#switch: Plugin channels
Data types =
       String
#default =
       String
   }} (x)
Probably string name of goal
Num of blacklisted hives {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Number of blacklisted hives in following fields.
Blacklisted hive {{#switch: Plugin channels Data types =
       Array
#default =
       Array
   }} of {{#switch: Plugin channels
Data types =
       Position
#default =
       Position
   }}
Position of blacklisted hive.

minecraft:debug/hive

Server to client

Never sent, but (presumably) used to debug hives. Does not render without modifying the client.

Field name Field type Notes
Location {{#switch: Plugin channels Data types =
       Position
#default =
       Position
   }}
Rendering location. If a player is more than 30 blocks away, rendering is skipped.
Hive type {{#switch: Plugin channels Data types =
       String
#default =
       String
   }}
Name of hive type
Occupant count {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Number of bees inside this hive
Honey level {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Level of honey inside this hive
Sedated {{#switch: Plugin channels Data types =
       Boolean
#default =
       Boolean
   }}
True if bees are sedated, false otherwise
Last seen {{#switch: Plugin channels Data types =
       VarLong
#default =
       VarLong
   }}
Never used in debug renderer?

minecraft:debug/game_test_add_marker

Server to client

Never sent, but used to set different debug markers in the world. Does not render for vanilla clients below version 1.16.5.

Field name Field type Notes
Location {{#switch: Plugin channels Data types =
       Position
#default =
       Position
   }}
Location of the marker.
Color {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Encoded ARGB color (Read below about encoding).
Name {{#switch: Plugin channels Data types =
       String
#default =
       String
   }} (x)
Name of marker
Lifetime {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Time in milliseconds, after which the marker will be destroyed

Color can be encoded as following:

int encoded = 0;
encoded = encoded | ((int) blueChannel);
encoded = encoded | ((int) greenChannel << 8);
encoded = encoded | ((int) redChannel << 16);
encoded = encoded | ((int) alphaChannel << 24);
return encoded;

Note that color is normalized by client.

minecraft:debug/game_test_clear

Clears all debug markers.

minecraft:debug/raids

Server to client

Never sent, but used to set debug raid centers. Does not render without modifying the client.

Field name Field type Notes
Num of locations {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Number of locations provided by following array
Locations {{#switch: Plugin channels Data types =
       Array
#default =
       Array
   }} of {{#switch: Plugin channels
Data types =
       Position
#default =
       Position
   }}
Locations of raid centers

minecraft:debug/game_event

Server to client

Never sent, but used to debug game events. Does not render without modifying the client.

Field name Field type Notes
Game event identifier {{#switch: Plugin channels Data types =
       String
#default =
       String
   }} (x)
Game event location {{#switch: Plugin channels Data types =
       Position
#default =
       Position
   }}

minecraft:debug/game_event_listeners

Server to client

Never sent, but used to track game event listeners. Does not render without modifying the client.

Field name Field type Notes
Position source type {{#switch: Plugin channels Data types =
       Identifier
#default =
       Identifier
   }}
Listener data {{#switch: Plugin channels Data types =
       Byte Array
#default =
       Byte Array
   }}
Listener range {{#switch: Plugin channels Data types =
       VarInt
#default =
       VarInt
   }}
Position source type {{#switch: Plugin channels Data types =
       Identifier
#default =
       Identifier
   }} 
Data
Block position source minecraft:block Data contain single block position
Entity position source minecraft:entity Data contain single EID

MC|PingHost

Client to server

Sent after a Server list ping in Minecraft 1.6. More information on Server List Ping#1.6. In 1.7 and above, the Request (Status, 0x00, serverbound) packet is instead sent before the ping.

Since this plugin channel is only sent for the legacy server list ping, it uses the older packet structure.

Notable community plugin channels

Channels listed in this section are not used by the vanilla Minecraft client or server. This is just a likely-incomplete list of channels used by mods/plugins popular within the Minecraft community.

bungeecord:main

Formerly BungeeCord; additionally, note that the channel name is remapped by spigot so that the old name can still be used in plugins.

See here

fml:handshake, fml:play

Main article: Minecraft Forge Handshake

Previously FML|HS, FML

Used by Minecraft Forge to negotiate required mods, among other things. fml:handshake and fml:play

ML|OpenTE

Server to client

Used by ModLoader to support custom GUI windows. Does not use the REGISTER channel.

WECUI

Main article: /WorldEditCUI

Used by the server-side WorldEdit and the client-side WorldEditCUI to coordinate selections.

wdl:init, wdl:control, wdl:request

Main article: /World downloader

Used by the client-side World Downloader mod to get permission information and perform permission requests.

world_info, world_id, worldinfo:world_id

Used by VoxelMap and JourneyMap (1.16.5+) to query the world ID, which is useful on BungeeCord-style server networks to keep maps unique.