mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-05 11:10:44 +00:00
show animation when player is hurt, start #17
This commit is contained in:
parent
caedd14632
commit
56e0e93a3f
1 changed files with 5 additions and 0 deletions
|
|
@ -11,6 +11,11 @@ function inject(serv, player)
|
||||||
foodSaturation: 0.0,
|
foodSaturation: 0.0,
|
||||||
health: attackedPlayer.entity.health
|
health: attackedPlayer.entity.health
|
||||||
});
|
});
|
||||||
|
|
||||||
|
attackedPlayer._writeOthers('animation',{
|
||||||
|
entityId:attackedPlayer.entity.id,
|
||||||
|
animation:1
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
player._client.on("use_entity", function(packet) {
|
player._client.on("use_entity", function(packet) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue