Minecraft / execute to check inventory?

fl
4

Is it possible to check with / execute, if there's a specific item at a certain position (slot) in the inventory?

dy

Basically, the / execute command is there to let a player or a target entity execute this subsequent command. You can work with the command / replaceitem

fl

I can't test that. With / execute yes there's also the subdivision into "if"

me

Well, in the past, I could have answered the question to you quite simply, but since the new orders I do not know anything anymore.

fl

Yes. I found it earlier also clearer