Paste #69338: Untitled Paste

Date: 2020/05/21 03:40:41 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


#D-Cuboids
      - define max <[entity].bounding_box.last>
      - define min <[entity].bounding_box.first>
      - define max10 <[max].mul[10]>
      - define min10 <[min].mul[10]>
      - define cuboid <cuboid[<[max]>|<[min]>]>
      - define cuboidx10 <cuboid[<[max10]>|<[min10]>]>
      - define cuboidentities <[cuboid].list_entities.exclude[<player>]>
      #D-Entities
      - foreach <[cuboidentities]> as:entityhit:
        - define location10 <[entityhit].location.mul[10]>
        - if <[location10].is_within[<[cuboidx10]>]>:
          - define entities:<-:<[entityhit]>
      # Actually use definitions:
      - if <[entities].size> > 1:
        - hurt <[entities]> 1
        - hurt <[entity]> 1