your current location:首页 > news>Introduction to Minecraft conditional subcommand score

Introduction to Minecraft conditional subcommand score

2024-11-30 20:59:14|Myriagame |source:minecraft skins

Many players want to know about Minecraft conditional subcommand score. Minecraft has a very high degree of freedom, and various versions are constantly updated. Many players like this game. Let's take a look at the introduction to Minecraftexecute conditional subcommand score.

Introduction to the Minecraft conditional subcommand score
Introduction to Minecraft conditional subcommand score
score

Used to check whether the score of the score item in the scoreboard of the specified target meets the specified relationship with the score of the score item of another (or the same) target, or whether it is within a given range

Format: if/unlessscore<target entity> <target scoreboard>(<|<=|=|>=|>)<comparison entity> <comparison scoreboard> (check whether the score of <target entity>'s <target scoreboard> and the score of <comparison entity>'s <comparison scoreboard> meet the operator relationship); if/unless score <target entity> <target scoreboard> matches <range> (——check whether the score of <target entity>'s <target scoreboard> is within the specified <range>)

Explanation:

The score parameter is often used in bubble sorting and winning and losing judgment in competitions. For example (the target score here is Scores):

/execute if score Judge Scores > BADASS Scores run give Judge minecraft:gold_block 1

Here, if the score of "Judge" is higher than that of "BADASS", then "Judge" will be given a gold nugget.