Minecraft - Check For A Specific Item NOT Being In The Player's Inventory!

Minecraft - Check For A Specific Item NOT Being In The Player's Inventory!

Channel:
Subscribers:
104,000
Published on ● Video Link: https://www.youtube.com/watch?v=lpCKIbvnzNs



Minecraft
Game:
Minecraft (2011)
Duration: 8:42
11,563 views
185


In this video I will show you how to check if a specific item is not in the player's inventory!
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!

**********************************

All the commands used in the video:
Check for a diamond not being in the player's inventory:
/execute if entity @p[nbt=!{Inventory:[{id:"minecraft:diamond"}]}]


Check for an emerald not being in the player's selected slot:
/execute if entity @p[nbt=!{SelectedItem:{id:"minecraft:emerald",Count:1b}}]


Check for a named emerald not being in the player's inventory:
/execute if entity @p[nbt=!{Inventory:[{id:"minecraft:emerald",tag:{display:{Name:'{"text":"Magic Gem","color":"dark_red","bold":true,"italic":false}',Lore:['{"text":"This Gem Is Pure Magic","color":"gold","italic":false,"underlined":true}']}}}]}]


Check for multiple special named netherite ingots not being in the player's hand:
/execute if entity @p[nbt=!{SelectedItem:{id:"minecraft:netherite_ingot",Count:5b,tag:{display:{Name:'[{"text":"VERY","color":"red","underlined":true},{"text":" ","underlined":false},{"text":"EXPENSIVE","color":"gold","bold":true,"underlined":true}]',Lore:['{"text":"This Ingot Is Way Too Expensive!","color":"light_purple","bold":true}','{"text":"Seriously!","color":"dark_red","bold":true}']},Enchantments:[{}]}}}]


Command to get the named emerald:
/give @p emerald{display:{Name:'{"text":"Magic Gem","color":"dark_red","bold":true,"italic":false}',Lore:['{"text":"This Gem Is Pure Magic","color":"gold","italic":false,"underlined":true}']}} 1


Command to get the 5 special netherite ingots:
/give @p minecraft:netherite_ingot{display:{Name:'[{"text":"VERY","color":"red","underlined":true},{"text":" ","underlined":false},{"text":"EXPENSIVE","color":"gold","bold":true,"underlined":true}]',Lore:['{"text":"This Ingot Is Way Too Expensive!","color":"light_purple","bold":true}','{"text":"Seriously!","color":"dark_red","bold":true}']},Enchantments:[{}]} 5
👕Buy My Mug or Merch 🡆 https://teespring.com/stores/maxstuff
🧡Become a member 🡆 https://www.youtube.com/channel/UCzkqOdzxj4wY7BmWdXWueoA/join
👍Subscribe to my channel 🡆 http://www.youtube.com/channel/UCzkqOdzxj4wY7BmWdXWueoA?sub_confirmation=1

***********************************

💻Youtube 🡆 https://www.youtube.com/c/maxstuff
🎮Discord 🡆 https://discord.gg/SWUu3dr
🔷Twitter 🡆 https://twitter.com/Mario_Hierio
🧡Reddit 🡆 https://www.reddit.com/r/MaxStuffSubmissions/

***********************************
#minecraft #commands #detecting







Tags:
Minecraft
Mariohieriomariodario
Maximiliaande5de
Max
MaxMakesMusic
Makes
Music
Stuff
MaxStuff
command
commands
block
blocks
execute
if
entity
player
player's
his
inventory
check
detect
how
to
tutorial
item
items
being
in
selected
slot
hand
not
specific
test
for
don't
having
have
hold
holding
diamond
emerald
nbt
named
name
with
lore
italic
italics
bold
underlined
color
colour
colored
coloured



Other Statistics

Minecraft Statistics For MaxStuff

MaxStuff currently has 18,028,806 views spread across 1,183 videos for Minecraft. This game accounts for over 16 days of watchable video on his channel, roughly 79.87% of Minecraft content that MaxStuff has uploaded to YouTube.