#Event wont work

1 messages · Page 1 of 1 (latest)

slim lance
#

Trying to figure out why this isn't working, when I mine the block it doesn't turn to bedrock and it doesn't take the integer

on break:
    if player's tool's lore contains "fortune 1":
        set {_random} to a random integer between 1 and 3
    if event-block is coal ore:
        set event-block to bedrock
        wait 2 seconds
        add {_random} to {coal::%player's uuid%}
        set event-block to coal ore
        message "&7Added %{random}% to your &7Coal: &c&l%{coal::%player's uuid%}%"
        
    
command /ore [<text>]:
    trigger:
        if arg 1 isn't set:
            message "&5&lItems Mined"
            message ""
            message "&7Coal: &c&l%{coal::%player's uuid%}%"
        else if arg 1 is "reset":
            set {coal::%player's uuid%} to 0
shy vessel
#
set event-block to bedrock
wait 2 seconds
add {_random} to {coal::%player's uuid%}
set event-block to coal ore```

This should fix the bedrock problem
You can use this as a example I whipped it pretty quickly but you get the idea.
glossy sandal
#

ur using {random} instead of {_random} in your send line