X

NOTICE

Are you sure you want to report this?

We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

15

Another way to detect scores

3 Comments

Post a new comment:

Please sign in to leave a comment.

  • Avatar
    theogiraudet commented

    scoreboard players operation temp Temp = @s speed

    scoreboard players operation @e speed -= temp Temp

    kill @e[score={speed=0}]

    scoreboard players operation @e speed += temp Temp

    It's a bit longer but functional ;)

  • Avatar

       Yes but this system needs to be a loop if there are many entities. The example I gave on the post isn't the best. Here is a better :

    A system that teleports bats with a score of "menthe" to the witch that has the same score of "menthe".

    Your system works but if the teleportation has to be very fast, it needs to be a loop. So a single command would be more effective and cause less lag, since minecraft doesn't have to execute 4 commands for each entitiy targeted by the command.

  • Avatar
    Shinobi2212 commented

    Yeah a command like this except it's just it's own command like /scoreboard players compare @p obj1 @p obj2, this would compare two specified players/entitys, and if there values are the same the command block will activates (for conditional command chains or Redstone output)