2
How to testfor held item?
how do i testfor/execute a command when a player is holding a certain item for example giving speed 1 when you're holding a stone block?
Create an account or sign in to comment.
1
2
Not sure if it can be done via one execute command but it can be done with two command blocks in a chain
First command block
always active, repeating
/testfor @a {SelectedItem:{id:"minecraft:stone"}}
Second command block
always active, conditional, chain
/effect @a 1 1 1
you can change the block and effects etc.
First command block
always active, repeating
/testfor @a {SelectedItem:{id:"minecraft:stone"}}
Second command block
always active, conditional, chain
/effect @a 1 1 1
you can change the block and effects etc.