Difference between revisions of "Entity statuses"

From wiki.vg
Jump to navigation Jump to search
(Link back to the packet)
(Merge info from Entity metadata's massive diff section that hadn't already already been handled earlier)
(11 intermediate revisions by 2 users not shown)
Line 22: Line 22:
 
  |-
 
  |-
 
  | 4
 
  | 4
  | [[#IronGolem|IronGolem]], [[#EvocationFangs|EvocationFangs]]
+
  | [[#IronGolem|IronGolem]], [[#EvocationFangs|EvocationFangs]], [[#Ravager|Ravager]]
 
  |-
 
  |-
 
  | 5
 
  | 5
Line 71: Line 71:
 
  | 20
 
  | 20
 
  | [[#Insentient|Insentient]]
 
  | [[#Insentient|Insentient]]
 +
|-
 +
| 21
 +
| [[#Gaurdian|Guardian]]
 
  |-
 
  |-
 
  | 22
 
  | 22
Line 118: Line 121:
 
  |-
 
  |-
 
  | 37
 
  | 37
 +
| [[#Living|Living]]
 +
|-
 +
| 38
 +
| [[#Dolphin|Dolphin]]
 +
|-
 +
| 39
 +
| [[#Ravager|Ravager]]
 +
|-
 +
| 40
 +
| [[#Ocelot|Ocelot]]
 +
|-
 +
| 41
 +
| [[#Ocelot|Ocelot]]
 +
|-
 +
| 42
 +
| [[#Villager|Villager]]
 +
|-
 +
| 43
 +
| [[#Player|Player]]
 +
|-
 +
| 44
 +
| [[#Living|Living]]
 +
|-
 +
| 45
 +
| [[#Fox|Fox]]
 +
|-
 +
| 46
 +
| [[#Living|Living]]
 +
|-
 +
| 47
 +
| [[#Living|Living]]
 +
|-
 +
| 48
 +
| [[#Living|Living]]
 +
|-
 +
| 49
 +
| [[#Living|Living]]
 +
|-
 +
| 50
 +
| [[#Living|Living]]
 +
|-
 +
| 51
 +
| [[#Living|Living]]
 +
|-
 +
| 52
 
  | [[#Living|Living]]
 
  | [[#Living|Living]]
 
  |}
 
  |}
Line 233: Line 281:
 
  | 37
 
  | 37
 
  |colspan="2"| Plays the hurt animation and burn hurt sound
 
  |colspan="2"| Plays the hurt animation and burn hurt sound
 +
|-
 +
| 44
 +
|colspan="2"| Plays the hurt animation and sweet berry bush hurt sound
 +
|-
 +
| 46
 +
|colspan="2"| Spawns portal particles when teleporting due to consumption of a chorus fruit or being an endermen
 +
|-
 +
| 47
 +
|colspan="2"| Plays the equipment break sound (unless silent) and spawns break particles for the item in the main hand
 +
|-
 +
| 48
 +
|colspan="2"| Plays the equipment break sound (unless silent) and spawns break particles for the item in the off hand
 +
|-
 +
| 49
 +
|colspan="2"| Plays the equipment break sound (unless silent) and spawns break particles for the item in the head slot
 +
|-
 +
| 50
 +
|colspan="2"| Plays the equipment break sound (unless silent) and spawns break particles for the item in the chest slot
 +
|-
 +
| 51
 +
|colspan="2"| Plays the equipment break sound (unless silent) and spawns break particles for the item in the legs slot
 +
|-
 +
| 52
 +
|colspan="2"| Plays the equipment break sound (unless silent) and spawns break particles for the item in the feet slot
 
  |}
 
  |}
  
Line 279: Line 351:
 
  | 28
 
  | 28
 
  |colspan="2"| Set {{Minecraft Wiki|Server.properties#op-permission-level|op permission level}} to 4
 
  |colspan="2"| Set {{Minecraft Wiki|Server.properties#op-permission-level|op permission level}} to 4
 +
|-
 +
| 43
 +
|colspan="2"| Spawn cloud particles at the player. Sent to a player whose Bad Omen effect is removed to either start a raid or increase its difficulty.
 
  |}
 
  |}
  
Line 324: Line 399:
 
  | 19
 
  | 19
 
  |colspan="2"| Resets the squid's rotation to 0 radians.  Occurs whenever the server calculates that the squid has rotated more than 2 pi radians.
 
  |colspan="2"| Resets the squid's rotation to 0 radians.  Occurs whenever the server calculates that the squid has rotated more than 2 pi radians.
 +
|}
 +
 +
=== [[Entity metadata#Dolphin|Dolphin]] ===
 +
 +
Extends [[#WaterMob|WaterMob]]
 +
 +
{| class="wikitable"
 +
! Status
 +
!colspan="2"| Description
 +
|-
 +
| 38
 +
|colspan="2"| Causes several "happy villager" particles to appear; used when the dolphin has been fed and is locating a structure
 
  |}
 
  |}
  
Line 362: Line 449:
 
  |-
 
  |-
 
  | 7
 
  | 7
 +
|colspan="2"| Spawn heart particles (taming succeeded)
 +
|}
 +
 +
=== [[Entity metadata#Cat|Cat]] ===
 +
 +
Extends [[#Animal|Animal]].
 +
 +
{| class="wikitable"
 +
! Status
 +
!colspan="2"| Description
 +
|-
 +
| 40
 +
|colspan="2"| Spawn smoke particles (taming failed)
 +
|-
 +
| 41
 
  |colspan="2"| Spawn heart particles (taming succeeded)
 
  |colspan="2"| Spawn heart particles (taming succeeded)
 
  |}
 
  |}
Line 387: Line 489:
 
  | 10
 
  | 10
 
  |colspan="2"| Causes the sheep to play the eating grass animation for the next 40 ticks
 
  |colspan="2"| Causes the sheep to play the eating grass animation for the next 40 ticks
 +
|}
 +
 +
=== [[Entity metadata#Fox|Fox]] ===
 +
 +
Extends [[#Animal|Animal]].
 +
 +
{| class="wikitable"
 +
! Status
 +
!colspan="2"| Description
 +
|-
 +
| 45
 +
|colspan="2"| Spawns particles based on the item on the fox's mouth (technically its main hand) to indicate them chewing on it
 
  |}
 
  |}
  
Line 432: Line 546:
 
  | 14
 
  | 14
 
  |colspan="2"| Spawn villager happy particles
 
  |colspan="2"| Spawn villager happy particles
 +
|-
 +
| 42
 +
|colspan="2"| Spawn "splash" particles. Triggered with 1% chance each tick while a raid is active.
 
  |}
 
  |}
  
Line 486: Line 603:
 
  | 15
 
  | 15
 
  |colspan="2"| Spawns between 10 and 45 <code>witchMagic</code> particles.  This status has a .075% chance of happening each tick.
 
  |colspan="2"| Spawns between 10 and 45 <code>witchMagic</code> particles.  This status has a .075% chance of happening each tick.
 +
|}
 +
 +
=== [[Entity metadata#Ravager|Ravager]] ===
 +
 +
Extends [[#Monster|Monster]].
 +
 +
{| class="wikitable"
 +
! Status
 +
!colspan="2"| Description
 +
|-
 +
| 4
 +
| Starts the attack animation.
 +
|-
 +
| 39
 +
|colspan="2"| Marks the ravager as stunned for the next 40 ticks.
 
  |}
 
  |}
  
Line 503: Line 635:
 
  |colspan="2"| Plays the zombie cure finished sound effect (unless the entity is silent)
 
  |colspan="2"| Plays the zombie cure finished sound effect (unless the entity is silent)
 
  |}
 
  |}
 +
 +
=== [[Entity metadata#Guardian|Guardian]] ===
 +
 +
Extends [[#Monster|Monster]].
 +
 +
{| class="wikitable"
 +
! Status
 +
!colspan="2"| Description
 +
|-
 +
| 21
 +
|colspan="2"| Plays the guardian attack sound effect from this entity.
 +
|}
 +
 +
=== [[Entity metadata#ElderGuardian|ElderGuardian]] ===
 +
 +
Extends [[#Guardian|Guardian]].
 +
 +
=== [[Entity metadata#Guardian|Guardian]] ===
  
 
=== [[Entity metadata#Minecart|Minecart]] ===
 
=== [[Entity metadata#Minecart|Minecart]] ===

Revision as of 06:09, 9 January 2020

This article lists entity status codes, by entity. These are used in the Entity Status packet.

Status table

The following table links to the appropriate entity for each status.

Status code Entity(/ies)
0 TippedArrow
1 Rabbit, MinecartSpawner
2 Living
3 Snowball, Egg, Living
4 IronGolem, EvocationFangs, Ravager
5 None
6 AbstractHorse, TameableAnimal
7 AbstractHorse, TameableAnimal
8 Wolf
9 Living
10 Sheep, MinecartTNT
11 IronGolem
12 Villager
13 Villager
14 Villager
15 Witch
16 Zombie Villager
17 Fireworks
18 Animal
19 Squid
20 Insentient
21 Guardian
22 Player
23 Player
24 Player
25 Player
26 Player
27 Player
28 Player
29 Living
30 Living
31 FishingHook
32 ArmorStand
33 Living
34 IronGolem
35 Entity
36 Living
37 Living
38 Dolphin
39 Ravager
40 Ocelot
41 Ocelot
42 Villager
43 Player
44 Living
45 Fox
46 Living
47 Living
48 Living
49 Living
50 Living
51 Living
52 Living

Entity statuses

Entity

Status Description
35 Plays the Totem of Undying animation

Projectile

Extends Entity.

No additional statuses.

Snowball

Extends Projectile.

Status Description
3 Displays 8 snowballpoof particles at the snowball's location

Egg

Extends Projectile.

Status Description
3 Displays 8 iconcrack particles with the egg as a parameter at the egg's location

FishingHook

Extends Entity.

Status Description
31 If the caught entity is the connected player, then cause them to be pulled toward the caster of the fishing rod.

Arrow

Extends Entity.

Abstract base class for TippedArrow (which is used for regular arrows as well as tipped ones) and Spectral Arrow.

TippedArrow

Extends Arrow.

Status Description
0 Spawns tipped arrow particle effects, if the color is not -1.

Fireworks

Extends Entity.

Status Description
17 Triggers the firework explosion effect (based off of the firework info metadata)

Living

Extends Entity.

Status Description
2 Plays the hurt animation and hurt sound
3 Plays the death sound and death animation
29 Plays the shield block sound
30 Plays the shield break sound
33 Plays the thorns sound in addition to playing the hurt animation and hurt sound
36 Plays the hurt animation and drown hurt sound
37 Plays the hurt animation and burn hurt sound
44 Plays the hurt animation and sweet berry bush hurt sound
46 Spawns portal particles when teleporting due to consumption of a chorus fruit or being an endermen
47 Plays the equipment break sound (unless silent) and spawns break particles for the item in the main hand
48 Plays the equipment break sound (unless silent) and spawns break particles for the item in the off hand
49 Plays the equipment break sound (unless silent) and spawns break particles for the item in the head slot
50 Plays the equipment break sound (unless silent) and spawns break particles for the item in the chest slot
51 Plays the equipment break sound (unless silent) and spawns break particles for the item in the legs slot
52 Plays the equipment break sound (unless silent) and spawns break particles for the item in the feet slot

Player

Extends Living.

Status Description
9 Marks item use as finished (finished eating, finished drinking, etc)

This status is not required if you want more control on the server side, this basicly finishes the interaction on the client side to decrease the food quantity, arrow quantity, ...

But you can trigger these changes manually through other packets or prevent those changes on the client.

Examples:

  • Create a 'Infinity Bow' without the first arrow in your inventory constantly changing in quantity.
  • Create a custom found that is infinite, and prevent the stack quantity from descreasing.
  • ...

Note: This works together with the 'Hand data' so this will have to be updated accordingly to 'finish' the interaction manually.

22 Enables reduced debug screen information
23 Disables reduced debug screen information
24 Set op permission level to 0
25 Set op permission level to 1
26 Set op permission level to 2
27 Set op permission level to 3
28 Set op permission level to 4
43 Spawn cloud particles at the player. Sent to a player whose Bad Omen effect is removed to either start a raid or increase its difficulty.

ArmorStand

Extends Living.

Status Description
32 Plays the hit sound, and resets a hit cooldown.

Insentient

Extends Living.

Status Description
20 Spawn explosion particle. Used when:
  • A silverfish enters a block
  • A silverfish exits a block
  • A mob spawner (or minecart mob spawner) spawns an entity (only with entities that support this status)

WaterMob

Extends Insentient.

No additional statuses.

Squid

Extends WaterMob

Status Description
19 Resets the squid's rotation to 0 radians. Occurs whenever the server calculates that the squid has rotated more than 2 pi radians.

Dolphin

Extends WaterMob

Status Description
38 Causes several "happy villager" particles to appear; used when the dolphin has been fed and is locating a structure

Creature

Extends Insentient.

No additional statuses.

Ageable

Extends Creature.

No additional statuses.

Animal

Extends Ageable.

Status Description
18 Spawn "love mode" heart particles

AbstractHorse

Extends Animal.

Status Description
6 Spawn smoke particles (taming failed)
7 Spawn heart particles (taming succeeded)

Cat

Extends Animal.

Status Description
40 Spawn smoke particles (taming failed)
41 Spawn heart particles (taming succeeded)

Rabbit

Extends Animal.

Status Description
1 Causes the rabbit to use its rotated jumping animation, and displays jumping particles.

Sheep

Extends Animal.

Status Description
10 Causes the sheep to play the eating grass animation for the next 40 ticks

Fox

Extends Animal.

Status Description
45 Spawns particles based on the item on the fox's mouth (technically its main hand) to indicate them chewing on it

TameableAnimal

Extends Animal.

Status Description
6 Spawn smoke particles (taming failed)
7 Spawn heart particles (taming succeeded)

Wolf

Extends TameableAnimal.

Status Description
8 Play wolf shaking water animation

Villager

Extends Ageable.

Status Description
12 Spawn villager mating heart particles
13 Spawn villager angry particles
14 Spawn villager happy particles
42 Spawn "splash" particles. Triggered with 1% chance each tick while a raid is active.

Golem

Extends Creature.

No additional statuses.

IronGolem

Extends Golem.

Status Description
4 Plays attack animation and attack sound
11 Causes golem to hold out a rose poppy for 400 ticks (20 seconds)
34 Puts away golem's poppy

EvocationFangs

Extends Entity.

Status Description
4 Starts the attack animation, and plays the entity.evocation_fangs.attack sound.

Monster

Extends Creature.

No additional statuses.

Witch

Extends Monster.

Status Description
15 Spawns between 10 and 45 witchMagic particles. This status has a .075% chance of happening each tick.

Ravager

Extends Monster.

Status Description
4 Starts the attack animation.
39 Marks the ravager as stunned for the next 40 ticks.

Zombie

Extends Monster.

Zombie Villager

Extends Zombie.

Status Description
16 Plays the zombie cure finished sound effect (unless the entity is silent)

Guardian

Extends Monster.

Status Description
21 Plays the guardian attack sound effect from this entity.

ElderGuardian

Extends Guardian.

Guardian

Minecart

Extends Entity.

No additional statuses.

MinecartTNT

Extends Minecart.

Status Description
10 Causes the TNT to ignite. Does not play a sound; the sound must be played separately.

MinecartSpawner

Extends Minecart.

Status Description
1 Resets the delay of the spawner to 200 ticks (the default minimum value).