#Function argument as scoreboard reference

1 messages · Page 1 of 1 (latest)

supple forgeBOT
#

I have this line in my function:

$execute store result score .scoreData saveDataCalc run scoreboard players get .scoreData $(saveData_Type)

In game, I use this command:

/function soniflare:sbm1/savedata/savedata_get {saveData_Type:saveData_items,dataIndex:5}

The scoreboard saveData_items does exist, and is assigned to the "player" .scoreData, but for some reason, it is not referencing any existing scoreboard. I'm not sure what I'm doing wrong syntax-wise.

reef tiger
#

Function argument as scoreboard reference

west scroll
#

In your function command, for the NBT object, probably need to make the saveData_items a string

#

So {saveData_type:"saveData_items",...}