bo dalej argument masz jako tekst, sprawdzasz tylko warunek czy jest liczbą.
Najlepiej gdybyś to zrobił tak:
if arg 1 parsed as number is set:
set {_arg} to arg 1 parsed as number
if player's money < {_arg}:
send "&cNie masz tyle pieniedzy!"
stop
else:
if player has enough space for 1 paper named "Banknot":
remove {_arg} from player's money
give paper named "Banknot" with lore "Wartosc: %arg%" to player
on move:
{blockLoc::%location of event-block%} is not set
add type of event-block to {blockLoc::%location of event-block%::*}
set {blockLoc::%location of event-block%} to true
command /odczyt:
trigger:
loop {blockLoc::*}:
loop {blockLoc::%loop-index%::*}:
send "%loop-index-1% %loop-value-2%"
nie bardzo wiem co chcesz zrobic
on gamemode change:
if player's gamemode is survival:
loop items in player's inventory:
if name of loop-item is "nazwa":
remove loop-item from player's inventory