A feedback area designed for scripting and mods suggestions and feedback. Please note bug reports and support issues will be removed.

10

Use scoreboards in other commands

3 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 1
    Registered User commented
    Comment actions Permalink

    Hi, i also need exactly this feature... 

    I want to tp a Player to coordinates written to scoreboard. The writing part is simple, but to read it from the scoreboard is missing...

    Write to scoreboard (what i already got):

    /execute store result score @p posX run data get entity @p Pos[0]

    and something like this is missing:

    /tp @p {"name":"@p","objective":"posX"}

    I hope this comment adds some detail how the command could look like. Thanks

  • 0
    Registered User commented
    Comment actions Permalink

    @Iyawings29 you can already do this https://m.youtube.com/watch?feature=youtu.be&v=ytyg7egKm-o

    But still it would be amazing to use this in commands without these tricks and in setblock, fill, tp,...

  • 1
    Registered User commented
    Comment actions Permalink

    I like the first comment’s idea but i think it should look like this:

    /tp @p {“score”:{“name”:”[name_of_player]”,”objective”:”[scoreboard objective]”}}

    example::

    /tp @p {“score”:{“name”:”@p”,”objective”:”destination”}}

    Thank you for reading!