Jump to content

How to convert a number to hexidecimal.


TenCommands

Recommended Posts

I am make a Skript that pulls the color of a leather piece of armor and then colors the item name to be the same. Only issue is that the color code for armor is a decimal number (base10) and the only way to color text is using the default Minecraft coloring or hexadecimal (base16).
This is how I am getting the item color:

set {_nbt} to nbt compound of player's held item
set {_color} to tag "display;color" of {_nbt}

The above snippet of code uses SkBee.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...