Compatibility
Minecraft: Java Edition
1.21.4
Platforms
Supported environments
Links
Creators
Details
Licensed LGPL-3.0-or-later
Published 4 weeks ago
Updated last month
Overview
Allows the user to run a command which will generate the stained glass patterns needed to form a gradient between the two colors they choose.
The mod will output the target color and the color it was able to achieve by using glass panes for the beacon beam. This will also give the margin of error the actual color is from the targeted color.
The mod uses the following algorithm to be able to calculate beacon beam colors from stained glass:

This calculation is referenced from the minecraft wiki page for beacons
Usage
Use /beacon_gradient
startColor- This is the starting color of your gradient. This can be a hex color (Include the # in the hex color) or a basic color written out like
"red"
- This is the starting color of your gradient. This can be a hex color (Include the # in the hex color) or a basic color written out like
Required Parameters
endColor- This is the ending color of your gradient. This can be a hex color (Include the # in the hex color) or a basic color written out like
"red"
- This is the ending color of your gradient. This can be a hex color (Include the # in the hex color) or a basic color written out like
beacons- This is the number of beacons you will be wanting to place
Optional Parameters
maxStack- This is the maximum height of stained glass you are willing to use. The larger the number the more accurate the gradient will be, but the default value of
7is quite accurate and should not need to be increased. WARNING Anything more than 7 will cause computational times to expoentially increase. Lower end hardware be aware
- This is the maximum height of stained glass you are willing to use. The larger the number the more accurate the gradient will be, but the default value of
beamWidth- Controls how many candidate glass stacks are considered simultaneously when the algorithm is trying to approximate the target color for a beacon beam
Example




