Paste #17219: Diff note for paste #17218

Date: 2015/07/01 00:53:38 UTC-07:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 DeployAnchor:
   type: command
   name: anchor
+  script:
   - if <player.location.material.name.is[!=].to[air]> {
     - modifyblock <player.location> m@lapis_block
     - flag <player> anchor:+:<player.location>
     - narrate "Your anchor has been saved."
   }
   
 PullAnchor:
   type: world
   events:
     on player right clicks lapis_block with air:
-    - if <context.location.contains_any[<player.flag[anchor]>]> {
-      - modifyblock <context.location> m@air
-      - flag player anchor:-:<context.location>
-      - narrate "Your anchor has been removed."
-    }
+      - if <player.flag[anchor].contains[<context.location>]> {
+        - modifyblock <context.location> m@air
+        - flag player anchor:<-:<context.location>
+        - narrate "Your anchor has been removed."
+      }