← 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. 0Undefined
    2. 1Mob
    3. 2PathfinderMob
    4. 3Monster
    5. 4Animal
    6. 5TamableAnimal
    7. 6Ambient
    8. 7UndeadMonster
    9. 8ZombieMonster
    10. 9Arthropod
    11. 10Minecart
    12. 11SkeletonMonster
    13. 12EquineAnimal
    14. 13Projectile
    15. 14AbstractArrow
    16. 15WaterAnimal
    17. 16VillagerBase
    18. 17Chicken
    19. 18Cow
    20. 19Pig
    21. 20Sheep
    22. 21Wolf
    23. 22Villager
    24. 23MushroomCow
    25. 24Squid
    26. 25Rabbit
    27. 26Bat
    28. 27IronGolem
    29. 28SnowGolem
    30. 29Ocelot
    31. 30Horse
    32. 31PolarBear
    33. 32Llama
    34. 33Parrot
    35. 34Dolphin
    36. 35Donkey
    37. 36Mule
    38. 37SkeletonHorse
    39. 38ZombieHorse
    40. 39Zombie
    41. 40Creeper
    42. 41Skeleton
    43. 42Spider
    44. 43PigZombie
    45. 44Slime
    46. 45EnderMan
    47. 46Silverfish
    48. 47CaveSpider
    49. 48Ghast
    50. 49LavaSlime
    51. 50Blaze
    52. 51ZombieVillager
    53. 52Witch
    54. 53Stray
    55. 54Husk
    56. 55WitherSkeleton
    57. 56Guardian
    58. 57ElderGuardian
    59. 58Npc
    60. 59WitherBoss
    61. 60Dragon
    62. 61Shulker
    63. 62Endermite
    64. 63Agent
    65. 64Vindicator
    66. 65Phantom
    67. 66IllagerBeast
    68. 67ArmorStand
    69. 68TripodCamera
    70. 69Player
    71. 70ItemEntity
    72. 71PrimedTnt
    73. 72FallingBlock
    74. 73MovingBlock
    75. 74ExperiencePotion
    76. 75Experience
    77. 76EyeOfEnder
    78. 77EnderCrystal
    79. 78FireworksRocket
    80. 79Trident
    81. 80Turtle
    82. 81Cat
    83. 82ShulkerBullet
    84. 83FishingHook
    85. 84Chalkboard
    86. 85DragonFireball
    87. 86Arrow
    88. 87Snowball
    89. 88ThrownEgg
    90. 89Painting
    91. 90LargeFireball
    92. 91ThrownPotion
    93. 92Enderpearl
    94. 93LeashKnot
    95. 94WitherSkull
    96. 95BoatRideable
    97. 96WitherSkullDangerous
    98. 97LightningBolt
    99. 98SmallFireball
    100. 99AreaEffectCloud
    101. 100LingeringPotion
    102. 101LlamaSpit
    103. 102EvocationFang
    104. 103EvocationIllager
    105. 104Vex
    106. 105MinecartRideable
    107. 106MinecartHopper
    108. 107MinecartTNT
    109. 108MinecartChest
    110. 109MinecartFurnace
    111. 110MinecartCommandBlock
    112. 111IceBomb
    113. 112Balloon
    114. 113Pufferfish
    115. 114Salmon
    116. 115Drowned
    117. 116Tropicalfish
    118. 117Fish
    119. 118Panda
    120. 119Pillager
    121. 120VillagerV2
    122. 121ZombieVillagerV2
    123. 122Shield
    124. 123WanderingTrader
    125. 124Lectern
    126. 125ElderGuardianGhost
    127. 126Fox
    128. 127Bee
    129. 128Piglin
    130. 129Hoglin
    131. 130Strider
    132. 131Zoglin
    133. 132PiglinBrute
    134. 133Goat
    135. 134GlowSquid
    136. 135Axolotl
    137. 136Warden
    138. 137Frog
    139. 138Tadpole
    140. 139Allay
    141. 140ChestBoatRideable
    142. 141TraderLlama
    143. 142Camel
    144. 143Sniffer
    145. 144Breeze
    146. 145BreezeWindChargeProjectile
    147. 146Armadillo
    148. 147WindChargeProjectile
    149. 148Bogged
    150. 149OminousItemSpawner
    151. 150Creaking
    152. 151HappyGhast
    153. 152CopperGolem
    154. 153Nautilus
    155. 154ZombieNautilus
    156. 155Parched
    157. 156CamelHusk
    158. 157SulfurCube
    159. 158Cushion

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.