- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2020/05/21 03:40:41 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1800
      #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



RawRaw



Pastes made: 78046