This will set the block that the player using the flint and steel is in to cyan wool. To detect what direction the player is facing and place a block in that direction, you will need to use 4 different command blocks each testing for different ry and rym parameters in the target selector in the execute command.
"score_OBJECTIVE=1" looks for maximum, so a score of 1 and lower. "score_OBJECTIVE_min=1" is minimum, meaning a score of 1 and higher. You can add both of them them to look for a range or an exact score.
Say I want to use the /setblock command to add a block in front of the player when an item is used.
Now it doesn't work for all items, if you scroll down to stat.useItem a list of all valid items will be there.
For example, the command to setup an objective for testing when a flint n steel is used Then you need to connect these to a clock This will set the block that the player using the flint and steel is in to cyan wool. To detect what direction the player is facing and place a block in that direction, you will need to use 4 different command blocks each testing for different ry and rym parameters in the target selector in the execute command.
What does the min stand for in score_lighter_min? I've tinkered with the scoreboars a little and it works without it too. Or seems to anyway...
The wiki has a list of parameters and descriptions here: http://minecraft.gamepedia.com/Commands#Target_selector_arguments
"score_OBJECTIVE=1" looks for maximum, so a score of 1 and lower. "score_OBJECTIVE_min=1" is minimum, meaning a score of 1 and higher. You can add both of them them to look for a range or an exact score.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
The Dragon was Here...
How would someone make so that holding a particularly named item would apply effects to them?