{{#if (eq item.system.resource.type 'simple')}}
{{else if (eq item.system.resource.type 'diceValue')}}
{{#times (rollParsed item.system.resource.max item.parent item numerical=true)}} {{#with (ifThen (lookup ../item.system.resource.diceStates this) (lookup ../item.system.resource.diceStates this) this) as | state |}}
{{#if state.used}}{{/if}}
{{/with}} {{/times}}
{{else if (eq item.system.resource.type 'die')}}
{{/if}}