Skip to main content
1 of 3

Things could have changed drastically since 2017, but since the OP asked about "fake players" I'm surprised by the comment stating "what do you mean fake players?"

It seems common in using commands to store values (aka variables) using the scoreboard command. This could be done 2 ways:

  1. Create an objective which will store a value for each player and can be manipulated by commands or in-game events. A simple example is "Death Count" or "Zombies Killed".
  2. Create an objective with the "dummy" criteria which can only be changed by commands.

For 2 to work, you can add "fake players". This way you can have multiple "variables" with separate values, but the in-game mechanic is to essentially have the variables appear on the scoreboard using the scoreboard players... command. Hence, "fake players". (Player names that start with # do not show up on the scoreboard displayed on the screen).

As per the Scoreboard page on Gamepedia:

Score is only changed by commands, and not by game events such as death. This is useful for event flags, state mappings, currencies,...

I've attached an image of the suggestion by @user191708: Displays command blocks to add and remove scores for good_karma and bad_karma displayed on a sidebar scoreboard for the Karma objective.

I'm just learning commands now to work with datapacks in 1.15/1.16+ so if anyone can explain it better I'd love suggestions and more knowledge.