Paste #19749: Untitled Paste

Date: 2015/08/27 11:49:03 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


- while <player.flag[cape].is[==].to[active]> {
        - if <player.location.direction[<player.location.cursor_on[10]>]> contains "north" {
          - define x_pos 0.2
          } else if <player.location.direction[<player.location.cursor_on[10]>]> contains "south" {
          - define x_pos -0.2
          } else {
          - define x_pos 0
          }
        - if <player.location.direction[<player.location.cursor_on[10]>]> contains "west" {
          - define z_pos 0.2
          } else if <player.location.direction[<player.location.cursor_on[10]>]> contains "east" {
          - define z_pos -0.2
          } else {
          - define z_pos 0
          }
        - teleport <player.location.find.entities[armor_stand].within[5].filter[name.contains[<player.name>_cape]].get[1]> <player.location.add[<def[x_pos]>,0.6,<def[z_pos]>]>