- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleEdit of P#49483 - Ice Wall
TypeDenizen Script
Date2018/08/27 14:41:27 UTC-07:00
ByTech
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1800
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]> 
      }



RawRaw



Pastes made: 78101