Paste #49556: Fortnite (ew) Wall(s)

Date: 2018/09/01 11:49:04 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
18
19
20
21


Walls:
  type: world
  debug: false
  events:
    on player places block:
      - define material <context.material>
      - if <context.material.contains_text[planks].not> queue clear
      - define source <context.location.add[0,-1,0].center.with_pose[0,<player.eye_location.yaw.raw.add[90]>]>
      - define blocks li@
      - repeat 1 {
        - define blocks <def[blocks].include[<def[source].add[<def[source].direction.vector.mul[<def[value]>]>]>]>
        - define blocks <def[blocks].include[<def[source].add[<def[source].direction.vector.mul[-<def[value]>]>]>]>
        }
      - foreach <def[blocks]> {
        - modifyblock <def[value].add[0,1,0]> <def[material]>
        - modifyblock <def[value].add[0,2,0]> <def[material]>
        - modifyblock <def[value].add[0,3,0]> <def[material]>
        }
      - repeat 2 {
        - modifyblock <context.location.center.add[0,<def[value]>,0]> <def[material]>
        }