OpenInv Integration with command blocks #185
Unanswered
jedijacob2210
asked this question in
Q&A
Replies: 1 comment
-
|
Vanilla already has this capability. If you're looking to chain the command block into another command block you can use /clear with an amount of 0, which outputs the amount of matching items as the success count rather than clearing anything. If you're looking to conditionally execute a command directly, you can use /execute if entity conditionally dependent on NBT, specifically the Inventory tag. I found several promising results searching "minecraft command block check player inventory" if you're after a relatively preformed command. I'm not confident enough in my understanding of the execute command to write you a sample from scratch. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to make OpenInv cooperate with command blocks? Eg. Search a player's inventory then execute a command?
Beta Was this translation helpful? Give feedback.
All reactions