Paste #49319: Diff note for paste #49318

Date: 2018/08/21 16:21:47 UTC-07:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 sphere:
   type: world
   events:
     on player starts sneaking:
     - define yaw <player.location.yaw>
     - define pitch <player.location.pitch>
     - define radius 5
     - define step 3
     - define points li@
     - repeat 7 {
       - define new_yaw <def[yaw].add[<def[step].mul[<def[value].sub[4]>]>]>
       - repeat 7 {
         - define new_pitch <def[pitch].add[<def[step].mul[<def[value].sub[4]>]>]>
         - define x <def[radius].mul[<def[new_pitch].to_radians.sin>].mul[<def[new_yaw].to_radians.cos>]>
         - define z <def[radius].mul[<def[new_pitch].to_radians.sin>].mul[<def[new_yaw].to_radians.sin>]>
         - define y <def[radius].mul[<def[new_pitch].to_radians.cos>]>
         - define location l@<def[x]>,<def[y]>,<def[z]>,<player.world>
-        - define points <def[points].include[<def[location].add[<player.location>]>
+        - define points <def[points].include[<def[location].add[<player.location>]>]>
         }
       }
     - define blocks <def[points].parse[block].deduplicate>
     - modifyblock <def[blocks]> stone