Today I’m gonna be showing you how to use “/execute if score” to run a command when someone has a certain score. If you’re coming from my /execute tutorial or /scoreboard tutorial then welcome! This command isn’t hard, but it does require knowledge of both scoreboards, and the basics of /execute. Links to my Tutorials will be cards in the top right, and at the end of the video. I know you’re a busy bee so let’s make this quick. /execute if score tests the scores of two players. If certain conditions are met, such as one player having a higher score than another, The test will suceed, if these conditions are not met, the test will fail. Take a look at this example I’ve set up. This is a very fun game I like to call, fall inna hole. You run along the speed boost ground, and when you fall in this Hole and land on the pressure plate it increases your FallIn score by one. (it also teleports you back, shows a title, and plays a nice little noteblock sound.) Over here, I’ve got a repeating command block that activates every tick. It’s always checking To see if my FallIn score has reached 5. Once it has, the following chain command blocks which I’ve set to always active and importantly, conditional, will activate. They just announce that I’ve won, show a subtitle, and reset my score so I can play again! Make sure to subscribe for more Fall Inna Hole letsplays and strategy guides. To do this check, I’ve chosen to use /execute if score. Let’s break this command down. First, execute (the following command) IF, somebodies SCORE matches what im about to say. If the score of me (legitimoose), in the objective FallIn is greater than or equal to, #WinReq’s FallIn score. Then the test will succeed, and all of these will activate because this first chain command block is marked as “conditional”. Now you might be thinking: Wha? Who’s #WinReq? And- how would I get this to use @a instead of your name? Why is There a greater than or equal to sign? Are we doing ALGEBRA you NERD?!?!??! Ok, maybe I need to explain more. When we start typing this command /execute if score Legitermoose FallIn – We get some choices. We can pick < <= = > >= or Matches. Wait, matches? How is that different from =? Lemme look this up and- Oh my god, this is incredible! Apparently I don’t know commands as well as I thought I did, because this just made this 1000x easier. First, how I’ll show you how I did this. This command is constantly checking whether my score is greater than or equal to an invisible player named #WinReq. The # at the start of the name will Hide them from the sidebar, so they don’t take up valuable space. I manually set their score to 5, so when I got to 5, this execute command would suceed and activate this command chain. This technique has the advantage of being easily changed. If I want to Increase or decrease the score I need to reach, I can just change #WinReq’s score. So for example: “/scoreboard players set #WinReq FallIn 3”. Now we only need three for this thing to succeed. Amazing. This is only useful if I wanted to automate the process, because otherwise I could use: Matches! If we use matches, we’re no longer comparing to another player. Instead, we’re comparing to an actual number! Incredible. If we want to see if our score is higher than five we can start with the same command, but then say “matches 5..” The .. at the end signifies 5 or higher. If we wanted to check for less than 5, we could put the dots at the start. And If we only wanted to check for specifically 5, we could just Have a 5. This is called a range, because it represents a range of numbers. We can have something in between as well, such as testing for a number between 2 and 5 (2..5). Note that this is always inclusive, meaning including 2 and 5 in this case. To address the “viewer question” from earlier, The way you would do this if you wanted it to work for all players, is just to add “execute as @a” at the start, and then do “if score @s FallIn matches 5..”. You just gotta start it off with that “execute as @a”. This is covered in my execute tutorial! And of course, if you’re making a big project I would always recommend using these kinds of commands in a data pack, because “physical” command blocks can really start to hinder you if you’re getting into advanced commands. If you’re not familiar with datapacks already, My datapack tutorial is a great place to start. ;^) And as I said before, here’s the links to my basics of /execute and /scoreboard tutorials! And to answer your question from before, yes this is technically algebra! SUBSCRIBE NERDS!!! Video Information
This video, titled ‘/execute if score // Minecraft 1.19 Command Tutorial’, was uploaded by Legitimoose on 2020-10-10 18:21:14. It has garnered 110032 views and 3252 likes. The duration of the video is 00:05:02 or 302 seconds.
Learn how to use the “execute if score” command to detect scores in Minecraft 1.19! This is a good Minecraft command tutorial for people who are a little more advanced, and know how to use scoreboards and /execute! This tutorial is also good for beginners who want to learn to make minigames or maps using the execute command! Let me know what I should cover next in the comments!
/Execute Tutorial: https://youtu.be/EBsEDkFpPlI /Scoreboard Tutorial: https://youtu.be/-5EmWJguggA
===l o n k s=== My Discord Server [ https://discord.gg/n7z4sVG ] My Twitch [ https://www.twitch.tv/legitimoose ] My Editor [ https://www.instagram.com/ciara_millinery/ ]
This video hows you how to use /execute if score to detect scores/scoreboards in vanilla minecraft 1.16! Since the command revamp in minecraft 1.13 everything is a bit different. Learn how to match scores, detect the highest score, or get the winner of a game in minecraft! This is one of the most important minecraft commands for data packs/datapacks and minigame creating/mapmaking. This is related to the minecraft scoreboard command and the minecraft execute command in 1.16 and 1.16.3. Hopefully this will help you learn how to make a minigame in minecraft or how to make a scoreboard. This isn’t a scoreboard tutorial or an execute command tutorial but those do exist on this channel. Hopefully you enjoyed this minecraft command tutorial. ~12 time Fall Inna Hole world champion.