Рет қаралды 31,717
A quick tutorial on how to use interaction entities using both command blocks and datapacks.
Command Blocks:
execute as @e[type=interaction] on attacker run say left
execute as @e[type=interaction] on target run say right
bonus
execute as @e[type=interaction] if data entity @s attack run say I was left clicked
execute as @e[type=interaction] if data entity @s interaction run say I was right clicked
execute as @e[type=interaction] run data remove entity @s attack
execute as @e[type=interaction] run data remove entity @s interaction
Latest Version (1.19.4)
📦 Download: www.dropbox.com/s/9xx1t6pt8pg...
🔵 Discord & Other Links: linktr.ee/CloudWolfMC
💻 Website: cloudwolfyt.github.io