Paste #49381: Untitled Paste

Date: 2018/08/23 15:54:17 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


IceSpike:
  type: world
  events:
    on player starts sneaking:
    - if <player.flag[element]> == water && <player.has_flag[element_toggled].not> {
      - define blocks li@
      - define loc1 <player.location.cursor_on[3]>
      - wait 2s
      - define loc2 <player.location.cursor_on[3]>
      - if <def[loc1]> == <def[loc2]> && <li@ice|packed_ice.contains[<player.location.cursor_on[3].material.name>]> {
        - define material <player.location.cursor_on[4].material>
        - repeat 4
          - define blocks <def[blocks].include[<player.location.cursor_on[3].add[0,<def[value],0]>]>
          }
        - foreach <def[blocks]> {
          - modifyblock <def[value]> <def[material]>
          }
        }
      }