~ mcmonkey's simpler pastebin ~ Inspired by Hastebin ~ home page ~ Denizen help ~
click to use the normal pastebin instead ~ Click to make your own paste ~ click to duplicate and edit this paste


Title:
Type:
Date:
By:
Raw:
Other:
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1800

Untitled Paste
Denizen Script
2020/05/21 03:40:41 UTC-07:00
Guest
Click here to view this paste as a raw text file | Or download the script


      #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