Date: 2018/08/27 08:34:09 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 yaw <player.location.cursor_on[5].with_pose[<player.location.yaw.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]> {
- modidyblock <def[value].add[0,1,0]> <def[material]>
}