#is my code ok?

1 messages · Page 1 of 1 (latest)

crisp portal
floral moat
#

no

#

it didnt help

#

but thanks

crisp portal
#

what isn't working?

floral moat
#

idk

crisp portal
#

ah I se

floral moat
#

the items dont smelt

crisp portal
#

you aren't setting {_item} and I don't think that loop all items of player is a proper syntax

#

try loop-item

safe nymph
#

it's pretty bad

crisp portal
#

and "continue" isn't a thing

safe nymph
#

yes it is

crisp portal
#

it is?

safe nymph
#

and all items is too

floral moat
#

oh

safe nymph
#

but they're never setting {_item}

crisp portal
#

so what I can see, is:
{_item} is not set
{_item} is used twice
indentation is off on some points

floral moat
#

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

crisp portal
#

hold on

#
if {_item} is raw iron:
  set {_ingot} to iron ingot
  set {_amount} to %amount of loop-item%
floral moat
#

im dumb

crisp portal
#

wait

#

without the %

floral moat
#

ok