Im trying to create a Magnifying glass that when ever you click on a block with it you have a chance of getting something but it doesnt work pls help me
__________________________________________________________________________
here is the code
_________________________
on right click holding tripwire hook:
name of player's tool is "&f&lMagnifying glass"
if difference between now and {%player's uuid%.aresSword.lastUsed} is less than 0.11 seconds:
message "&cWait 3 seconds before use again!" to player
else:
set {%player's uuid%.aresSword.lastUsed} to now
set {_chance} to a random integer between 1 and 10000
if {_chance} is between 1 and 50:
broadcast "hello"
stop
if {_chance} is between 51 and 10000:
broadcast "bye"
stop