Variables in Minecraft?

I would have a lot more possibilities if I could add variables to my commands. Is there anyway to do this?

I have tried to use armor stands but it requires a command block for every single possibility.

  • How can I use Command Blocks to keep players from placing blocks on a vanilla server?
  • How do I fix 'Invalid JSON' errors on Minecraft PC?
  • Why does tekkit not update to the newest version of minecraft?
  • How do you make bows set things on fire?
  • Minecraft skin stops working in 1.9
  • Minecraft Test If A Chest Contains An Item
  • Will wearing multiple fire protection armor pieces stack their effects?
  • How to easily kill the Wither?
  • How can I import worlds from the PE to the PC version?
  • Breaking a wood block in Adventure mode
  • Are Diamond Pickaxes sustainable for diamond mining in Minecraft?
  • Is The Nether randomly generated?
  • One Solution collect form web for “Variables in Minecraft?”

    Since JSON does not directly allow the use of variables, you could create scoreboard objectives using /scoreboard objectives add objname dummy displayname to add the objective, /scoreboard players add playername objname num to add scores, and /scoreboard setdisplay location objname to set where the objective is displayed, which is optional.

    We love Playing Games, especially Video Games.