2

How to detect if a player drops an item in 1.21 Java

FNAFanatic1/12/25 5:43 am history
1/12/2025 5:15 pm
FNAFanatic


So, I'm making Ultimate Custom Night in Minecraft and want to detect if the player doesn't have a chest called "Offices" in their inventory.
How would I be able to do this?


Posted by
FNAFanatic
Level 3 : Apprentice Crafter
5

Create an account or sign in to comment.

3

Finley6219
01/12/2025 11:36 am
He/Him • Level 2 : Apprentice Crafter
use /testfor @e[​type=item] the only bad thing is that every item will be effected
2
FNAFanatic
01/12/2025 5:15 pm
He/Him • Level 3 : Apprentice Crafter
the thing is i'm pretty sure the testfor command was removed since 1.13. I had a good command that worked but that stopped working in 1.21.
1
proventhesheep
01/12/2025 11:18 am
Level 25 : Expert Mountaineer
i wish i knew to as i also want to make a fnaf game in Minecraft
2

Welcome