Jump to content

scores not working


BaconBoy1243

Recommended Posts

so basicly im making a script but for some reason it thinks this one score is always 1 NO MATTER WHAT. even when i change the score it doesnt work.

 

command /spawn:
    trigger:
        execute console command "/scoreboard players set @a[scores={arena=0}] arena 1"
        set {nether.spawn} to location(-83.5, 97, -17.5, world "world", 0, 0)
        set {overworld.spawn} to location(-83.5, 87, 99.5, world "world", -90, 0)
        if {arena.%player%} is 1:
            teleport player to {overworld.spawn}
        else:
            if {arena.%player%} is 2:
                teleport player to {nether.spawn}

 

 

PLESAE HELP

Link to comment
Share on other sites

4 hours ago, BaconBoy1243 said:

so basicly im making a script but for some reason it thinks this one score is always 1 NO MATTER WHAT. even when i change the score it doesnt work.

 

command /spawn:
    trigger:
        execute console command "/scoreboard players set @a[scores={arena=0}] arena 1"
        set {nether.spawn} to location(-83.5, 97, -17.5, world "world", 0, 0)
        set {overworld.spawn} to location(-83.5, 87, 99.5, world "world", -90, 0)
        if {arena.%player%} is 1:
            teleport player to {overworld.spawn}
        else:
            if {arena.%player%} is 2:
                teleport player to {nether.spawn}

 

 

PLESAE HELP

Variables and scores are not the same. Use 'set <variable> to <value>' instead.

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...