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

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

bebeli555

Member
Feb 6, 2020
28
0
0
25
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
 
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":
....
 
Status
Not open for further replies.