setToCondition method
sets the score to the success of the given condition result
Implementation
Score setToCondition(Condition cond, {bool useSuccess = false}) {
return addCommandRet(
Command(
'execute store ${useSuccess ? 'success' : 'result'} score ${toString()} ${Condition.getPrefixes(cond.getList())[0]}',
),
);
}