← Packet index

Packet 96

SetLastHurtByPacket

Any time a player is hit, the id of the last mob that attacked them is sent to the client

Packet datagramWire order
HeaderID 96varuint
0LastHurtByvarint32 · variable (up to 5 bytes)

Serialized fields

1 top-level fields
  1. 0LastHurtByCompressionEnum-as-ValueActorTypeas varint32
    1. 1Undefined
    2. 256Mob
    3. 768PathfinderMob
    4. 2816Monster
    5. 4864Animal
    6. 21248TamableAnimal
    7. 33024Ambient
    8. 68352UndeadMonster
    9. 199424ZombieMonster
    10. 264960Arthropod
    11. 524288Minecart
    12. 1116928SkeletonMonster
    13. 2118400EquineAnimal
    14. 4194304Projectile
    15. 8388608AbstractArrow
    16. 8960WaterAnimal
    17. 16777984VillagerBase
    18. 4874Chicken
    19. 4875Cow
    20. 4876Pig
    21. 4877Sheep
    22. 21262Wolf
    23. 16777999Villager
    24. 4880MushroomCow
    25. 8977Squid
    26. 4882Rabbit
    27. 33043Bat
    28. 788IronGolem
    29. 789SnowGolem
    30. 21270Ocelot
    31. 2118423Horse
    32. 4892PolarBear
    33. 4893Llama
    34. 21278Parrot
    35. 8991Dolphin
    36. 2118424Donkey
    37. 2118425Mule
    38. 2183962SkeletonHorse
    39. 2183963ZombieHorse
    40. 199456Zombie
    41. 2849Creeper
    42. 1116962Skeleton
    43. 264995Spider
    44. 68388PigZombie
    45. 2853Slime
    46. 2854EnderMan
    47. 264999Silverfish
    48. 265000CaveSpider
    49. 2857Ghast
    50. 2858LavaSlime
    51. 2859Blaze
    52. 199468ZombieVillager
    53. 2861Witch
    54. 1116974Stray
    55. 199471Husk
    56. 1116976WitherSkeleton
    57. 2865Guardian
    58. 2866ElderGuardian
    59. 307Npc
    60. 68404WitherBoss
    61. 2869Dragon
    62. 2870Shulker
    63. 265015Endermite
    64. 312Agent
    65. 2873Vindicator
    66. 68410Phantom
    67. 2875IllagerBeast
    68. 317ArmorStand
    69. 318TripodCamera
    70. 319Player
    71. 64ItemEntity
    72. 65PrimedTnt
    73. 66FallingBlock
    74. 67MovingBlock
    75. 4194372ExperiencePotion
    76. 69Experience
    77. 70EyeOfEnder
    78. 71EnderCrystal
    79. 72FireworksRocket
    80. 12582985Trident
    81. 4938Turtle
    82. 21323Cat
    83. 4194380ShulkerBullet
    84. 77FishingHook
    85. 78Chalkboard
    86. 4194383DragonFireball
    87. 12582992Arrow
    88. 4194385Snowball
    89. 4194386ThrownEgg
    90. 83Painting
    91. 4194389LargeFireball
    92. 4194390ThrownPotion
    93. 4194391Enderpearl
    94. 88LeashKnot
    95. 4194393WitherSkull
    96. 90BoatRideable
    97. 4194395WitherSkullDangerous
    98. 93LightningBolt
    99. 4194398SmallFireball
    100. 95AreaEffectCloud
    101. 4194405LingeringPotion
    102. 4194406LlamaSpit
    103. 4194407EvocationFang
    104. 2920EvocationIllager
    105. 2921Vex
    106. 524372MinecartRideable
    107. 524384MinecartHopper
    108. 524385MinecartTNT
    109. 524386MinecartChest
    110. 524387MinecartFurnace
    111. 524388MinecartCommandBlock
    112. 4194410IceBomb
    113. 107Balloon
    114. 9068Pufferfish
    115. 9069Salmon
    116. 199534Drowned
    117. 9071Tropicalfish
    118. 9072Fish
    119. 4977Panda
    120. 2930Pillager
    121. 16778099VillagerV2
    122. 199540ZombieVillagerV2
    123. 117Shield
    124. 886WanderingTrader
    125. 119Lectern
    126. 2936ElderGuardianGhost
    127. 4985Fox
    128. 378Bee
    129. 379Piglin
    130. 4988Hoglin
    131. 4989Strider
    132. 68478Zoglin
    133. 383PiglinBrute
    134. 4992Goat
    135. 9089GlowSquid
    136. 4994Axolotl
    137. 2947Warden
    138. 4996Frog
    139. 9093Tadpole
    140. 390Allay
    141. 218ChestBoatRideable
    142. 5021TraderLlama
    143. 5002Camel
    144. 5003Sniffer
    145. 2956Breeze
    146. 4194445BreezeWindChargeProjectile
    147. 5006Armadillo
    148. 4194447WindChargeProjectile
    149. 1117072Bogged
    150. 145OminousItemSpawner
    151. 2962Creaking
    152. 5011HappyGhast
    153. 916CopperGolem
    154. 9109Nautilus
    155. 74646ZombieNautilus
    156. 1117079Parched
    157. 70552CamelHusk
    158. 921SulfurCube
    159. 154Cushion
    160. 199579Frostbite
    161. 4194460IceBall

Changelog

Stable releases

Changes between stable protocol releases.

Released
Protocol
2225

Packet

1 entry

Changed 1

SetLastHurtByPacket161 changes · ID 96
  • Changed supporting type ActorType: Added enum value Frostbite with value 199579.
  • Changed supporting type ActorType: Added enum value IceBall with value 4194460.
  • Changed supporting type ActorType: Changed enum value Undefined from 0 to 1.
  • Changed supporting type ActorType: Changed enum value Mob from 1 to 256.
  • Changed supporting type ActorType: Changed enum value PathfinderMob from 2 to 768.
  • Changed supporting type ActorType: Changed enum value Monster from 3 to 2816.
  • Changed supporting type ActorType: Changed enum value Animal from 4 to 4864.
  • Changed supporting type ActorType: Changed enum value TamableAnimal from 5 to 21248.
  • Changed supporting type ActorType: Changed enum value Ambient from 6 to 33024.
  • Changed supporting type ActorType: Changed enum value UndeadMonster from 7 to 68352.
  • Changed supporting type ActorType: Changed enum value ZombieMonster from 8 to 199424.
  • Changed supporting type ActorType: Changed enum value Arthropod from 9 to 264960.
  • Changed supporting type ActorType: Changed enum value Minecart from 10 to 524288.
  • Changed supporting type ActorType: Changed enum value SkeletonMonster from 11 to 1116928.
  • Changed supporting type ActorType: Changed enum value EquineAnimal from 12 to 2118400.
  • Changed supporting type ActorType: Changed enum value Projectile from 13 to 4194304.
  • Changed supporting type ActorType: Changed enum value AbstractArrow from 14 to 8388608.
  • Changed supporting type ActorType: Changed enum value WaterAnimal from 15 to 8960.
  • Changed supporting type ActorType: Changed enum value VillagerBase from 16 to 16777984.
  • Changed supporting type ActorType: Changed enum value Chicken from 17 to 4874.
  • Changed supporting type ActorType: Changed enum value Cow from 18 to 4875.
  • Changed supporting type ActorType: Changed enum value Pig from 19 to 4876.
  • Changed supporting type ActorType: Changed enum value Sheep from 20 to 4877.
  • Changed supporting type ActorType: Changed enum value Wolf from 21 to 21262.
  • Changed supporting type ActorType: Changed enum value Villager from 22 to 16777999.
  • Changed supporting type ActorType: Changed enum value MushroomCow from 23 to 4880.
  • Changed supporting type ActorType: Changed enum value Squid from 24 to 8977.
  • Changed supporting type ActorType: Changed enum value Rabbit from 25 to 4882.
  • Changed supporting type ActorType: Changed enum value Bat from 26 to 33043.
  • Changed supporting type ActorType: Changed enum value IronGolem from 27 to 788.
  • Changed supporting type ActorType: Changed enum value SnowGolem from 28 to 789.
  • Changed supporting type ActorType: Changed enum value Ocelot from 29 to 21270.
  • Changed supporting type ActorType: Changed enum value Horse from 30 to 2118423.
  • Changed supporting type ActorType: Changed enum value PolarBear from 31 to 4892.
  • Changed supporting type ActorType: Changed enum value Llama from 32 to 4893.
  • Changed supporting type ActorType: Changed enum value Parrot from 33 to 21278.
  • Changed supporting type ActorType: Changed enum value Dolphin from 34 to 8991.
  • Changed supporting type ActorType: Changed enum value Donkey from 35 to 2118424.
  • Changed supporting type ActorType: Changed enum value Mule from 36 to 2118425.
  • Changed supporting type ActorType: Changed enum value SkeletonHorse from 37 to 2183962.
  • Changed supporting type ActorType: Changed enum value ZombieHorse from 38 to 2183963.
  • Changed supporting type ActorType: Changed enum value Zombie from 39 to 199456.
  • Changed supporting type ActorType: Changed enum value Creeper from 40 to 2849.
  • Changed supporting type ActorType: Changed enum value Skeleton from 41 to 1116962.
  • Changed supporting type ActorType: Changed enum value Spider from 42 to 264995.
  • Changed supporting type ActorType: Changed enum value PigZombie from 43 to 68388.
  • Changed supporting type ActorType: Changed enum value Slime from 44 to 2853.
  • Changed supporting type ActorType: Changed enum value EnderMan from 45 to 2854.
  • Changed supporting type ActorType: Changed enum value Silverfish from 46 to 264999.
  • Changed supporting type ActorType: Changed enum value CaveSpider from 47 to 265000.
  • Changed supporting type ActorType: Changed enum value Ghast from 48 to 2857.
  • Changed supporting type ActorType: Changed enum value LavaSlime from 49 to 2858.
  • Changed supporting type ActorType: Changed enum value Blaze from 50 to 2859.
  • Changed supporting type ActorType: Changed enum value ZombieVillager from 51 to 199468.
  • Changed supporting type ActorType: Changed enum value Witch from 52 to 2861.
  • Changed supporting type ActorType: Changed enum value Stray from 53 to 1116974.
  • Changed supporting type ActorType: Changed enum value Husk from 54 to 199471.
  • Changed supporting type ActorType: Changed enum value WitherSkeleton from 55 to 1116976.
  • Changed supporting type ActorType: Changed enum value Guardian from 56 to 2865.
  • Changed supporting type ActorType: Changed enum value ElderGuardian from 57 to 2866.
  • Changed supporting type ActorType: Changed enum value Npc from 58 to 307.
  • Changed supporting type ActorType: Changed enum value WitherBoss from 59 to 68404.
  • Changed supporting type ActorType: Changed enum value Dragon from 60 to 2869.
  • Changed supporting type ActorType: Changed enum value Shulker from 61 to 2870.
  • Changed supporting type ActorType: Changed enum value Endermite from 62 to 265015.
  • Changed supporting type ActorType: Changed enum value Agent from 63 to 312.
  • Changed supporting type ActorType: Changed enum value Vindicator from 64 to 2873.
  • Changed supporting type ActorType: Changed enum value Phantom from 65 to 68410.
  • Changed supporting type ActorType: Changed enum value IllagerBeast from 66 to 2875.
  • Changed supporting type ActorType: Changed enum value ArmorStand from 67 to 317.
  • Changed supporting type ActorType: Changed enum value TripodCamera from 68 to 318.
  • Changed supporting type ActorType: Changed enum value Player from 69 to 319.
  • Changed supporting type ActorType: Changed enum value ItemEntity from 70 to 64.
  • Changed supporting type ActorType: Changed enum value PrimedTnt from 71 to 65.
  • Changed supporting type ActorType: Changed enum value FallingBlock from 72 to 66.
  • Changed supporting type ActorType: Changed enum value MovingBlock from 73 to 67.
  • Changed supporting type ActorType: Changed enum value ExperiencePotion from 74 to 4194372.
  • Changed supporting type ActorType: Changed enum value Experience from 75 to 69.
  • Changed supporting type ActorType: Changed enum value EyeOfEnder from 76 to 70.
  • Changed supporting type ActorType: Changed enum value EnderCrystal from 77 to 71.
  • Changed supporting type ActorType: Changed enum value FireworksRocket from 78 to 72.
  • Changed supporting type ActorType: Changed enum value Trident from 79 to 12582985.
  • Changed supporting type ActorType: Changed enum value Turtle from 80 to 4938.
  • Changed supporting type ActorType: Changed enum value Cat from 81 to 21323.
  • Changed supporting type ActorType: Changed enum value ShulkerBullet from 82 to 4194380.
  • Changed supporting type ActorType: Changed enum value FishingHook from 83 to 77.
  • Changed supporting type ActorType: Changed enum value Chalkboard from 84 to 78.
  • Changed supporting type ActorType: Changed enum value DragonFireball from 85 to 4194383.
  • Changed supporting type ActorType: Changed enum value Arrow from 86 to 12582992.
  • Changed supporting type ActorType: Changed enum value Snowball from 87 to 4194385.
  • Changed supporting type ActorType: Changed enum value ThrownEgg from 88 to 4194386.
  • Changed supporting type ActorType: Changed enum value Painting from 89 to 83.
  • Changed supporting type ActorType: Changed enum value LargeFireball from 90 to 4194389.
  • Changed supporting type ActorType: Changed enum value ThrownPotion from 91 to 4194390.
  • Changed supporting type ActorType: Changed enum value Enderpearl from 92 to 4194391.
  • Changed supporting type ActorType: Changed enum value LeashKnot from 93 to 88.
  • Changed supporting type ActorType: Changed enum value WitherSkull from 94 to 4194393.
  • Changed supporting type ActorType: Changed enum value BoatRideable from 95 to 90.
  • Changed supporting type ActorType: Changed enum value WitherSkullDangerous from 96 to 4194395.
  • Changed supporting type ActorType: Changed enum value LightningBolt from 97 to 93.
  • Changed supporting type ActorType: Changed enum value SmallFireball from 98 to 4194398.
  • Changed supporting type ActorType: Changed enum value AreaEffectCloud from 99 to 95.
  • Changed supporting type ActorType: Changed enum value LingeringPotion from 100 to 4194405.
  • Changed supporting type ActorType: Changed enum value LlamaSpit from 101 to 4194406.
  • Changed supporting type ActorType: Changed enum value EvocationFang from 102 to 4194407.
  • Changed supporting type ActorType: Changed enum value EvocationIllager from 103 to 2920.
  • Changed supporting type ActorType: Changed enum value Vex from 104 to 2921.
  • Changed supporting type ActorType: Changed enum value MinecartRideable from 105 to 524372.
  • Changed supporting type ActorType: Changed enum value MinecartHopper from 106 to 524384.
  • Changed supporting type ActorType: Changed enum value MinecartTNT from 107 to 524385.
  • Changed supporting type ActorType: Changed enum value MinecartChest from 108 to 524386.
  • Changed supporting type ActorType: Changed enum value MinecartFurnace from 109 to 524387.
  • Changed supporting type ActorType: Changed enum value MinecartCommandBlock from 110 to 524388.
  • Changed supporting type ActorType: Changed enum value IceBomb from 111 to 4194410.
  • Changed supporting type ActorType: Changed enum value Balloon from 112 to 107.
  • Changed supporting type ActorType: Changed enum value Pufferfish from 113 to 9068.
  • Changed supporting type ActorType: Changed enum value Salmon from 114 to 9069.
  • Changed supporting type ActorType: Changed enum value Drowned from 115 to 199534.
  • Changed supporting type ActorType: Changed enum value Tropicalfish from 116 to 9071.
  • Changed supporting type ActorType: Changed enum value Fish from 117 to 9072.
  • Changed supporting type ActorType: Changed enum value Panda from 118 to 4977.
  • Changed supporting type ActorType: Changed enum value Pillager from 119 to 2930.
  • Changed supporting type ActorType: Changed enum value VillagerV2 from 120 to 16778099.
  • Changed supporting type ActorType: Changed enum value ZombieVillagerV2 from 121 to 199540.
  • Changed supporting type ActorType: Changed enum value Shield from 122 to 117.
  • Changed supporting type ActorType: Changed enum value WanderingTrader from 123 to 886.
  • Changed supporting type ActorType: Changed enum value Lectern from 124 to 119.
  • Changed supporting type ActorType: Changed enum value ElderGuardianGhost from 125 to 2936.
  • Changed supporting type ActorType: Changed enum value Fox from 126 to 4985.
  • Changed supporting type ActorType: Changed enum value Bee from 127 to 378.
  • Changed supporting type ActorType: Changed enum value Piglin from 128 to 379.
  • Changed supporting type ActorType: Changed enum value Hoglin from 129 to 4988.
  • Changed supporting type ActorType: Changed enum value Strider from 130 to 4989.
  • Changed supporting type ActorType: Changed enum value Zoglin from 131 to 68478.
  • Changed supporting type ActorType: Changed enum value PiglinBrute from 132 to 383.
  • Changed supporting type ActorType: Changed enum value Goat from 133 to 4992.
  • Changed supporting type ActorType: Changed enum value GlowSquid from 134 to 9089.
  • Changed supporting type ActorType: Changed enum value Axolotl from 135 to 4994.
  • Changed supporting type ActorType: Changed enum value Warden from 136 to 2947.
  • Changed supporting type ActorType: Changed enum value Frog from 137 to 4996.
  • Changed supporting type ActorType: Changed enum value Tadpole from 138 to 9093.
  • Changed supporting type ActorType: Changed enum value Allay from 139 to 390.
  • Changed supporting type ActorType: Changed enum value ChestBoatRideable from 140 to 218.
  • Changed supporting type ActorType: Changed enum value TraderLlama from 141 to 5021.
  • Changed supporting type ActorType: Changed enum value Camel from 142 to 5002.
  • Changed supporting type ActorType: Changed enum value Sniffer from 143 to 5003.
  • Changed supporting type ActorType: Changed enum value Breeze from 144 to 2956.
  • Changed supporting type ActorType: Changed enum value BreezeWindChargeProjectile from 145 to 4194445.
  • Changed supporting type ActorType: Changed enum value Armadillo from 146 to 5006.
  • Changed supporting type ActorType: Changed enum value WindChargeProjectile from 147 to 4194447.
  • Changed supporting type ActorType: Changed enum value Bogged from 148 to 1117072.
  • Changed supporting type ActorType: Changed enum value OminousItemSpawner from 149 to 145.
  • Changed supporting type ActorType: Changed enum value Creaking from 150 to 2962.
  • Changed supporting type ActorType: Changed enum value HappyGhast from 151 to 5011.
  • Changed supporting type ActorType: Changed enum value CopperGolem from 152 to 916.
  • Changed supporting type ActorType: Changed enum value Nautilus from 153 to 9109.
  • Changed supporting type ActorType: Changed enum value ZombieNautilus from 154 to 74646.
  • Changed supporting type ActorType: Changed enum value Parched from 155 to 1117079.
  • Changed supporting type ActorType: Changed enum value CamelHusk from 156 to 70552.
  • Changed supporting type ActorType: Changed enum value SulfurCube from 157 to 921.
  • Changed supporting type ActorType: Changed enum value Cushion from 158 to 154.