Merge docs for 'Merge pull request #623 from BisUmTo/onTrade-Scarpet-Event
Added onTrade Scarpet Event'
This commit is contained in:
1 parent
fe611145a9
commit
0e41ce4427
1 file changed
+6
-1
@@ -4051,7 +4051,12 @@ adjusted.
|
|||||||
### `__on_player_interacts_with_entity(player, entity, hand)`
|
### `__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
|
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
|
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)`
|
### `__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.
|
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