Date: 2019/04/21 13:50:21 UTC-07:00
Type: Denizen Script
WaveShooter:
type: task
definitions: caster
speed: 0
script:
- define casterlocation <def[caster].location>
- define targetlocation <def[caster].location.cursor_on>
- repeat 40:
- shoot falling_block,concrete,11[fallingblock_drop_item=false] origin:<def[casterlocation]> destination:<def[targetlocation]> speed:0.5 save:Wave
- wait 1t
- foreach <entry[Wave].shot_entities>:
- yaml id:WaveManager set <def[value].uuid>:RemoveOnLand
WaveFlagManager:
type: world
events:
on server start:
- yaml create id:WaveManager
RemoveWater:
type: world
events:
on falling_block changes block:
- if <yaml[WaveManager].read[<context.entity.uuid>]> == RemoveOnLand:
- determine cancelled
- narrate "context.entity.uuid is <context.entity.uuid>" targets:<server.match_player[Wahrheit]>
- narrate "context.old_material is <context.old_material>" targets:<server.match_player[Wahrheit]>
- narrate "context.new_material is <context.new_material>" targets:<server.match_player[Wahrheit]>