forum Forumsplay_arrow Minecraft fiber_manual_record Redstone

1

[1.13.2] How to run a command if a player has a certain item in their inventory?

1 emerald3 replies49 views
created 02/10/2019 6:24 pm by camocat9
last reply 02/12/2019 4:40 am
In 1.13.2 I'm trying to create a command that will run a command that clears a players inventory and tells them a message if they have a specific item in their inventory. I have attempted a couple of different ways, but no forums are up-to-date with this information. Does anyone have any idea how to do this?

Thanks!
Posted by avatar
camocat9
Level 13 : Journeyman Architect
9

3 replies

1
02/12/2019 4:40 am
Level 5 : Apprentice Architect
Gilran
avatar
Try this to create an easy command: https://mcstacker.net/

1
02/10/2019 9:22 pm
Level 30 : Artisan Taco
spychicken123
avatar
if you just do this command in a command block that is repeating, then change the item to whatever item you want it should work... k i tested it and it worked
execute as @a[nbt={Inventory:{id:"minecraft:redstone",Count:1b}]}] run clear @p
1
02/10/2019 7:17 pm
Level 12 : Journeyman Ninja
TheCyanShyGuy
avatar
hmmmmm i have literally no knowledge on that in 1.13 i used to know the ins and outs of commands back in 1.12.2, but alas... times have changed im sorry i am no help.

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome