<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3AInteraction</id>
	<title>Minecraft:Interaction - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3AInteraction"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Interaction&amp;action=history"/>
	<updated>2026-09-06T01:27:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Interaction&amp;diff=182775&amp;oldid=prev</id>
		<title>SyncBot: Sync: new page from Minecraft</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Interaction&amp;diff=182775&amp;oldid=prev"/>
		<updated>2026-08-14T11:05:43Z</updated>

		<summary type="html">&lt;p&gt;Sync: new page from Minecraft&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Work in progress}}&lt;br /&gt;
{{exclusive|java}}&lt;br /&gt;
{{Infobox entity&lt;br /&gt;
| image = Blank.png&lt;br /&gt;
| health = None&lt;br /&gt;
| behavior = None&lt;br /&gt;
| size = Customizable&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Interaction&amp;#039;&amp;#039;&amp;#039; entities are a technical [[Minecraft:entity]], useful for map or data pack creators to see who the last player to click on a certain spot is. They can only be created with the {{cmd|summon}} or {{cmd|execute summon}} commands.&lt;br /&gt;
Interaction entities are invisible, invincible and of a custom size. Their [[Minecraft:bounding box]] can be viewed via the {{key|F3}} + {{key|B}} debug shortcut.&lt;br /&gt;
&lt;br /&gt;
== Behavior ==&lt;br /&gt;
Interaction entities record the [[Minecraft:UUID]] of the last player that left-clicked and right-clicked them, and the time at which the interaction happened. If &amp;lt;code&amp;gt;response&amp;lt;/code&amp;gt; is set to true, left-clicking an interaction entity plays a punching sound, and right-clicking it makes the player&amp;#039;s arm swing.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
You can check information on who last left-clicked and right-clicked on the interaction entity with the {{cmd|data get entity}} command. This information can be useful in datapack and map creation. You can also change their size to match the area you want to be checked. Although there is seemingly no limit on the size that may be specified, there still appears to be an effective limit of 22.6 blocks in each dimension. Interactions and attacks will not be detected on the part of the hitbox beyond 3.3 blocks away from the entity&amp;#039;s position (which is at the center of the hitbox) in the negative X and Z directions, and the same is true in the positive directions beyond 19.3 blocks away. In the Y direction, the bottom of the hitbox is always at the Y coordinate of the entity&amp;#039;s position, so interactions and attacks are not detected beyond 22.6 blocks above the Y coordinate.&lt;br /&gt;
&lt;br /&gt;
=== Advancement triggers ===&lt;br /&gt;
* Interacting with (right-clicking) an interaction entity triggers &amp;lt;code&amp;gt;[[Minecraft:Custom advancement#minecraft:player_interacted_with_entity|player_interacted_with_entity]]&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Attacking (left-clicking) an interaction entity triggers &amp;lt;code&amp;gt;[[Minecraft:Custom advancement#minecraft:player_hurt_entity|player_hurt_entity]]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Commands ===&lt;br /&gt;
The interaction entity targets the player who last interacted with it. That makes the following possible:&lt;br /&gt;
* {{cmd|execute on attacker}} execute as the last player who attacked (left-clicked) the entity.&lt;br /&gt;
* {{cmd|execute on target}} execute as the last player who interacted with (right-clicked) the entity.&lt;br /&gt;
&lt;br /&gt;
== Data values ==&lt;br /&gt;
=== ID ===&lt;br /&gt;
{{ID table&lt;br /&gt;
|edition=java&lt;br /&gt;
|firstcolumnname=Entity&lt;br /&gt;
|generatetranslationkeys=y&lt;br /&gt;
|displayname=Interaction&lt;br /&gt;
|nameid=interaction&lt;br /&gt;
|translationkey=entity.minecraft.interaction&lt;br /&gt;
|spritetype=block&lt;br /&gt;
|spritename=air&lt;br /&gt;
|foot=1&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Entity data ===&lt;br /&gt;
{{see also|Entity format}}&lt;br /&gt;
&lt;br /&gt;
Interaction entities have entity data associated with them that contain various properties of the [[Minecraft:entity]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section begin=&amp;quot;entity data&amp;quot;/&amp;gt;&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
* {{nbt|compound}} Entity data&lt;br /&gt;
** {{nbt inherit/entity}}&lt;br /&gt;
** {{nbt|float|width}}: The width of the entity&amp;#039;s bounding box. Defaults to 1.&lt;br /&gt;
** {{nbt|float|height}}: The height of the entity&amp;#039;s bounding box. Defaults to 1.&lt;br /&gt;
** {{nbt|byte|response}}: 1 or 0 (true/false). Specifies whether an interaction should trigger a response (hand animation). Defaults to 0 (false).&lt;br /&gt;
** {{nbt|compound|attack}}: The last attack (left click) to hit the entity.&lt;br /&gt;
*** {{nbt|int array|player}}: The UUID of the player that attacked the entity. The 128-bit UUID is stored as four 32-bit integers, ordered from most to least significant.&lt;br /&gt;
*** {{nbt|long|timestamp}}: When the attack took place.&lt;br /&gt;
** {{nbt|compound|interaction}}: The last interaction (right click) to hit the entity.&lt;br /&gt;
*** {{nbt|int array|player}}: The UUID of the player that interacted with the entity. The 128-bit UUID is stored as four 32-bit integers, ordered from most to least significant.&lt;br /&gt;
*** {{nbt|long|timestamp}}: When the interaction took place.&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;section end=&amp;quot;entity data&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|java}}&lt;br /&gt;
|{{HistoryLine||1.19.4|dev=23w07a|Added interaction entities.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox entities|Other}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Interaktionsobjekt]]&lt;br /&gt;
[[Minecraft:fr:Interaction]]&lt;br /&gt;
[[Minecraft:ja:操作記録エンティティ]]&lt;br /&gt;
[[Minecraft:lzh:交互]]&lt;br /&gt;
[[Minecraft:pt:Entidade-interação]]&lt;br /&gt;
[[Minecraft:zh:交互实体]]&lt;br /&gt;
[[Minecraft:ru:Взаимодействие]]&lt;/div&gt;</summary>
		<author><name>SyncBot</name></author>
	</entry>
</feed>