1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-11-07 01:15:12 +00:00
Files
bedrock-protocol-docs/json/MobEffectPacket.json

124 lines
5.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "1531795524",
"x-format-version": "MISSING VERSION",
"x-minecraft-version": "1.21.120",
"x-protocol-version": 859,
"definitions": {
"3776170543": {
"title": "MobEffectPacketPayload",
"type": "object",
"properties": {
"Effect Amplifier": {
"type": "integer",
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 3
},
"Effect Duration Ticks": {
"type": "integer",
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 5
},
"Effect ID": {
"type": "integer",
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 2
},
"Event ID": {
"title": "MobEffectPacketPayload::Event",
"type": "string",
"enum": [
"Invalid",
"Add",
"Update",
"Remove"
],
"x-underlying-type": "uint8",
"x-serialization-options": [
"EnumAsValue"
],
"x-ordinal-index": 1
},
"Show Particles": {
"type": "boolean",
"x-ordinal-index": 4
},
"Target Runtime ID": {
"$ref": "#/definitions/3541243607",
"x-ordinal-index": 0
},
"Tick": {
"description": "If this packet is referring to the player or a client predicted vehicle they are in control of, this should be the most recently processed PlayerInputTick from their PlayerAuthInputPacket. Otherwise zero.",
"$ref": "#/definitions/1497397410",
"x-ordinal-index": 6
}
},
"required": [
"Effect Amplifier",
"Effect Duration Ticks",
"Effect ID",
"Event ID",
"Show Particles",
"Target Runtime ID",
"Tick"
]
},
"3541243607": {
"title": "ActorRuntimeID",
"type": "object",
"properties": {
"Actor Runtime ID": {
"type": "integer",
"x-underlying-type": "uint64",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 0
}
},
"required": [
"Actor Runtime ID"
]
},
"1497397410": {
"title": "PlayerInputTick",
"type": "object",
"properties": {
"Input tick": {
"description": "In server authoritative movement mode the client supplies this in PlayerAuthInputPacket.\nFor any client-bound packets containing a tick, the server should supply the tick value corresponding to the most recently processed PlayerAuthInputPacket.\nThis allows the client to adjust any client predictions made while the packet was in flight.\nIf the packet is being sent to the client but not relating to data of the player or a client-predicted vehicle, it can be zero.\nIt is also acceptable to specify zero for players, although this may lead to minor visual flickers and less smooth application of CorrectPlayerMovePredictionPacket.",
"type": "integer",
"x-underlying-type": "uint64",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 0
}
},
"required": [
"Input tick"
]
}
},
"title": "MobEffectPacket",
"description": "Mob Effect",
"type": "object",
"properties": {
"mPayload": {
"$ref": "#/definitions/3776170543",
"x-ordinal-index": 0
}
},
"$metaProperties": {
"[cereal:packet]": 28,
"[cereal:packet_details]": "At the start of the game the server sends any mob effects with _sendAdditionalLevelData() if the joining player saved out with them,\nand then anytime a mob effect is added, removed, or updated this packet is sent.<br>\nIt is important for player movement simulation to ensure that the following effects are sent for the player or any client predicted vehicle they are in control of:<br>\n- levitation<br>\n- slow_falling<br>\n- jump<br>\n- movement_speed<br>\n- movement_slowdown<br>\n- weaving"
}
}