Paste #63798: Untitled Paste

Date: 2020/01/08 12:28:43 UTC-08: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
18
19
20
21


bedrockhit:
  type: world
  events:
    on entity damaged:
    - if <context.damager.has_flag[bedrock]>:
      - teleport <context.entity> <context.entity.location.parse[round[1]]>
      - define boundingbox1:<context.entity.bounding_box.first>
      - define boundingbox2:<context.entity.bounding_box.last>
      - define entitycuboid:<cuboid[<[boundingbox1]>|<[boundingbox2]>]>
      - determine 3000 passively
      - remove <context.entity>
      - foreach <[entitycuboid].blocks> as:location:
        - spawn bedrockarmorstand <[location]>

bedrockarmorstand:
  type: entity
  entity_type: ARMOR_STAND
  visible: false
  marker: true
  gravity: false
  passenger: falling_block,bedrock