added inhabited_time and player events revolving around damage, death and respawns.
This commit is contained in:
1 parent
0133ceb507
commit
d6d6b69fcb
12 files changed
+154
-4
No files matched your search
@@ -185,3 +185,38 @@ __on_player_places_block(player, item_tuple, hand, block) ->
|
||||
print(' > count: '+count);
|
||||
print(' > nbt: '+nbt);
|
||||
);
|
||||
|
||||
__on_player_takes_damage(player, amount, source, entity) ->
|
||||
(
|
||||
print('');
|
||||
print('__on_player_takes_damage(player, amount, source, source_entity)');
|
||||
print('player takes damage:');
|
||||
print(' - player: '+player);
|
||||
print(' - amount: '+str('%.2f',amount));
|
||||
print(' - source: '+source);
|
||||
print(' - source_entity: '+entity);
|
||||
);
|
||||
|
||||
__on_player_deals_damage(player, amount, entity) ->
|
||||
(
|
||||
print('');
|
||||
print('__on_player_deals_damage(player, amount, target)');
|
||||
print('player deals damage:');
|
||||
print(' - player: '+player);
|
||||
print(' - amount: '+str('%.2f',amount));
|
||||
print(' - target: '+entity);
|
||||
);
|
||||
|
||||
__on_player_dies(player) ->
|
||||
(
|
||||
print('');
|
||||
print('__on_player_dies(player)');
|
||||
print('Player '+player+' dies.')
|
||||
);
|
||||
|
||||
__on_player_respawns(player) ->
|
||||
(
|
||||
print('');
|
||||
print('__on_player_respawns(player)');
|
||||
print('Player '+player+' respawns.')
|
||||
);
|
||||
@@ -140,6 +140,7 @@
|
||||
"ServerPlayerEntity_scarpetEventMixin",
|
||||
"FallingBlockEntity_scarpetEventsMixin",
|
||||
"BlockItem_scarpetEventMixin",
|
||||
"PlayerManager_scarpetEventsMixin",
|
||||
|
||||
"ChunkTicketManager_scarpetMixin",
|
||||
"ServerChunkManager_scarpetMixin",
|
||||
|
||||
Reference in new issue
Block a user