#I can't use facing west but facing north works for some reason...

1 messages · Page 1 of 1 (latest)

soft flame
#
    loop {blocks.%player%::*}:
        if loop-value = location of event-block:
            if event-block is white glazed terracotta:
                If event-block's facing is north:
                    drop 1 white glazed terracotta named "&aTopaz Block" at location of event-block
                    remove event-block's location from {blocks.%player%::*}
                    remove 1 from {blocks.%player%}
                If event-block's facing is west:
                    drop 1 white glazed terracotta named "&aRuby Block" at location of event-block
                    remove event-block's location from {blocks.%player%::*}
                    remove 1 from {blocks.%player%}```

the facing north  part of the skript works but not the facing west part
marsh lark
#

Always use list variables; never separate with a .

#

Why loop the list?

#

Just check if the list contains x

soft flame
#
  1. the . dont affect anything. 2. i needa loop the list cuz theres gunna be multiple locations in the variable
#

also some of the asterisks disapeared to make it ittalic cuz discord

soft flame
#

i didnt think of that when i sent it

#

i can change it to

#

there

marsh lark
#

No, still no need to loop, you’re only checking for the event-loc

#

Its still a good idea to always use :: even if its not absolutely necessary

soft flame
#

ok

marsh lark
#

Also event-loc not loc of event-block

soft flame
#

ok ty