#!/bin/bash

name=LaLotje
range=10
height=-2

for i in $(seq 50); 
do
    ./mcrcon -p mcrc0n1113 "execute at $name run summon minecraft:lightning_bolt ~$range ~$height ~"
    sleep 0.05
    ./mcrcon -p mcrc0n1113 "execute at $name run summon minecraft:lightning_bolt ~-$range ~$height ~"
    sleep 0.05
    ./mcrcon -p mcrc0n1113 "execute at $name run summon minecraft:lightning_bolt ~$range ~$height ~$range"
    sleep 0.05
    ./mcrcon -p mcrc0n1113 "execute at $name run summon minecraft:lightning_bolt ~-$range ~$height ~-$range"
    sleep 0.05
    ./mcrcon -p mcrc0n1113 "execute at $name run summon minecraft:lightning_bolt ~$range ~$height ~-$range"
    sleep 0.05
    ./mcrcon -p mcrc0n1113 "execute at $name run summon minecraft:lightning_bolt ~-$range ~$height ~$range"
    sleep 0.05
    ./mcrcon -p mcrc0n1113 "execute at $name run summon minecraft:lightning_bolt ~ ~$height ~-$range"
    sleep 0.05
    ./mcrcon -p mcrc0n1113 "execute at $name run summon minecraft:lightning_bolt ~ ~$height ~$range"
    sleep 0.05
done
