Paste #49389: Diff note for paste #49388

Date: 2018/08/23 16:06:38 UTC-07:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


-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]> {
+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]> 
+          } 
+        } 
+        else if <def[loc1]> != <def[loc2]> {
+        - foreach <def[loc1].points_between[<def[loc2]>]> {
           - modifyblock <def[value]> <def[material]>
           }
         }
-      }
+      }