Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Python script that generates a Minecraft json string with a linear gradient between two hex codes.

Notifications You must be signed in to change notification settings

rackodo/gradient-json-minecraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gradient-json-minecraft

Python script that generates a Minecraft json string with a linear gradient between two hex codes.

⚠️ ARCHIVED ⚠️

This is an old version of the Gradient JSON Generator. The new repository managed by ElGeroIngles contains more features and is more recently updated.

The new repository can be found here.

Usage

Download the repository and open the python file inside. The file automatically closes after printing the ending string, so make sure you open it in an existing terminal.

Prompts

image

Text: The string to make into a gradient.

Color A: The first colour of the gradient as a hexcode. The gradient is generated left to right, so this will be the leftmost colour. The # is optional.

Color B: The second colour of the gradient as a hexcode. The rightmost colour. The # is optional.

Bold?: Bold text? Any input other than true (case sensitive) will be considered false.

Underline?: Underlined text? Any input other than true (case sensitive) will be considered false.

Italics?: Italic text? Any input other than true (case sensitive) will be considered false.

Output

The program will print a long string of text that you can then paste into any tellraw command or other command that accepts JSON.

image

image

Credits

RGB to HEX and HEX to RGB functions written by Sachin Rastogi

About

Python script that generates a Minecraft json string with a linear gradient between two hex codes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages