Paste #17216: Edit of P#17215 - Anchor Script For Movecraft

Date: 2015/07/01 00:52:01 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
12
13
14
15
16
17
18
19


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."
    }