Sign in
Skip to main content

Commands let players perform actions and customize gameplay using text-based instructions. Use this topic to share feedback and ideas for improving commands and related tools.

16

Variable command

2 Comments

Post a new comment:

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    That will be very hard to be used

  • 0
    Registered User commented
    Comment actions Permalink

    I don't think Minecraft will add this.

    However, for integer or float variables, you could use the scoreboard command, like this.

    #Adds the scoreboard objective
    scoreboard objectives add variable dummy

    #Tells it about an un-existing player, and adds 1 to it's score
    scoreboard players add example variable 1