Please help me, this line dosen't work,
Full code
Code:
chance of {key.chance.%player%}%:
Full code
Code:
command /pickset <text> <integer>:
trigger:
if arg 1 = "key":
set {key.random.%player%} to arg 2
on break:
if event-block is stone:
if player is holding a diamond pickaxe:
set {key.chance.%player%} to {key.random.%player%}
send "%{key.chance.%player%}%"
chance of {key.chance.%player%}%:
set {item} to coal
subtract 1 from {key.chance.%player%}
chance of {key.chance.%player%}%:
set {item} to iron ingot
subtract 1 from {key.chance.%player%}
chance of {key.chance.%player%}%:
set {item} to gold
subtract 1 from {key.chance.%player%}
chance of {key.chance.%player%}%:
set {item} to diamond
subtract 1 from {key.chance.%player%}
chance of {key.chance.%player%}%:
set {item} to netherite ingot
give {item} to player
Last edited: