statistics, block placed and interacted events, stats event test
This commit is contained in:
1 parent
860c9b6d21
commit
d7ca974f1a
12 files changed
+210
-7
No files matched your search
@@ -160,7 +160,28 @@ __on_player_drops_stack(player) -> (
|
||||
print('Player '+player+' drops current stack.')
|
||||
);
|
||||
|
||||
__on_statistic(player, category, event, value) ->
|
||||
__on_player_interacts_with_block(player, hand, block, face, hitvec) ->
|
||||
(
|
||||
print('__on_statistic(player, category, event, value) -> ['+join(', ',l(player, category, event, value))+']');
|
||||
);
|
||||
print('');
|
||||
print('__on_player_interacts_with_block(player, hand, block, face, hitvec) ');
|
||||
print('block right clicked by player:');
|
||||
print(' - player: '+player);
|
||||
print(' - hand: '+hand);
|
||||
print(' - block: '+block+' at '+map(pos(block), str('%.2f',_)));
|
||||
print(' - face: '+face);
|
||||
print(' - hitvec: '+map(hitvec, str('%.2f',_)))
|
||||
);
|
||||
__on_player_places_block(player, item_tuple, hand, block) ->
|
||||
(
|
||||
l(item, count, nbt) = item_tuple || l('None', 0, null);
|
||||
print('');
|
||||
print('__on_player_places_block(player, item_tuple, hand, block)');
|
||||
print('player places a block:');
|
||||
print(' - player: '+player);
|
||||
print(' - block: '+block+' at '+map(pos(block), str('%.2f',_)));
|
||||
print(' - hand: '+hand);
|
||||
print(' - item:');
|
||||
print(' > name: '+item);
|
||||
print(' > count: '+count);
|
||||
print(' > nbt: '+nbt);
|
||||
);
|
||||
@@ -141,9 +141,11 @@
|
||||
"DamageTracker_scarpetEventMixin",
|
||||
"ServerPlayerEntity_scarpetEventMixin",
|
||||
"FallingBlockEntity_scarpetEventsMixin",
|
||||
"BlockItem_scarpetEventMixin",
|
||||
|
||||
"ChunkTicketManager_scarpetMixin",
|
||||
"ServerChunkManager_scarpetMixin",
|
||||
"StatType_scarpetMixin",
|
||||
|
||||
|
||||
"PistonBlock_movableTEMixin",
|
||||
|
||||
Reference in new issue
Block a user