Date: 2020/05/20 19:43:12 UTC-07:00
Type: Denizen 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[<[entity]>]>
- foreach <[cuboidentities]> as:entity2:
- define locationx10 <[entity2].location.mul[10]>
#- narrate "cuboid <[cuboidentities].size>" targets:<server.match_player[Jose_95]>
- if <[locationx10].is_within[<[cuboidx10]>]>:
- narrate "yess" targets:<server.match_player[Jose_95]>
#- narrate "<[entities].size>" targets:<server.match_player[Jose_95]>
- define entities <[entities].include[<[entity2]>]>