Paste #57198: Need help with this condition

Date: 2019/08/21 20:22:19 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11


CruiseFortressDoors:
    type: world
    events:
      on player right clicks block:
      - define door:l@51,65,-86,world
      - narrate "location tag <context.state>" 
      - if <context.location> == l@51,65,-86,world && [door] state:off {
        - switch state:on target:l@51,65,-86,world
      } else {
        - switch state:off target:<context.location>
      }