Date: 2015/10/15 04:57:49 UTC-07:00
Type: Denizen Script
JetPackMaze:
type: world
events:
on player right clicks with stone:
- if <context.item> contains display_name=<&8>JetPack {
- if <player.flag[cooldownJetPackMaze]> == true {
- narrate "On cooldown."
} else {
- narrate "<player.location.line_of_sight[<player.location.add[0,8,0]>]>"
- if <player.location.line_of_sight[<player.location.add[0,8,0]>]> == true {
- ^fly <player> origin:<player.location> destinations:<player.location.add[0,8,0]> rotationthreshold:2
- ^cast DAMAGE_RESISTANCE duration:4.5s power:8 <player>
- ^flag player "cooldownJetPackMaze:true" duration:1.0S
} else {
- narrate "Not in sight bla"
}
}
}