added player_picks_up_item and better docs on events.

This commit is contained in:
gnembon committed 2020-09-23 03:26:39 -03:00
1 parent e8b2060fb3
commit 9ca7892859
10 files changed
+415 -113

No files matched your search

@@ -14,7 +14,7 @@ __on_player_deploys_elytra(player) -> (
__on_player_wakes_up(player) -> (
print('');
print('__on_player_wakes_up(player)');
print('Player '+player+' wakes up. Lemme know when this starts working')
print('Player '+player+' wakes up')
);
__on_player_rides(player, forward, strafe, jumping, sneaking) ->
@@ -271,9 +271,18 @@ __on_player_swaps_hands(player) -> (
print(' Player '+player+' swaps hands.')
);
__on_player_collides_with_entity(player, entity) ->
// too much spam
//__on_player_collides_with_entity(player, entity) ->
//(
// print('');
// print('__on_player_collides_with_entity(player, entity)');
// print(' Player '+player+' collides with '+entity);
//);
__on_player_picks_up_item(player, item) ->
(
print('');
print('__on_player_collides_with_entity(player, entity)');
print(' Player '+player+' collides with '+entity);
)
print('__on_player_picks_up_item(player, item)');
print(' Player '+player+' injects '+item);
);
+1
View File
@@ -163,6 +163,7 @@
"FallingBlockEntity_scarpetEventsMixin",
"BlockItem_scarpetEventMixin",
"PlayerManager_scarpetEventsMixin",
"PlayerInventory_scarpetEventMixin",
"ChunkTicketManager_scarpetMixin",
"StatType_scarpetMixin",