Minecraft 1.21 - Detect Item In Player's Off-Hand Or Armor Slots
Автор: MaxStuff
Загружено: 2020-06-05
Просмотров: 48030
Описание:
In this video I show you how to check if a player is holding an item in their offhand, or wearing an item in their armor slots in minecraft version 1.16 and up!
If you liked this video, please be sure to hit the like button and let me know in the comments why you liked it! If you really love my content, please consider subscribing!
**********************************
Commands:
Check to see if a player is holding an item in their offhand:
/execute if entity @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:stick"}]}] run setblock ~ ~ ~-1 minecraft:redstone_block
Check to see if a player is wearing an item in their helmet slot:
/execute if entity @a[nbt={Inventory:[{Slot:103b,id:"minecraft:diamond_helmet"}]}] run setblock ~ ~ ~-1 minecraft:redstone_block
Check to see if a player is wearing an item in their chestplate slot:
/execute if entity @a[nbt={Inventory:[{Slot:102b,id:"minecraft:diamond_chestplate"}]}] run setblock ~ ~ ~-1 minecraft:redstone_block
Check to see if a player is wearing an item in their leggings slot:
/execute if entity @a[nbt={Inventory:[{Slot:101b,id:"minecraft:diamond_leggings"}]}] run setblock ~ ~ ~-1 minecraft:redstone_block
Check to see if a player is wearing an item in their boots slot:
/execute if entity @a[nbt={Inventory:[{Slot:100b,id:"minecraft:diamond_boots"}]}] run setblock ~ ~ ~-1 minecraft:redstone_block
Additional command needed:
/setblock ~ ~ ~2 air
For questions about specific commands please ask in the comments!
👕Buy My Mug or Merch 🡆 https://teespring.com/stores/maxstuff
🧡Become a member 🡆 / @maxstuff
👍Subscribe to my channel 🡆 / @maxstuff
***********************************
💻Youtube 🡆 / maxstuff
🔷Twitter 🡆 / mario_hierio
📷Instagram 🡆 / maxstuff_insta
***********************************
#minecraft #command #offhand
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: