This version fixed some major bugs, and also added a new feature: colors visible only to some players and not others!
- You can make an entity glow a certain color only for a specified player using `#setColorFor(target, color, colorViewer)` with the API, or using the command `/cgl setglowcolor <target> <color> [visibleToPlayer]`
- Fixed a bug where the mod wouldn't work propely when a client connected to the server. (Now it will actually display the custom colors)
- Fixed a bug where custom color animations wheren't able to load on a client that connected to a server
- Fixed `#hasCustomOrDefaultColor(target)` giving an inverted result
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...
Updated to 1.20! Also, the config & data saving have had an update, they will now work better! (But sadly, you will have to re-do most of your entity coloring).
About the forge version:
- You will have to wait, and I may not even do it, sorry, don't really have much time as of now!
- Fixed default color not being saved properly
- Now using /cgl setglowcolor default <color> it's possible to set the default color in-game
- Added an icon
- Fixed default color not being saved properly
- Now using /cgl setglowcolor default <color> it's possible to set the default color in-game
- Updated the icon
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.
- Now when the default "general color" (the one you set with ColoredGlowLib.setColor()) is white it will be ignored. This way even when overriding team colors, it will be able to render the team's color instead of white.
- Added the possibility of setting a color for an EntityType with the /setglowcolor command! It's like the summon command argument, like /setglowcolor minecraft:cow <color>
- Fixed a bug that caused EntityType related stuff to not be saved/sent correctly
- Fixed a bug with the HEX -> Color translation that didn't read correctly values such as "0f"
- Now other mods can submit their values even if the server is not loaded yet (hooray!)
Added a way to check if the mod is ready to accept values or not.
- Use ColoredGlowLib.isReady() to check if the mod can accept values or not. (the mod is sort of ready after the first tick of the server)
Drum roll please............. It now runs on server as intended! [* *childern Yay* *](https://youtu.be/attUrDwfdr8)!
Well, anyway here are the changes:
- Now the mod can run server side too, this means you can slap into a server, set the color of a cool polar bear to deep purple and show it to your friends! (Well, that is, if you have any friends and if they have the mod installed on their client.
- Now a developer can (and should) set the color from the usual ColoredGlowLib class which is going to set the color on the server side. Periodicly, packets will be sent to the client updating the information, so they will render the colors.
- Fixed a few issues with the data file, now it should be working correctly without spitting random errors. (you may have to copy the stuff below the first line that says "ColoredGlowlib data" and delete the file, let it generate again and then paste it under the same line which probably changed not by much, but still.
- To automagicly send the new stuff to players you can use ColoredGlowLib.updateData(MinecraftServer server), and this will also save the data on the file.
- The data file now will be saved only on serverside, or in singleplayer (took me a while to figure out how to not save it everytime on the client too btw)
- Added a few utility methods (most of which, i don't really remember), like getServer(), setDelayBetweenSendingPackets() and others. Check the source/javadoc to find out.
- Vanquished other bugs probably, and then also studied them/ate them. Eh? What? Nothing nothing.
- Added a datafile so now it is possibile to save the color assigned to Entities/EntityTypes/in general (it also represents somewhat of a configuration file in the config/ folder but it's not advised to use it that way, i'll may write a wiki page to use it properly as one in the future)
- Added a few more methods like hasEntityColor() and similar QOL additions (nothing that was impossibile to do before)
- Removed a few debug printlns that i forgot
- Now when an entity dies it's going to get rid of its color from the map/list contains it
- Now the color of an entity is saved as an HEX string instead of Color object
- Rewritten the rendering code to make it better & tidier
- Fixed some bugs such as not being able to set a rainbow color using the command
- Started to think how to make this mod compatibile server side too (Most likely will require to have it both on the server AND the client since the thing the rendering is done only clientside)
WARNING! NOT TESTED AT ALL! Added a few remove effect commands (you can see them in the javadocs) and made the new rainbow color also entity-type specific. 1.18.2 coming soon-ish?
Added a new option for rainbow color glow. (it currently applies to all entity) (unless... there is somekind of easter egg that has snugged itself into this? Right sheep?)