1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

if loop-block is observer. Only accepts if its facing up

Discussion in 'Skript' started by bebeli555, May 7, 2020.

Thread Status:
Not open for further replies.
  1. bebeli555

    bebeli555 Member

    Joined:
    Feb 6, 2020
    Messages:
    28
    Likes Received:
    0
    With skript if you do if loop-block is piston or observer it will only accept it if the piston or observer is in the right orientation. is there any way to fix this? like if u got observer facing south it will not work it has to face upwards

    Is there any way to fix this? so it would accept the if statement no matter the orientation of the block
     
  2. BowYard

    BowYard Member

    Joined:
    Nov 2, 2017
    Messages:
    45
    Likes Received:
    0
    use loop-block's material!
     
  3. bebeli555

    bebeli555 Member

    Joined:
    Feb 6, 2020
    Messages:
    28
    Likes Received:
    0
    whats loop-block's material? how do i use it
     
  4. BowYard

    BowYard Member

    Joined:
    Nov 2, 2017
    Messages:
    45
    Likes Received:
    0
    block's material returns the block type material
    when you place a block it's rapresented by
    type and material
    type is like "westfacing blablabla" rapresenting the whole range of the block
    material is like the class an item belongs to

    so for a placed observer material will be "OBSERVER" and type will be... i don't know.. like "right facing observer bla bla"

    so for this check you can use
    if loop-block's material is "observer":
    ....
     
  5. bebeli555

    bebeli555 Member

    Joined:
    Feb 6, 2020
    Messages:
    28
    Likes Received:
    0
    ok ill try thanks
     
Thread Status:
Not open for further replies.

Share This Page

Loading...