Date: 2020/01/08 12:28:43 UTC-08:00
Type: Denizen Script
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