Added onTrade Scarpet Event
This commit is contained in:
1 parent
6dc6a42bda
commit
2be4ac8ee0
5 files changed
+69
-1
No files matched your search
@@ -114,7 +114,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.
|
||||
|
||||
Reference in new issue
Block a user