blockListTester:
# Change "define range 20" to the amount of blocks
# you would like the flame to travel.
type: world
events:
on player right clicks with i@stick:
- define range 20
- ^inject blockListUtil instantly
- ^playeffect <def[blockList]> effect:flame qty:100
blockListUtil:
# This is the script where the vector math is done.
type: task
script:
- ^define blockList li@
- ^repeat %range% {
- ^define currentBlock <player.location.add[<player.location.direction.vector.mul[%value%]>]>
- ^define blockList <def[blockList].include[%currentBlock%]>
}