Paste #49484: Edit of P#49483 - Ice Wall

Date: 2018/08/27 14:41:27 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


IceWall:
  type: world
  events:
    on player clicks block:
    - if <li@ice|packed_ice.contains[<context.location.material.name>].not> queue clear  
    - if <player.has_flag[element_toggled]> queue clear  
    - if <player.flag[element].is[==].to[water].not> queue clear
    - define material <player.location.cursor_on[5].material>
    - define modifiedyaw <context.location.with_pose[<player.location.pitch>,<player.eye_location.yaw.raw.add[90]>]>
    - define blocks li@
    - repeat 3 {
      - define blocks <def[blocks].include[<def[yaw].add[<def[yaw].direction.vector.mul[<def[value]>]>]>]>
      - define blocks <def[blocks].include[<def[yaw].add[<def[yaw].direction.vector.mul[<def[value].sub[<def[value].mul[2]>]>]>]>]>
      }
    - foreach <def[blocks]> {
      - modifyblock <def[value].add[0,1,0]> <def[material]> 
      }