I'm trying to make it so whenever a player right clicks there generator in spawn, it doesn't give them the chance of items, no errors, I debugged it and can't seem to get it working.
on right click holding music disc pigstep:
"%region at player%" contains "spawnpoint"
cancel event
chance of 41%:
give player cobblestone
chance of 40%:
give player oak log
chance of 4%:
give player iron ore
chance of 5%:
give player coal
broadcast "&bIt made it all the way,"