Merge docs for 'Merge pull request #623 from BisUmTo/onTrade-Scarpet-Event

Added onTrade Scarpet Event'
This commit is contained in:
github-actions[bot] committed 2020-12-12 04:43:35 +00:00
1 parent fe611145a9
commit 0e41ce4427
1 file changed
+6 -1
+6 -1
View File
@@ -4051,7 +4051,12 @@ adjusted.
### `__on_player_interacts_with_entity(player, entity, hand)`
Triggered when player right clicks (interacts) with an entity, even if the entity has no vanilla interaction with the player or
the item they are holding. The event is invoked after receiving a packet from the client, before anything happens server side
with that interaction
with that interaction.
### `__on_player_trades(player, entity, buy, buyB, sell)`
Triggered when player trades with a merchant. The event is invoked after the server allow the trade, but before the inventory
changes and merchant updates its trade-uses counter.
The parameter `entity` can be `null` if the merchant is not an entity.
### `__on_player_collides_with_entity(player, entity)`
Triggered every time a player - entity collisions are calculated, before effects of collisions are applied in the game.