Difference between revisions of "Entity statuses"

From wiki.vg
Jump to navigation Jump to search
m (Markup niceness)
(Add a table of status code to entity(/ies))
Line 1: Line 1:
 +
This article lists '''entity status codes''', by entity.
 +
 +
== Status table ==
 +
 +
The following table links to the appropriate entity for each status.
 +
 +
{| class="wikitable"
 +
! Status code
 +
! Entity(/ies)
 +
|-
 +
| 0
 +
| [[#TippedArrow|TippedArrow]]
 +
|-
 +
| 1
 +
| [[#Rabbit|Rabbit]], [[#MinecartSpawner|MinecartSpawner]]
 +
|-
 +
| 2
 +
| [[#Living|Living]]
 +
|-
 +
| 3
 +
| [[#Snowball|Snowball]], [[#Egg|Egg]], [[#Living|Living]]
 +
|-
 +
| 4
 +
| [[#IronGolem|IronGolem]], [[#EvocationFangs|EvocationFangs]]
 +
|-
 +
| 5
 +
| {{no|None}}
 +
|-
 +
| 6
 +
| [[#AbstractHorse|AbstractHorse]], [[#TameableAnimal|TameableAnimal]]
 +
|-
 +
| 7
 +
| [[#AbstractHorse|AbstractHorse]], [[#TameableAnimal|TameableAnimal]]
 +
|-
 +
| 8
 +
| [[#Wolf|Wolf]]
 +
|-
 +
| 9
 +
| [[#Living|Living]]
 +
|-
 +
| 10
 +
| [[#Sheep|Sheep]], [[#MinecartTNT|MinecartTNT]]
 +
|-
 +
| 11
 +
| [[#IronGolem|IronGolem]]
 +
|-
 +
| 12
 +
| [[#Villager|Villager]]
 +
|-
 +
| 13
 +
| [[#Villager|Villager]]
 +
|-
 +
| 14
 +
| [[#Villager|Villager]]
 +
|-
 +
| 15
 +
| {{no|None}}
 +
|-
 +
| 16
 +
| [[#Zombie Villager|Zombie Villager]]
 +
|-
 +
| 17
 +
| [[#Fireworks|Fireworks]]
 +
|-
 +
| 18
 +
| [[#Animal|Animal]]
 +
|-
 +
| 19
 +
| [[#Squid|Squid]]
 +
|-
 +
| 20
 +
| [[#Insentient|Insentient]]
 +
|-
 +
| 22
 +
| [[#Player|Player]]
 +
|-
 +
| 23
 +
| [[#Player|Player]]
 +
|-
 +
| 24
 +
| [[#Player|Player]]
 +
|-
 +
| 25
 +
| [[#Player|Player]]
 +
|-
 +
| 26
 +
| [[#Player|Player]]
 +
|-
 +
| 27
 +
| [[#Player|Player]]
 +
|-
 +
| 28
 +
| [[#Player|Player]]
 +
|-
 +
| 29
 +
| [[#Living|Living]]
 +
|-
 +
| 30
 +
| [[#Living|Living]]
 +
|-
 +
| 31
 +
| [[#FishingHook|FishingHook]]
 +
|-
 +
| 32
 +
| [[#ArmorStand|ArmorStand]]
 +
|-
 +
| 33
 +
| [[#Living|Living]]
 +
|-
 +
| 34
 +
| [[#IronGolem|IronGolem]]
 +
|-
 +
| 35
 +
| [[#Entity|Entity]]
 +
|}
 +
 +
== Entity statuses ==
 +
 
=== [[Entity metadata#Entity|Entity]] ===
 
=== [[Entity metadata#Entity|Entity]] ===
  

Revision as of 03:47, 14 November 2017

This article lists entity status codes, by entity.

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
5 None
6 AbstractHorse, TameableAnimal
7 AbstractHorse, TameableAnimal
8 Wolf
9 Living
10 Sheep, MinecartTNT
11 IronGolem
12 Villager
13 Villager
14 Villager
15 None
16 Zombie Villager
17 Fireworks
18 Animal
19 Squid
20 Insentient
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

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

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

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.

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)

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

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

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.

Zombie

Extends Monster.

Zombie Villager

Extends Zombie.

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

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).