Closed GrantGryczan closed 2 years ago
The reason ObjectiveInstances don't work is because they don't have a custom toString method. I'm not sure about Scores though.
ObjectiveInstance
toString
Score
Example input:
const test = Objective.get('test'); MCFunction('test', () => { scoreboard.objectives.add(test, 'dummy'); scoreboard.players.set(test('$value'), 5); });
Output:
scoreboard objectives add (scoreHolder) => new Score_1.Score(this.commandsRoot, scoreHolder.toString(), this) dummy scoreboard players set $value test,5
The reason
ObjectiveInstance
s don't work is because they don't have a customtoString
method. I'm not sure aboutScore
s though.Example input:
Output: