This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generates a minecraft litematic file which defines a circle of beacons that surround the center. | |
# | |
# The beacons are placed in such a way that the beams are visually as uniformly spaced as possible from the center. | |
# The beams are colored in a smooth color transition from one beacon to the next. | |
# Each beam is surrounded by a random scattering of "particles" (glass panes) of appropriate colors. | |
# | |
# Inspired by this video: https://www.youtube.com/watch?v=VcsEm7FnheU by Squibble | |
import math | |
from itertools import accumulate | |
from litemapy import Region, BlockState |