I've been looking around for 2 days now but still struggling to understand Functions can someone help me out
Code:
on break of Stripped Acacia Log:
if lore of tool is "Pickaxe":
cancel event
test(i)
send "&e%{_i}%" to player
function test(i: text) :: text:
set {_i} to "POG"