Jump to content

if-Abfrage Command Block


Simon Hirtl
 Share

Recommended Posts

Das sollte damit gehen:

/execute if entity @p[nbt={SelectedItemSlot:0,id:"minecraft:stone"}] run <command>

Die Slot-IDs sind hier mit zu finden:

https://minecraft.gamepedia.com/Inventory

 

Bzw. schau mal, ob sich was mit den Befehl was machen lässt:

/data get entity @p Inventory[<slot index>] 

 

Edited by Bedrock
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...
B
B