[Tutorial] How to detect RIGHT CLICKING with ANY ITEM in Minecraft
Автор: Stiky's Commands
Загружено: 2021-07-11
Просмотров: 14905
Описание:
Detecting right clicks in Minecraft have been done for years, but almost all tutorials on it have used a carrot on a stick. This can be useful in some cases, but can also hinder you from doing certain commands with right click detection.
This method of right click detection will allow you to right click with any item in Minecraft, which will increase the amount of commands and projects you can do with it.
Commands used:
/scoreboard objectives add rightClick minecraft.custom:minecraft.talked_to_villager
Command blocks:
execute as @a[scores={rightClick=1}] run say Right clicked!
scoreboard players set @a rightClick 0
execute at @a unless entity @e[type=minecraft:villager,tag=rightClick] run summon minecraft:villager ~ ~ ~ {Tags:["rightClick"],Invulnerable:1b,Silent:1b,NoAI:1b}
effect give @e[tag=rightClick] minecraft:invisibility 99999 255 true
execute at @a positioned ^ ^ ^5 run tp @e[tag=rightClick] ~ ~ ~
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: