Skip to content

Instantly share code, notes, and snippets.

# 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