{{#if (eq item.system.resource.type 'simple')}}
{{else}}
{{#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}}
{{/if}}