Date: 2018/08/23 15:54:17 UTC-07:00
Type: Denizen Script
IceSpike:
type: world
events:
on player starts sneaking:
- if <player.flag[element]> == water && <player.has_flag[element_toggled].not> {
- define blocks li@
- define loc1 <player.location.cursor_on[3]>
- wait 2s
- define loc2 <player.location.cursor_on[3]>
- if <def[loc1]> == <def[loc2]> && <li@ice|packed_ice.contains[<player.location.cursor_on[3].material.name>]> {
- define material <player.location.cursor_on[4].material>
- repeat 4
- define blocks <def[blocks].include[<player.location.cursor_on[3].add[0,<def[value],0]>]>
}
- foreach <def[blocks]> {
- modifyblock <def[value]> <def[material]>
}
}
}