跳到主要内容
版本:0.7.0

Npc Interact Event

 弃用警告

入口 已被标记为弃用,并将在未来的版本中移除。

建议的解决方案: Use the EntityAdapter instead

The NPC Interact Event is fired when a player interacts with an NPC.

How could this be used?

This can be used to create a variety of interactions that can occur between an NPC and a player. For example, you could create an NPC that gives the player an item when they interact with it.

Fields

Triggers

必填列表

Identifier

必填

The NPC that needs to be interacted with.