Bonsoir, je me suis demandé si compacter ce code serai possible:
if {hearts.%player%} = 0:
format slot 13 of player with 0 wither skeleton head named "&bUprizing" with lore "&7||&70 Uprizing soit 0,00 EUR" to be unstealable
if {uprizing.%player%} = 1:
format slot 13 of player with 1 wither skeleton head named "&bUprizing" with lore "&7||&71 Uprizing soit 0,10 EUR" to be unstealable
if {uprizing.%player%} = 2:
format slot 13 of player with 2 wither skeleton head named "&bUprizing" with lore "&7||&72 Uprizing soit 0,20 EUR" to be unstealable
if {uprizing.%player%} = 3:
format slot 13 of player with 3 wither skeleton head named "&bUprizing" with lore "&7||&73 Uprizing soit 0,30 EUR" to be unstealable
if {uprizing.%player%} = 4:
format slot 13 of player with 4 wither skeleton head named "&bUprizing" with lore "&7||&74 Uprizing soit 0,40 EUR" to be unstealable
Si le joueur à 1 Uprizing ça mets 1 tête sans avoir besoin de recopier à chaque fois.