Date: 2015/08/27 11:49:03 UTC-07:00
Type: Denizen Script
- 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]>]>