Skip to content

Pack Update Message Format

Text formatting

The mod allows you to format your text, this means coloring it using vanilla color codes or hex colors and making it italic, bold, both, etc.

New line

You can split the message into multiple lines by adding \n where you want a new line to begin.
For example "First line\nSecond line" is rendered like this:
Image showing "First line\nSecond line" being rendered in Minecraft chat

Formatting codes

You've probably heard of or even used Minecraft formatting codes before. You can use them here too!
All you need to do is use the & (and) symbol and then a formatting character after it.

You can find all the formatting codes available in Minecraft here.

For example "&cHello!" would be rendered like this:
Image showing "&cHello!" being rendered in Minecraft chat

And "&l&cHello!" would be rendered like this:
Image showing "&l&cHello!" being rendered in Minecraft chat

Hex colors

If those 16 colors aren't enough for you, then luckily you can also use hex colors!
All you need to do is use the & (and) symbol and then the hex code after it (including the #).

You can use the Google color picker for picking hex colors.

For example "&#87CEFAHello!" would be rendered like this:
Image showing "&#87CEFAHello!" being rendered in Minecraft chat

You can also combine formatting codes with hex colors.
For example "&l&#87CEFAHello! would be rendered like this:
Image showing "&l&#87CEFAHello!" being rendered in Minecraft chat

For gradients, you can use this site.
For example (generated using that site) "&#FF0000O&#FF3600f&#FF6D00f&#FFA400s&#FFDA00e&#DBFF00t&#6DFF00M&#00FF00o&#00926Dn&#0024DBk&#1500DBe&#3600A6y&#55008E5&#7500B03&#9400D38" would be rendered like this:
Image showing "&#FF0000O&#FF3600f&#FF6D00f&#FFA400s&#FFDA00e&#DBFF00t&#6DFF00M&#00FF00o&#00926Dn&#0024DBk&#1500DBe&#3600A6y&#55008E5&#7500B03&#9400D38" being rendered in Minecraft chat

Character escaping

If you want to use an & (and) character without it doing any formatting, you can add two \ (back-slashes) before it.
For example "This & that" is rendered like this:
Image showing an error when trying to render "This & that" in Minecraft chat

But "This \\& that" is rendered like this:
Image showing "This \& that" being rendered in Minecraft chat

Placeholders

If you want to include information about the commit that was pushed, you can use placeholders.
Here's a list:

Placeholder Value
{ref} The branch that was committed to.
{lastCommitHash} The hash of the last commit before this one.
{newCommitHash} The hash of the new commit.
{repositoryName} The name of the repository.
{repositoryFullName} The full name of the repository.
{repositoryUrl} The url pointing to the repository.
{repositoryVisibility} The visibility of the repository (public or private).
{pusherName} The username of the person who pushed the commit.
{headCommitMessage} The message of the latest commit.

Here's an example of using one: "New commit by {pusherName}.\nDescription: {headCommitMessage}":
Image showing "New commit by {pusherName}.\nDescription: {headCommitMessage}" being rendered in Minecraft chat

* btw these screenshots are actually from minecraft.tools and not Minecraft lol.