You can simply add the syntax for “not” (!) to your command. The other option would be to just invert the output. So first, you would test that the player is holding a stick: Then if the redstone signal is inverted, this will only trigger the mechanism when the player is not holding a stick.
What do you use to test a player in Minecraft?
player is the name of a player (or a target selector) to test for. dataTag is optional. It is a data tag to test for, as it relates to player. It is a compound NBT tag such as {playerGameType:0}, {foodLevel:20} or {XpLevel:20}. (See NBT tags for player .) victim is the name of a player (or a target selector) to test for.
How to test for a target in Minecraft PE?
TestFor Command in Minecraft Pocket Edition (PE) In Minecraft Pocket Edition (PE), the syntax to test for a target in the game is: /testfor . Definitions. victim is the name of a player (or a target selector) to test for. TestFor Command in Minecraft Xbox One Edition.
Is there way to test if player has nothing in hand?
This means that to check that they don’t have something in their hand, you actually have to check for air. This does not work in 1.9, as Mojang has removed “minecraft:air” from the database. I feel like there should be a way in 1.9 to just test that there is nothing.
How can I detect if player have a minimum amount of item?
The trigger will set the player’s own score equal to the number of “affected items” whenever the player runs a command that targets items (such as /clear). Place the following into a command block that will be detecting items in the inventory. It forces players to clear from their own inventories.
How can I test for an item with the correct name?
You could use this tag in the item summon commands. If you want to test for any player holding any item with the correct name, simply omit the id portion of the dataTag: Would work but a better way to do it would be to use scoreboard objectives with stats ex- I have tested it and it works so try that…
How to test if a player is holding a stick?
Just use a comparator to test if a player is holding a stick, and then invert it (via a redstone torch) and have the inverted signal leading to a command block. Now, whenever the player is holding a stick, the signal is inverted and the second command block deactivates. share|improve this answer.