if clicked slot is 12:
@if number of diamond in player's inventory >= 2 ^ {attnum::%{team::%uuid of player%}%}:
@@set {attprice::%{team::%uuid of player%}%} to 2 ^ ({attnum::%{team::%uuid of player%}%} + 1)
@@loop all items in player's inventory:
@@@if loop-item is sword:
@@@@enchant loop-item with {attnum::%{team::%uuid of player%}%}
@@execute op command "/opengu2"
the enchant does not work
Could you tell how to put a variable into the integer part of enchant?
@if number of diamond in player's inventory >= 2 ^ {attnum::%{team::%uuid of player%}%}:
@@set {attprice::%{team::%uuid of player%}%} to 2 ^ ({attnum::%{team::%uuid of player%}%} + 1)
@@loop all items in player's inventory:
@@@if loop-item is sword:
@@@@enchant loop-item with {attnum::%{team::%uuid of player%}%}
@@execute op command "/opengu2"
the enchant does not work
Could you tell how to put a variable into the integer part of enchant?