Ran into a odd issue but couldent find anyone elses notes. maybe im using the wrong code? after 128 blocks recorded it jumps to -127???
command /Millypickgivetome:
permission: owner.sk
trigger:
give makeMilly() to player
function millionairesLore(i: item) :: item: set {_m} to getMined({_i}) set name of {_i} to {@prefix} set line 1 of {_i}'s lore to {minidiv} set line 4 of {_i}'s lore to "&b+ Can you reach 1M?" set line 2 of {_i}'s lore to "&b+ Track your /milly stats" set line 3 of {_i}'s lore to "&b+ Super durability" set line 5 of {_i}'s lore to {minidiv} set line 6 of {_i}'s lore to "&8Mined: %{_m}%" return {_i}
on mine: if name of player's tool contains {@prefix}: if isMillyblock(type of event-block) is true: add 1 to {Millyblocksmined::%player%} set {_i} to player's tool set {_m} to getMined({_i}) + 1 set {_i} to setMined({_i}, {_m}) set {_i} to millionairesLore({_i}) set player's tool to {_i} message "&8Mined: %{_m}%" to player