#is my code ok?
1 messages · Page 1 of 1 (latest)
what isn't working?
idk
ah I se
the items dont smelt
you aren't setting {_item} and I don't think that loop all items of player is a proper syntax
try loop-item
it's pretty bad
and "continue" isn't a thing
yes it is
it is?
and all items is too
oh
but they're never setting {_item}
so what I can see, is:
{_item} is not set
{_item} is used twice
indentation is off on some points
ooh
i see
k
thanks}
I corrected it
but i still having problems
permission: auto.smelt
trigger:
loop all items of player:
set {_item} to loop-item
if {_item} is raw copper:
set {_ingot} to copper ingot
else if {_item} is raw gold:
set {_ingot} to gold ingot
else if {_item} is raw iron:
set {_ingot} to iron ingot
else:
continue
remove loop-item from player
add {_ingot} to player
send "&6Your items have smelted!" ```
if i have 5 raw iron
it only gives to me 1
ingot
hold on
if {_item} is raw iron:
set {_ingot} to iron ingot
set {_amount} to %amount of loop-item%
im dumb
thanks
ok