Interaction
Original Title:Interaction
Languages:
- Chinese: 交互实体
- English: Interaction
Parent Title:
我的世界, Minecraft, マインクラフト
In Minecraft, interaction entities are technical entities primarily used by map or data pack creators to track the last player to click on a specific spot. They can only be created using the `/summon` or `/execute summon` commands. Interaction entities are invisible, invincible, and can be custom-sized. Their bounding box can be viewed using the F3 + B debug shortcut. These entities record the UUID of the last player who left-clicked and right-clicked them, as well as the time of interaction. When the response is set to true, left-clicking an interaction entity plays a punching sound, and right-clicking makes the player's arm swing. The `/data get entity` command can be used to check information on the last players who interacted with them, which is beneficial in data pack and map creation. Additionally, their size can be changed to match the area being checked. Interaction entities have associated entity data that includes various properties like width, height, whether it responds to interactions, and information about attacks and interactions. These attributes can be configured via NBT tags, allowing for finer control and customization.