Paste #49473: Edit of P#49471 - Untitled Paste

Date: 2018/08/27 13:21:02 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 yaw <player.location.cursor_on[5].with_pose[<player.location.yaw.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]> { 
     - modidyblock <def[value].add[0,1,0]> <def[material]> 
   }