Overhauled the API, meaning there are breaking changes!
-
Now the color are saved using NBT through the use of CCA
-
The API is now much cleaner and clearer, with better javadocs as well
-
Added a way to add Custom Color animations as well, so you can make your cows glow black and white! You will need to use datapacks, check how on the wiki!
-
Added the "random" color glow, which changes to a random color every 7 ticks, so almost half a second.
-
Added /cgl clear command, to remove the custom glow color from entities & default & such
-
Moved the /cgl config to /cgl settings
-
Added permissions for the commands
-
Fixed the mod icon not showing correctly
-
Third time uploading this same release, because of weird random errors when used as an API! Yay...
This version brings many changes! Well, technicly it's the first Forge version so either everything changed or nothing at all! I'd suggest reading the other changelogs as well!
Even more first of all: Now it is compatible with Forge!
- First of all, now to use the ColoredGlowLib class you will need to get an instance of it. You can do this using ColoredGlowLib my_cgl = ColoredGlowLibMod.getLib(); and from there call the methods you are used to. Example: my_cgl.setColor(new Color(22, 33, 67));
- Now the variables get saved to the file less often (previously, every time it would send packets to the client it would also save them to the disk, not great for performance). Now, it only saves to file while using a command, or when the server stops.
- Added an optimizer: when updating data it will remove every Entity/EntityType with the color "#ffffff", which is the default white one, so no need to keep it around.
- Removed the overrideTeamColors gamerule, it didn't work.
- Reworked compleatly the commands instead! Now they all begin with either /cgl o /coloredglowlib. The /setglowcolor command is now /cgl setglowcolor Added a /cgl config command, which will allow you to modify some settings, like the overrideTeamColors, generalizeRainbow ecc...
- Added a proper config file, and MOVED the coloredglowlib_data.json inside the /config/coloredglowlib/ folder, along with the coloredglowlib_config.yml file. This file contains the same settings of the command.
This version brings many changes!
- First of all, now to use the ColoredGlowLib class you will need to get an instance of it. You can do this using ColoredGlowLib my_cgl = ColoredGlowLibMod.getLib(); and from there call the methods you are used to. Example: my_cgl.setColor(new Color(22, 33, 67));
- Now the variables get saved to the file less often (previously, every time it would send packets to the client it would also save them to the disk, not great for performance). Now, it only saves to file while using a command, or when the server stops.
- Added an optimizer: when updating data it will remove every Entity/EntityType with the color "#ffffff", which is the default white one, so no need to keep it around.
- Removed the overrideTeamColors gamerule, it didn't work.
- Reworked compleatly the commands instead! Now they all begin with either /cgl o /coloredglowlib. The /setglowcolor command is now /cgl setglowcolor Added a /cgl config command, which will allow you to modify some settings, like the overrideTeamColors, generalizeRainbow ecc...
- Added a proper config file, and MOVED the coloredglowlib_data.json inside the /config/coloredglowlib/ folder, along with the coloredglowlib_config.yml file. This file contains the same settings of the command.
You will need to move your coloredglowlib_data.json to the new location while updating! Also, now compatibile with Forge! But this is the fabric version so who cares!
- Updated to 1.19.1
- Now the updates sent to the client are given once every two seconds. (Planning to make a config, and with more testing, I could leave it to once per tick, depending on how laggy it would be)
- Not (yet) compatible with 1.18 and below. I won't be able to work on any of my mods for sometimes, but I am planning of updating ColoredGlowLib a bit when I can, including support for other versions.