Date: 2018/08/27 14:41:27 UTC-07:00
Type: Denizen Script
IceWall:
type: world
events:
on player clicks block:
- if <li@ice|packed_ice.contains[<context.location.material.name>].not> queue clear
- if <player.has_flag[element_toggled]> queue clear
- if <player.flag[element].is[==].to[water].not> queue clear
- define material <player.location.cursor_on[5].material>
- define modifiedyaw <context.location.with_pose[<player.location.pitch>,<player.eye_location.yaw.raw.add[90]>]>
- define blocks li@
- repeat 3 {
- define blocks <def[blocks].include[<def[yaw].add[<def[yaw].direction.vector.mul[<def[value]>]>]>]>
- define blocks <def[blocks].include[<def[yaw].add[<def[yaw].direction.vector.mul[<def[value].sub[<def[value].mul[2]>]>]>]>]>
}
- foreach <def[blocks]> {
- modifyblock <def[value].add[0,1,0]> <def[material]>
}