Hey, so I want to do something when a player gets a item I've tried googling and looking through skunity docs but all I find is "on pickup" but I want it to happen whenever they get a item whether it was from a /give command a skript using "give player 5 diamonds" or picking it up this is the code I tried before I realized "on pickup" only works when a player PICKS up a item obviously
Code:
on pickup:
if 10 <= amount of diamonds in player's inventory:
broadcast "DIAMONDS!!!"