Simon Hirtl Posted February 7, 2021 Posted February 7, 2021 Wie mache ich eine If-Abfrage in Minecraft, mit der ich überprüfen kann welchen Item Slot ein Spieler gerade ausgewählt hat?
TileEntity Posted February 7, 2021 Posted February 7, 2021 (edited) 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 February 7, 2021 by Bedrock
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now