[
  {
    "path": ".gitignore",
    "content": "# gradle\n\n.gradle/\nbuild/\nout/\n\n# idea\n\nbin/\n.idea/\n.settings/\n.project\n*.iml\n*.ipr\n*.iws\n*.launch\n\n# fabric\n\nrun/"
  },
  {
    "path": "CHANGELOG.md",
    "content": "# Illuminations - Changelog:\n\n### Illuminations 1.10.2 - 1.18\n- Update to Minecraft 1.18\n\n### Illuminations 1.10.1 - 1.17.1\n- Added two integrated resource packs that control the firefly, glowworm and plankton texture. Two options are now available: \"lowerres\", a lower resolution of the firefly texture, and \"pixelaccurate\", a firefly texture made to look like the Minecraft Live 2021 firefly announced for the Wild Update\n- Added a debug mode config option to enable debug mode logs to troubleshoot issues with cosmetics loading\n\n### Illuminations 1.10 - 1.17.1\n- Added a new Illuminations type: Prismarine Crystals. Spawning in the shade of sea lanterns, these crystals will float underwater and oscillate between white, cyan and green.\n- Added a new aura for tier 2 donators: Prismarine aura\n- Added a new crown for tier 2 donators: Prismarine crown\n- Fixed the texture issue with the auto-update toast\n- Added a new donation toast to inform users of donation perks\n\n### Illuminations 1.9: Hearts and Lanterns - 1.17.1\n- Reworked all pride hearts to now be in 3D, better looking, and spinning!\n- Added Gay, Aromantic, Pansexual and Agender pride hearts\n- Added 4 new pets for supporters: the floating lanterns! Available in normal lantern, soul lantern as well as crying lantern and soothing lantern (from Spawn Lanterns). They also have two cute faces and spin!\n- All 3D particles are no longer shaded\n\n### Illuminations 1.8 - 1.17.1\n- Added Pumpkin Spirits! These mischievous entities take the form of small flying Jack o' Lanterns and will act like Will o' Wisps, appearing from Jack o' Lanterns at night\n- Added Poltergeists! These devious flying skulls will appear from placed skeleton skulls at night, and may also appear when you kill undead at night\n- These two new spirits are also available as pets for Illuminations supporters\n- Transformed the Eyes in the Dark option to Halloween Features. Eyes in the dark, Pumpkin spirits and poltergeists will now be controlled by this setting.\n- Fixed an issue that caused very transparent particles to not appear ruining the intended design of several auras and effects\n\n### Illuminations 1.7.2 - 1.17.1\n- Illuminations will now be able to spawn much further from the player.\n    - This change dilutes illumination density and dispersion them more, but also increases the ambient immersion, as you will no longer have the feeling illuminations only appear in a 16 block radius around you!\n- Fixed illuminations spawning in blocks other than air\n- Fixed Jacko pet lighting up during the day and lighting off during the night\n\n### Illuminations 1.7.1 - 1.17.1\n- Fixed an issue that cause the greeting screen to always show\n- Fixed fireflies not spawning at night if the world time is invalid\n\n### Illuminations 1.7: Configuminations - 1.17.1\n- Added new biome settings tabs for Overworld, Nether, End and Other dimensions to modify firefly, glowworm and plankton spawn rates and firefly colors for each biome category!\n- Added spawn rate settings for eyes in the dark, will o' wisps and chorus petals\n- Added options for fireflies to spawn every time of day and underground\n- Added a custom rainbow mode options for fireflies!\n\nAll of this update was entirely made by a community member: Boerdereinar, so big kudos and thanks to them!\n\n### Illuminations 1.6.4 - 1.17.1\n- Optimized mod assets thanks to RDKRACZ!\n- Added indonesian localization thanks to suryomujahid!\n\n### Illuminations 1.6.3 - 1.17.1\n- Made a minor refactor for eventual mod compatibility features\n\n### Illuminations 1.6.2 - 1.17.1\n- Added two new auras for tier 2 donators: Confetti and Prismatic Confetti\n    - These auras will sprinkle confetti around the player, that will stay on the ground for around 20 seconds!\n    - Normal confetti aura will spawn randomly colored confetti, prismatic confetti aura will spawn confetti according to the player's color\n- Fixed config button not showing up in Mod Menu\n\n### Illuminations 1.6.1 - 1.17.1\n- Fixed a crash that would sometimes occur with Satin API installed\n\n### Illuminations 1.6 - 1.17.1\n- Added \"jeb_\" mobs:\n    - Any mob named jeb will be applied a glowing rainbow effect shifting its colors gradually\n    - Requires Satin API (https://www.curseforge.com/minecraft/mc-mods/satin-api). If Satin API is present, the functionality will be enabled. If Satin is not present, the functionality will be disabled.\n    - The functionality will not work if Canvas Renderer is present.\n    - The functionality is incompatible with Iris. If Iris is present, the functionality will be disabled.\n- Fixed the game crashing on startup if Iris is loaded\n- Removed an annoying log spam every time the player reloads Illuminations cosmetics\n- Updated to Minecraft 1.17.1\n\n### Illuminations 1.5.2 - 1.17\n- Updated to Minecraft 1.17\n\n### Illuminations 1.5.1 - 1.16.5\n- Added a config option to see your own cosmetics in first person\n\n### Illuminations 1.5: Souls and Wisps - 1.16.5\n- Added Will o' Wisps! Inhabiting Soul Sand Valleys, these wandering spirits roam the dead fields and will appear, phase through and disappear into soul sand.\n- Will o' Wisps can also spawn from Soul Lanterns so you can use them for an eerie or magical ambience outside of soul sand valleys\n- Added pets for Illuminations donators:\n    - Added Will o' Wisp, Golden Will, Founding Skull and the classic Dissolution Wisp pets \n    - All free pride overheads and Jacko have been converted into pets\n- Reduced eyes in the dark spawn chances tenfold\n- Fixed eyes in the dark not glowing\n- Removed Vanguard and replaced it for an internal auto-updater, as well as making that auto-updater opt-in\n- Added a first time greeting screen for the user to choose if they want to enable the auto-updates or not\n\n### Illuminations 1.4.9 - 1.16.5\n- Added the Lesbian, Bi, Ace, NB and Intersex pride free overheads thanks to JothGC\nGet them for free at https://illuminations.uuid.gg/pride\n\n### Illuminations 1.4.8 - 1.16.5\n- Fixed an issue that caused the prismatic color to not be retrieved from the dashboard\n- Fixed the bad UV mapping of the Summerbreeze Wreath and the Voidhearrt Tiara crowns\n- Fixed Drip only appearing when invisible\n\n### Illuminations 1.4.7 - 1.16.5\n- Added the Illuminations contest winning crowns and auras for tier 2 donators\n    - Added the Voidheart Tiara and Shadowbringer Soul aura by azazelthedemonlord\n    - Added the Deepsculk Horns, Springfae Horns and Worldweaver Halo overheads by ArathainFarqoe\n    - Added the Glowsquid Cult and Time Aspect Cult crowns by Heather Shadelight\n    - Added the Golden Rod aura and Summerbreaze Wreath overhead by 24Chrome\n    - Added the Sculk Tendrils and Autumn Leaves auras by SekoiaTree\n- Added a color customizable Drip cosmetic for over-generous donators\n\n### Illuminations 1.4.6 - 1.16.5\n- Fixed chorus petals not uniformly rotating\n- Improved log output when having trouble with cosmetics\n\n### Illuminations 1.4.5 - 1.16.5\n- Illuminations cosmetics will now be reloaded upon a player joining a world, no longer needing to restart the game in order to see changes\n\n### Illuminations 1.4.4 - 1.16.5\n- Fixed an issue that caused fireflies not to spawn if time is set to something greater than 24000\n- Updated to Vanguard 1.0.5\n\n### Illuminations 1.4.3 - 1.16.4\n- Updated to Vanguard 1.0.4\n- Removed the no longer used auto-update config option \n\n### Illuminations 1.4.2 - 1.16.4\n- Updated to Vanguard 1.0.1\n\n### Illuminations 1.4.1 - 1.16.4\n- Added missing Canvas compatibility with the Chorus aura\n- Switched from the integrated auto-updater to Vanguard\n- Added three new occult-themed crowns for tier 2 donators: Bloodfiend, Dreadlich and Mooncult, all desgined by ArathainFarqoe!\n\n### Illuminations 1.4: The Chorus Petals Update - 1.16.4\n- Introduced Chorus Petals: appearing near Chorus flowers, these beautiful petals will twirl down to the ground, to the winds of the End, transitioning from a beautiful white to a majestic purple\n    - The younger the flower is, the more petals will appear\n    - Breaking a Chorus flower will provoke a burst of petals\n        - Again, the younger the flower, the more petals will burst\n- Added the Chorus aura for Tier 2 donators\n- Added the Chorus crown for Tier 2 donators\n\n### Illuminations 1.3.1 - 1.16.4\n- Fixed an issue where illuminations would not glow in the dark without Canvas\n- Added a firefly white alpha config options\n    - Controls the alpha value of the white center glow for fireflies, glowworms, plankton and twilight aura fireflies (0 is no white center, 100 is a full alpha white center)\n- Fixed an issue where values under 100 for illumination spawn density would prevent spawn entirely\n- Fixed an issue where the config file would only generate with ModMenu loaded\n\n### Illuminations 1.3 - 1.16.4\n- Tweaked firefly render\n- Added proper Canvas bloom compatibility for illuminations and cosmetics\n- Introduced two new unique overheads: the frost crown and the solar crown\nOn an unrelated but still important note: the way donator rewards work has been changed.\n- Instead of having special rewards depending on the time of your donation, donators will be classed into two tiers:\n    - Tier 1: Donations of at least 2€ will reward you with the color customizable **Twilight aura**\n    - Tier 2: Donations of at least 5€ will reward you with **all other cosmetics as well as future cosmetics** (as well as tier 1 rewards)\n- All previous donators have been rewarded with Tier 2\n\n### Illuminations 1.2.6 - 1.16.4\n- Added a \"density\" config option that multiplies the amount of illuminations appearing\n- Added an auto-updater built into the mod : if Illuminations is outdated, it will notify you and automatically install the latest version\n    - Enabled by default, can be disabled via a config option\n- Fixed (ONCE MORE, CAUSE I HAVE DUM) an issue where server players using Illuminations would crash upon a player with an aura dying\n    - This time it's fixed for good (I swear (I think (I hope)))\n- Added some disgusting temporary hacks to fix an issue where illuminations would never appear if BetterEnd was installed\n\n### Illuminations 1.2.5 - 1.16.4\n- Fixed an issue that caused a crash when Illuminations servers aren't reachable\n- Updated to Minecraft 1.16.4\n\n### Illuminations 1.2.4 - 20w45a\n- Removed bugballs, making the mod client-only again\n- Updated to Minecraft snapshot 20w45a\n\n### Illuminations 1.2.3 - 1.16.3\n- Fixed an issue where server players using Illuminations would crash upon a player with an aura dying (again)\n- Fixed an issue where players with an aura would crash upon dying in third person modes (again)\n\n### Illuminations 1.2.2 - 1.16.3\n- Introduced a config\n- Added a config option to enable, disable or always display eyes in the dark\n- Eyes in the dark no longer appear if the player has night vision\n\n### Illuminations 1.2.1 - 1.16.3\n- Fixed an issue with glowing eyes appearing in other dimensions than the overworld\n- Added website and issue links to the mod description\n\n### Illuminations 1.2 - 1.16.3 and 1.16.1\n- Added autumn flies: during the month of October, fireflies will be orange\n- Added eyes in the dark: during the month of October, glowing eyes may appear in very dark places to creep on you\n- Added the Jacko overhead\n- Added the Ghostly aura\n\n### Illuminations 1.1 - 1.16.3 and 1.16.1\n- Introduced bugballs: get them from a full composter (up to four) and throw them around to spawn fireflies! (only available if Illuminations is installed on both server and clients)\n- Introduced overheads, a new type of cosmetic that can be equipped independently of auras and will float over your head\n    - Added the Pride and Trans Pride overheads, obtainable for free at https://illuminations.uuid.gg/pride\n- Fixed an issue where server players using Illuminations would crash upon a player with an aura dying\n- Fixed an issue where players with an aura would crash upon dying in third person modes\n- Updated to Minecraft 1.16.3\n\n### Illuminations 1.0.5 - 1.16.2\n- Restricted firefly spawn between daily times 13000 and 23000 (previously was between 13000 and 1000)\n- Updated to Minecraft 1.16.2\n\n### Illuminations 1.0.4 - 1.16.1\n- Fixed an issue that caused illuminations to be incorrectly rendered with higher resolution resource packs\n\n### Illuminations 1.0.3 - 1.16.1\n- Added an offline mode so the mod doesn't crash when unable to contact the Illuminations server\n\n### Illuminations 1.0.2 - 1.16.1\n- Introduced prismatic auras, auras that you can change the color of on the [Illuminations dashboard](https://illuminations.uuid.gg/)\n  - Made the twilight aura prismatic\n\n### Illuminations 1.0.1 - 1.16.1\n- Fixed an issue where the game would crash upon loading the mod with Sodium\n\n### Illuminations 1.0 - 1.16.1\nThe great overhaul is here! Illuminations is now client only for better performance, spawn control, and the ability to connect to vanilla servers with it.\n- Illuminations are now particles instead of entities, enjoy being able having ten million fireflies without your server committing seppuku\n- Fireflies will now appear regularly in varying quantities depending on the various biomes instead of clouds\n- Added glowworms, illuminations that will stick to cave ceilings\n- Added glowing plankton, illuminations that will spawn in the dark sea depths\n- Removed firefly grass and firefly lantern blocks, glowmeal and firefly items and firefly grass world features\n- Introduced auras, special Illuminations effects around the player visible to other players that have the mod. These auras are currently a bonus for donators but some may be available through giveaways and other special events in the future.\n    - Added the Twilight aura\n\n### Illuminations 0.5.1 - 1.16.1\n- Updated to Minecraft 1.16.1 (thanks to Bulldog83 for the contribution!)\n\n### Illuminations 0.5 - 20w06a\n- Updated to Minecraft snapshot 20w06a\n\n### Illuminations 0.4 - 1.15.1\n- Reduced firefly AI tasks (light checking, despawn checking)\n- Removed firefly render distance limit\n- Removed the bug net\n- Fireflies are now catchable by hand\n- Firefly flickering animations are now paused when the game is paused\n- Increased firefly in a bottle light strength from 10 to 15 (now equivalent to a lantern)\n- Recipes for firefly grass (short and tall) and firefly in a bottle now unlocks upon getting a firefly for the first time\n- Recipe for glow meal now unlocks upon getting lime dye, glowstone dust or bone meal\n- Updated to Minecraft 1.15.1\n\n### Illuminations 0.3 - 1.14.3\n+ Added glow meal\n\t+ Crafted from a lime dye, bone meal and glowstone dust\n\t+ When used on grass, grows firefly grass\n+ Updated to Minecraft 1.14.3\n\n### Illuminations 0.2 - 1.14.2\n+ Added Firefly grass (and Firefly tall grass)\n    + Generates in the world in plain, swamp, forest, jungle, savanna and river biomes\n    + Acts exactly like normal grass and tall grass\n    + Has a luminosity of 1\n    + Can be crafted from one Grass and one Firefly\n+ Completely change Firefly spawning mechanics\n    + Fireflies no longer spawn randomly, but now spawn from Firefly grass during night\n    + Fireflies are now very common to see in their habitat biomes\n+ Optimize firefly spawns and despawns, greatly decreasing the lag caused by the mod\n+ Fireflies now disappear on daytime\n+ Added trail particles to Will o' Wisps\n+ Reduced Firefly health to 1\n+ Added french localization\n+ Updated to Minecraft 1.14.2\n\n### Illuminations 0.1.7 - 1.14.1\n+ Fixed the bug where mip map levels wouldn't work\n+ Completely removed the experimental items\n\n### Illuminations 0.1.6 - 1.14.1\n+ Added Firefly in a bottle\n+ Added Bug Net (can be used to capture Fireflies by attacking them)\n+ Added Firefly item\n+ Removed experimental items (nests, throwable Will o' Wisp...) from the creative inventory\n+ Updated to Minecraft 1.14.1\n\n### Illuminations 0.1.5 - 1.14\n+ Updated to Minecraft 1.14\n\n### Illuminations 0.1.4 - 19w14b\n+ Updated to Minecraft snapshot 19w14b\n\n### Illuminations 0.1.3 - 19w11b\n+ Added firefly and lightning bug nests: acts as a spawner for fireflies and lightning bugs during night\n+ Updated to Minecraft snapshot 19w11b (thanks Fab!)\n\n### Illuminations 0.1.2 - 19w02a\n+ Implemented Will o' Wisps, flaming spirits spawning in swamps at night (experimental)\n\t+ Will o' Wisps are catchable\n\t+ Will o' Wisps (in a player's hand) can be thrown\n+ Updated to Minecraft snapshot 19w02a\n\n### Illuminations 0.1.1 - 18w50a\n+ Fixed server side crashing on startup\n\n### Illuminations 0.1 - 18w50a\n+ Ported to Fabric mod loader (only fireflies and lightning bugs)\n+ Corrected firefly spawn rates\n+ Fireflies now flicker\n+ Changed the name of the mod from Lumen to Illuminations.\n\n\n see full changelog [here](https://github.com/Ladysnake/Illuminations/blob/main/CHANGELOG.md \"Changelog\")"
  },
  {
    "path": "LICENSE-ART",
    "content": "All Rights Reserved\nCopyright (C) 2017-2021 Ladysnake\n"
  },
  {
    "path": "LICENSE-CODE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n\n\"MINECRAFT\" LINKING EXCEPTION TO THE GPL\n\nLinking this mod statically or dynamically with other \nmodules is making a combined work based on this mod. \nThus, the terms and conditions of the GNU General Public License cover the whole combination.\n\nIn addition, as a special exception, the copyright holders of \nthis mod give you permission to combine this mod \nwith free software programs or libraries that are released under the GNU LGPL \nand with code included in the standard release of Minecraft under All Rights Reserved (or \nmodified versions of such code, with unchanged license). \nYou may copy and distribute such a system following the terms of the GNU GPL for this mod \nand the licenses of the other code concerned.\n\nNote that people who make modified versions of this mod are not obligated to grant \nthis special exception for their modified versions; it is their choice whether to do so. \nThe GNU General Public License gives permission to release a modified version without this exception; \nthis exception also makes it possible to release a modified version which carries forward this exception.\n"
  },
  {
    "path": "README.md",
    "content": "# Illuminations\n\n**Illuminations** is a client sided Minecraft Fabric mod that adds multiple ambient particles in order to make your world more enjoyable at night or in dark places.\n\n*(All screenshots with a bloom effect were taken with Canvas Renderer)*\n\n## Illuminations types\n\n### Fireflies\n\n**Fireflies** are small flying insects that come out during the night and disappear when the sun rises. They will appear in small quantities in jungle, plains, savanna and taiga type biomes, medium quantities in forest and river type biomes and great quantity in swamp type biomes.\n\n![illuminations-1.0-fireflies](./README.assets/illuminations-1.0-fireflies.png)\n\n### Chorus Petals\n\nAppearing near Chorus flowers, these beautiful petals will twirl down to the ground, to the winds of the End, transitioning from a beautiful white to a majestic purple. The younger the flower is, the more petals will appear, and breaking a Chorus flower will provoke a burst of petals (again, the younger the flower, the more petals will burst).\n\n![illuminations-1.4-choruspetals](./README.assets/illuminations-1.4-choruspetals.png)\n\n### Glowworms\n\n**Glowworms** are small larvae living in caves by sticking to the ceiling that will fall down if their support block is removed. They will appear in small quantities in jungle, plains, savanna and taiga type biomes, medium quantities in forest and river type biomes and great quantity in swamp type biomes.\n\n![illuminations-1.0-glowworms](./README.assets/illuminations-1.0-glowworms.png)\n\n### Plankton\n\nGlowing **plankton** - even though difficult to notice because of its size - can be found floating around in the dark parts of the oceanic depths. They appear in any ocean biome as long as the light is sufficiently low.\n\n![illuminations-1.0-plankton](./README.assets/illuminations-1.0-plankton.png)\n\n### \"Autumnflies\"\n\nDuring the month of October, fireflies will adopt an orange tint instead of their regular green one.\n\n![illuminations-1.2-autumnflies](./README.assets/illuminations-1.2-autumnflies.png)\n\n### Eyes in the Dark\n\nAlso during the month of October, you may come across glowing eyes in absolutely dark spots. These eyes will disappear if you come too close or if their darkness is disturbed by a light source.\n\n![](./README.assets/illuminations-1.2-eyes.png)\n\n## Configurability\n\nIlluminations possesses a few config options you can use to change how the mod behaves to better fit your needs.\n\n### Eyes in the Dark\n\nEnable glowing eyes appearing in low light environments. Set on ENABLE by default.\n- ENABLE: Eyes will appear during October\n- DISABLE: Eyes will never appear\n- ALWAYS: Eyes will appear no matter the date\n\n### Spawn Density\n\nThe spawn rate percentage multiplier. Does not affect eyes in the dark.\n0% Disables illuminations, 1000% Multiplies the amount of illuminations appearing by 10.\n\n## Cosmetics\n\n**Auras** are special Illuminations effects around the player visible to other players that have the mod. Auras currently serve as a bonus for donators that support the mod and are purely cosmetic with no other provided advantage whatsoever. They are visible to other players with Illuminations installed (even on vanilla servers).\n\n**Overheads** are cosmetics that float above player heads. They are visible to other players with Illuminations installed (even on vanilla servers).\n\nAuras and overheads can be selected and changed via the [Illuminations dashboard](https://doctor4t.uuid.gg/).\n\n### Twilight aura\n\nThe **Twilight** aura creates colored fireflies  that will orbit around the player. The color of the fireflies can be changed to any color you want via the Illuminations dashboard. If the player moves, they will leave a trail of these fireflies. This aura is available to tier 1 donators.\n\n![illuminations-1.0-twilight-aura](./README.assets/illuminations-1.0-twilight-aura.gif)\n\n### Ghostly aura\n\nThe **Ghostly** aura emanates little ghosts that fly upward and gradually appear and disappear. This aura is available to tier 2 donators.\n\n![](./README.assets/illuminations-1.2-ghostly-aura.gif)\n\n### Frost and Solar crowns\n\n3D overheads fit for a king or queen, that will either make you insanely cool, or astoundingly hot, depending on your choice.\n\n![illuminations-1.3-crowns](./README.assets/illuminations-1.3-crowns.png)\n\n### Bloodfiend, Dreadlich and Mooncult crowns\n\n*Designed by ArathainFarqoe!*\n\n![image-20210113112423799](./README.assets/illuminations-1.4.1-crowns.png)\n\n### Chorus aura and crown\n\n![illuminations-1.4-choruscosmetics](./README.assets/illuminations-1.4-choruscosmetics.gif)\n\n### Pride (and trans pride) heart\n\nAvailable for free to anyone that registers for an Illuminations account. https://doctor4t.uuid.gg/pride\n\n![illuminations-1.1](./README.assets/illuminations-1.1.png)\n\n### Jacko\n\nA happy jack o' lantern that lights up at night and in dark areas. Available to tier 2 donators.\n\n![](./README.assets/illuminations-1.2-jacko.gif)\n\n## FAQ\n\n#### Can I include this mod in a modpack?\n\n**Yes**: You can. Go ahead, don't bother asking. Please however provide credit and a link to either the GitHub repository or Curse Forge project page.\n\n#### Can I use this mod on a vanilla server?\n\n**Yes**: If you have installed this mod on your Minecraft client, you will be able to connect to vanilla Minecraft servers and the ambient illuminations will work as intended.\n\n#### Are cosmetics visible to other players?\n\n**Yes**: If the player has the mod installed on their client, all your cosmetics will be visible to them, just like theirs will be visible to you.\n\n#### How to get an aura or crown?\n\n**Auras are currently only available to donators**, [more information here](https://doctor4t.uuid.gg/register).\n\n#### I want to change my cosmetics / the color of my prismatic auras / disable it, what do I do?\n\nIf you have donated multiple times, you may have multiple auras and may want to select a specific one. Or you may just simply want to change your prismatic color or disable your aura. **You can do all this via the [Illuminations dashboard](https://doctor4t.uuid.gg/)** with no restrictions whatsoever.\n\n\n###### Copyright (C) 2021 Ladysnake\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n"
  },
  {
    "path": "build.gradle",
    "content": "plugins {\n    id 'fabric-loom' version '0.10-SNAPSHOT'\n    id 'maven-publish'\n    id 'com.matthewprenger.cursegradle' version '1.4.0'\n    id 'org.ajoberstar.grgit' version '3.1.1'\n    id 'com.github.breadmoirai.github-release' version '2.2.12'\n}\n\nsourceCompatibility = JavaVersion.VERSION_17\ntargetCompatibility = JavaVersion.VERSION_17\n// Adds a few utility methods like getProjectProperty\napply from: 'https://raw.githubusercontent.com/NerdHubMC/Gradle-Scripts/master/scripts/utilities.gradle'\napply from: 'https://raw.githubusercontent.com/NerdHubMC/Gradle-Scripts/master/scripts/fabric/publish/changelog.gradle'\n\narchivesBaseName = project.archives_base_name\nversion = project.mod_version\ngroup = project.maven_group\n\nloom {\n    accessWidener = file(\"src/main/resources/illuminations.accesswidener\")\n}\n\n//def apiModules = [\n//\t\t\"fabric-api-base\",\n//\t\t\"fabric-resource-loader-v0\",\n//\t\t\"fabric-particles-v1\"\n//]\n\nrepositories {\n    maven { url 'https://jitpack.io' }\n\n    // where grondag's mods live\n    maven {\n        name = \"dblsaiko\"\n        url = \"https://maven.dblsaiko.net/\"\n    }\n    maven {\n        name = \"Cotton\"\n        url = \"http://server.bbkr.space:8081/artifactory/libs-release/\"\n        allowInsecureProtocol = true\n    }\n    // REI, odds and ends\n    maven {\n        name = \"CurseForge\"\n        url = \"https://minecraft.curseforge.com/api/maven\"\n    }\n\n    // cloth config\n    maven { url \"https://maven.shedaniel.me/\" }\n\n    // satin\n    maven {\n        name = 'Ladysnake Mods'\n        url = 'https://ladysnake.jfrog.io/artifactory/mods'\n        content {\n            includeGroup 'io.github.ladysnake'\n            includeGroupByRegex 'io\\\\.github\\\\.onyxstudios.*'\n        }\n    }\n\n    // mod menu\n    maven {\n        name = 'TerraformersMC'\n        url = 'https://maven.terraformersmc.com/'\n    }\n}\n\ndependencies {\n    //to change the versions see the gradle.properties file\n    minecraft \"com.mojang:minecraft:${project.minecraft_version}\"\n    mappings \"net.fabricmc:yarn:${project.yarn_mappings}:v2\"\n    modImplementation \"net.fabricmc:fabric-loader:${project.loader_version}\"\n\n    // Fabric API. This is technically optional, but you probably want it anyway.\n    modImplementation \"net.fabricmc.fabric-api:fabric-api:${project.fabric_version}\"\n//\tapiModules.each {\n//\t\tmodImplementation include(fabricApi.module(it, project.fabric_version))\n//\t}\n\n    // Sodium\n    // modRuntime 'com.github.jellysquid3:sodium-fabric:mc1.16.1-0.1.0'\n\n    // cloth config\n    modApi(\"me.shedaniel.cloth:cloth-config-fabric:5.+\") {\n        exclude(group: \"net.fabricmc.fabric-api\")\n    }\n    include \"me.shedaniel.cloth:cloth-config-fabric:5.0.34\"\n\n    // mod menu\n    modCompileOnly(\"com.terraformersmc:modmenu:2.0.5\") {\n        exclude module: \"fabric-api\"\n    }\n\n    modRuntime(\"com.terraformersmc:modmenu:2.0.5\") {\n        exclude module: \"fabric-api\"\n    }\n\n    // canvas renderer\n//    modImplementation \"grondag:canvas-mc117-1.17:1.0.2033\"\n\n\t// satin\n\tmodCompileOnly \"io.github.ladysnake:satin:${satin_version}\"\n}\n\nprocessResources {\n    inputs.property \"version\", project.version\n\n    filesMatching(\"fabric.mod.json\") {\n        expand \"version\": project.version\n    }\n}\n\n// ensure that the encoding is set to UTF-8, no matter what the system default is\n// this fixes some edge cases with special characters not displaying correctly\n// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html\ntasks.withType(JavaCompile) {\n    options.encoding = \"UTF-8\"\n}\n\n// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the \"build\" task\n// if it is present.\n// If you remove this task, sources will not be generated.\ntask sourcesJar(type: Jar, dependsOn: classes) {\n    classifier = \"sources\"\n    from sourceSets.main.allSource\n}\n\njar {\n    from \"LICENSE\"\n}\n\n// configure the maven publication\npublishing {\n    publications {\n        mavenJava(MavenPublication) {\n            // add all the jars that should be included when publishing to maven\n            artifact(remapJar) {\n                builtBy remapJar\n            }\n            artifact(sourcesJar) {\n                builtBy remapSourcesJar\n            }\n        }\n    }\n\n    // select the repositories you want to publish to\n    repositories {\n        // uncomment to publish to the local maven\n        // mavenLocal()\n    }\n}\n\n\ntask checkGitStatus() {\n    group = 'publishing'\n    description = 'Checks that the git repository is in a state suitable for release'\n    doLast {\n        if (grgit == null) throw new RuntimeException('No git repository')\n        if (!grgit.status().isClean()) {\n            throw new RuntimeException(\"Git repository not ready for release (${grgit.status()})\")\n        }\n        def currentBranch = grgit.branch.current().getName()\n        grgit.fetch()\n        if (grgit.tag.list().any { it.name == project.version }) {\n            throw new RuntimeException(\"A tag already exists for ${project.version}\")\n        }\n        def status = grgit.branch.status(name: currentBranch)\n        if (status.aheadCount != 0) {\n            throw new RuntimeException('Some commits have not been pushed')\n        }\n        if (status.behindCount != 0) {\n            throw new RuntimeException('Some commits have not been pulled')\n        }\n    }\n}\n\ngithubRelease {\n    repo \"Illuminations\"\n    token \"${getProjectProperty('github_releases_token')}\"\n    // default owner: last component of maven group\n    // default repo: name of the project\n    tagName = project.version\n    targetCommitish = { grgit.branch.current().name }\n    body = { project.getChangelogText() }\n\n    FilenameFilter filter = { dir, filename -> filename.contains(project.version) && !filename.contains('-dev.jar') }\n    releaseAssets = { jar.destinationDirectory.asFile.get().listFiles filter }\n}\ntasks.githubRelease.dependsOn(checkGitStatus)\n\ncurseforge {\n\n    if (project.getProjectProperty('curse_key') != null) {\n        apiKey = project.getProjectProperty('curse_key')\n    }\n\n    if (project.hasProperty('curseforge_id')) {\n        project {\n            id = findProperty('curseforge_id')\n\n            releaseType = project.release_type\n\n            //usually automatically determined by the CurseGradle plugin, but won't work with fabric\n            \"${project.curseforge_versions}\".split('; ').each {\n                addGameVersion it\n            }\n            addGameVersion 'Fabric'\n\n            mainArtifact(remapJar) {\n                displayName = \"${project.name}-${project.version}.jar\"\n\n                if (project.hasProperty('cf_requirements') || project.hasProperty('cf_optionals') || project.hasProperty('cf_embeddeds') || project.hasProperty('cf_tools') || project.hasProperty('cf_incompatibles') || project.hasProperty('cf_includes')) {\n                    relations {\n                        if (project.hasProperty('cf_requirements')) {\n                            \"${project.cf_requirements}\".split('; ').each {\n                                requiredDependency \"${it}\"\n                            }\n                        }\n                        if (project.hasProperty('cf_optionals')) {\n                            \"${project.cf_optionals}\".split('; ').each {\n                                optionalDependency \"${it}\"\n                            }\n                        }\n                        if (project.hasProperty('cf_embeddeds')) {\n                            \"${project.cf_embeddeds}\".split('; ').each {\n                                embeddedLibrary \"${it}\"\n                            }\n                        }\n                        if (project.hasProperty('cf_tools')) {\n                            \"${project.cf_tools}\".split('; ').each {\n                                tool \"${it}\"\n                            }\n                        }\n                        if (project.hasProperty('cf_incompatibles')) {\n                            \"${project.cf_incompatibles}\".split('; ').each {\n                                incompatible \"${it}\"\n                            }\n                        }\n                        if (project.hasProperty('cf_includes')) {\n                            \"${project.cf_includes}\".split('; ').each {\n                                include \"${it}\"\n                            }\n                        }\n                    }\n                }\n            }\n\n            changelogType = 'markdown'\n            changelog = project.getChangelogText()\n\n            afterEvaluate {\n                uploadTask.dependsOn remapSourcesJar\n            }\n        }\n        options {\n            forgeGradleIntegration = false\n        }\n    }\n}\n\ntasks.curseforge.dependsOn(checkGitStatus)\n\ntask release(dependsOn: [tasks.githubRelease, tasks.curseforge]) {\n    group = 'publishing'\n    description = 'Releases a new version to Github and Curseforge'\n}"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-7.2-bin.zip\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Done to increase the memory available to gradle.\norg.gradle.jvmargs=-Xmx1G\n\n# Fabric Properties\nminecraft_version=1.18\nyarn_mappings=1.18+build.1\nloader_version=0.12.6\n\n#Fabric api\nfabric_version=0.43.1+1.18\n\n# Mod Properties\nmod_version = 1.10.2\nmaven_group = io.github.ladysnake\narchives_base_name = illuminations\n\n#Other Dependencies\nfindbugs_version = 3.0.2\njb_annotations_version = 15.0\napiguardian_version = 1.0.0\nsatin_version = 1.+\n\n#Publishing\nowners = Ladysnake\nlicense_header = GPL-3.0-or-later\ncurseforge_id = 292908\ncurseforge_versions = 1.18\ncf_requirements = fabric-api\nrelease_type = release\nchangelog_url = https://github.com/Ladysnake/Illuminations/blob/main/CHANGELOG.md"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n#\n# Copyright 2015 the original author or authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS='\"-Xmx64m\" \"-Xms64m\"'\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=$(save \"$@\")\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\n# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong\nif [ \"$(uname)\" = \"Darwin\" ] && [ \"$HOME\" = \"$PWD\" ]; then\n  cd \"$(dirname \"$0\")\"\nfi\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@rem\n@rem Copyright 2015 the original author or authors.\n@rem\n@rem Licensed under the Apache License, Version 2.0 (the \"License\");\n@rem you may not use this file except in compliance with the License.\n@rem You may obtain a copy of the License at\n@rem\n@rem      https://www.apache.org/licenses/LICENSE-2.0\n@rem\n@rem Unless required by applicable law or agreed to in writing, software\n@rem distributed under the License is distributed on an \"AS IS\" BASIS,\n@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n@rem See the License for the specific language governing permissions and\n@rem limitations under the License.\n@rem\n\n@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\"-Xmx64m\" \"-Xms64m\"\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto init\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto init\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:init\n@rem Get command-line arguments, handling Windows variants\n\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\n\n:win9xME_args\n@rem Slurp the command line arguments.\nset CMD_LINE_ARGS=\nset _SKIP=2\n\n:win9xME_args_slurp\nif \"x%~1\" == \"x\" goto execute\n\nset CMD_LINE_ARGS=%*\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "logs/latest.log",
    "content": ""
  },
  {
    "path": "release.gradle",
    "content": "task checkGitStatus() {\n    group = 'publishing'\n    description = 'Checks that the git repository is in a state suitable for release'\n    doLast {\n        if (grgit == null) throw new RuntimeException('No git repository')\n        if (!grgit.status().isClean()) {\n            throw new RuntimeException(\"Git repository not ready for release (${grgit.status()})\")\n        }\n        def currentBranch = grgit.branch.current().getName()\n        if (currentBranch != 'master' && !currentBranch.matches(/\\d+\\.\\d+(?>\\.\\d+)?/)) {\n            throw new RuntimeException(\"Need to be on master or a snapshot branch to release (currently on ${currentBranch})\")\n        }\n        grgit.fetch()\n        if (grgit.tag.list().any { it.name == project.version }) {\n            throw new RuntimeException(\"A tag already exists for ${project.version}\")\n        }\n        def status = grgit.branch.status(name: currentBranch)\n        if (status.aheadCount != 0) {\n            throw new RuntimeException('Some commits have not been pushed')\n        }\n        if (status.behindCount != 0) {\n            throw new RuntimeException('Some commits have not been pulled')\n        }\n    }\n}\n\ngithubRelease {\n    token \"${findProperty('github_releases_token')}\"\n    // default owner: last component of maven group\n    // default repo: name of the project\n    tagName = project.version\n    targetCommitish = { grgit.branch.current().name }\n    body = { project.getChangelogText() }\n\n    FilenameFilter filter = { dir, filename -> filename.contains(project.version) && !filename.contains('-dev.jar') }\n    releaseAssets = { jar.destinationDirectory.asFile.get().listFiles filter }\n}\ntasks.githubRelease.dependsOn(checkGitStatus)\n\ncurseforge {\n    apiKey = project.findProperty('curse_key') ?: \"\"\n\n    if (project.hasProperty('curseforge_id')) {\n        project {\n            id = findProperty('curseforge_id')\n\n            releaseType = project.release_type\n\n            //usually automatically determined by the CurseGradle plugin, but won't work with fabric\n            \"${project.curseforge_versions}\".split('; ').each {\n                addGameVersion it\n            }\n            addGameVersion 'Fabric'\n\n            mainArtifact(remapJar) {\n                displayName = \"${project.name}-${project.version}.jar\"\n\n                if (project.hasProperty('cf_requirements') || project.hasProperty('cf_optionals') || project.hasProperty('cf_embeddeds') || project.hasProperty('cf_tools') || project.hasProperty('cf_incompatibles') || project.hasProperty('cf_includes')) {\n                    relations {\n                        if (project.hasProperty('cf_requirements')) {\n                            \"${project.cf_requirements}\".split('; ').each {\n                                requiredDependency \"${it}\"\n                            }\n                        }\n                        if (project.hasProperty('cf_optionals')) {\n                            \"${project.cf_optionals}\".split('; ').each {\n                                optionalDependency \"${it}\"\n                            }\n                        }\n                        if (project.hasProperty('cf_embeddeds')) {\n                            \"${project.cf_embeddeds}\".split('; ').each {\n                                embeddedLibrary \"${it}\"\n                            }\n                        }\n                        if (project.hasProperty('cf_tools')) {\n                            \"${project.cf_tools}\".split('; ').each {\n                                tool \"${it}\"\n                            }\n                        }\n                        if (project.hasProperty('cf_incompatibles')) {\n                            \"${project.cf_incompatibles}\".split('; ').each {\n                                incompatible \"${it}\"\n                            }\n                        }\n                        if (project.hasProperty('cf_includes')) {\n                            \"${project.cf_includes}\".split('; ').each {\n                                include \"${it}\"\n                            }\n                        }\n                    }\n                }\n            }\n\n            changelogType = 'markdown'\n            changelog = project.getChangelogText()\n\n            afterEvaluate {\n                uploadTask.dependsOn remapSourcesJar\n            }\n        }\n        options {\n            forgeGradleIntegration = false\n        }\n    }\n}\n\ntasks.curseforge.dependsOn(checkGitStatus)\n\ntask release(dependsOn: [tasks.publish, tasks.githubRelease, tasks.curseforge]) {\n    group = 'publishing'\n    description = 'Releases a new version to Github and Curseforge'\n}"
  },
  {
    "path": "settings.gradle",
    "content": "pluginManagement {\n    repositories {\n        jcenter()\n        maven {\n            name = 'Fabric'\n            url = 'https://maven.fabricmc.net/'\n        }\n        gradlePluginPortal()\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/IlluminationsMixinConfigPlugin.java",
    "content": "package ladysnake.illuminations;\n\nimport net.fabricmc.loader.api.FabricLoader;\nimport org.objectweb.asm.tree.ClassNode;\nimport org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;\nimport org.spongepowered.asm.mixin.extensibility.IMixinInfo;\n\nimport java.util.List;\nimport java.util.Set;\n\npublic class IlluminationsMixinConfigPlugin implements IMixinConfigPlugin {\n    @Override\n    public void onLoad(String mixinPackage) {\n\n    }\n\n    @Override\n    public String getRefMapperConfig() {\n        return null;\n    }\n\n    @Override\n    public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {\n        if (mixinClassName.startsWith(\"ladysnake.illuminations.mixin.jeb\")) {\n            return FabricLoader.getInstance().isModLoaded(\"satin\") && !FabricLoader.getInstance().isModLoaded(\"iris\");\n        } else {\n            return true;\n        }\n    }\n\n    @Override\n    public void acceptTargets(Set<String> myTargets, Set<String> otherTargets) {\n\n    }\n\n    @Override\n    public List<String> getMixins() {\n        return null;\n    }\n\n    @Override\n    public void preApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {\n\n    }\n\n    @Override\n    public void postApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) {\n\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/Illuminations.java",
    "content": "package ladysnake.illuminations.client;\n\nimport com.google.common.collect.ImmutableMap;\nimport com.google.common.collect.ImmutableSet;\nimport com.google.gson.*;\nimport com.google.gson.reflect.TypeToken;\nimport com.mojang.serialization.Codec;\nimport ladysnake.illuminations.client.config.Config;\nimport ladysnake.illuminations.client.config.DefaultConfig;\nimport ladysnake.illuminations.client.data.AuraData;\nimport ladysnake.illuminations.client.data.IlluminationData;\nimport ladysnake.illuminations.client.data.OverheadData;\nimport ladysnake.illuminations.client.data.PlayerCosmeticData;\nimport ladysnake.illuminations.client.enums.BiomeCategory;\nimport ladysnake.illuminations.client.enums.HalloweenFeatures;\nimport ladysnake.illuminations.client.particle.*;\nimport ladysnake.illuminations.client.particle.aura.*;\nimport ladysnake.illuminations.client.particle.pet.*;\nimport ladysnake.illuminations.client.render.entity.feature.OverheadFeatureRenderer;\nimport ladysnake.illuminations.client.render.entity.model.hat.*;\nimport ladysnake.illuminations.client.render.entity.model.pet.LanternModel;\nimport ladysnake.illuminations.client.render.entity.model.pet.PrideHeartModel;\nimport ladysnake.illuminations.client.render.entity.model.pet.WillOWispModel;\nimport ladysnake.illuminations.updater.IlluminationsUpdater;\nimport net.fabricmc.api.ClientModInitializer;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.fabricmc.fabric.api.client.particle.v1.ParticleFactoryRegistry;\nimport net.fabricmc.fabric.api.client.rendereregistry.v1.EntityModelLayerRegistry;\nimport net.fabricmc.fabric.api.client.rendereregistry.v1.LivingEntityFeatureRendererRegistrationCallback;\nimport net.fabricmc.fabric.api.particle.v1.FabricParticleTypes;\nimport net.fabricmc.fabric.api.resource.ResourceManagerHelper;\nimport net.fabricmc.fabric.api.resource.ResourcePackActivationType;\nimport net.fabricmc.loader.api.FabricLoader;\nimport net.minecraft.block.Block;\nimport net.minecraft.block.Blocks;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.network.AbstractClientPlayerEntity;\nimport net.minecraft.client.render.entity.feature.FeatureRendererContext;\nimport net.minecraft.client.render.entity.model.EntityModelLayer;\nimport net.minecraft.client.render.entity.model.PlayerEntityModel;\nimport net.minecraft.entity.EntityType;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.particle.ParticleType;\nimport net.minecraft.tag.BlockTags;\nimport net.minecraft.tag.FluidTags;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.util.registry.Registry;\nimport net.minecraft.world.World;\nimport org.apache.logging.log4j.Level;\nimport org.apache.logging.log4j.LogManager;\nimport org.apache.logging.log4j.Logger;\nimport org.jetbrains.annotations.Nullable;\n\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.Reader;\nimport java.lang.reflect.Type;\nimport java.net.MalformedURLException;\nimport java.net.URL;\nimport java.time.LocalDate;\nimport java.time.Month;\nimport java.util.Collections;\nimport java.util.Map;\nimport java.util.UUID;\nimport java.util.concurrent.CompletableFuture;\nimport java.util.function.BiPredicate;\n\n@Environment(EnvType.CLIENT)\npublic class Illuminations implements ClientModInitializer {\n    public static final String MODID = \"illuminations\";\n    public static final Logger logger = LogManager.getLogger(\"Illuminations\");\n\n    // illuminations constants\n    public static final int EYES_VANISHING_DISTANCE = 5;\n    public static final Gson COSMETICS_GSON = new GsonBuilder().registerTypeAdapter(PlayerCosmeticData.class, new PlayerCosmeticDataParser()).create();\n    // spawn predicates\n    public static final BiPredicate<World, BlockPos> FIREFLY_LOCATION_PREDICATE = (world, blockPos) -> {\n        Block block = world.getBlockState(blockPos).getBlock();\n        return world.getDimension().hasFixedTime()\n                ? (block == Blocks.AIR || block == Blocks.VOID_AIR)\n                : block == Blocks.AIR\n                && (Config.doesFireflySpawnAlways() || Illuminations.isNightTime(world))\n                && (Config.doesFireflySpawnUnderground() || world.isSkyVisible(blockPos));\n    };\n    public static final BiPredicate<World, BlockPos> GLOWWORM_LOCATION_PREDICATE = (world, blockPos) -> world.getBlockState(blockPos).getBlock() == Blocks.CAVE_AIR;\n    public static final BiPredicate<World, BlockPos> PLANKTON_LOCATION_PREDICATE = (world, blockPos) -> world.getBlockState(blockPos).getFluidState().isIn(FluidTags.WATER) && world.getLightLevel(blockPos) < 2;\n    public static final BiPredicate<World, BlockPos> EYES_LOCATION_PREDICATE = (world, blockPos) -> ((Config.getHalloweenFeatures() == HalloweenFeatures.ENABLE && LocalDate.now().getMonth() == Month.OCTOBER) || Config.getHalloweenFeatures() == HalloweenFeatures.ALWAYS) && (world.getBlockState(blockPos).getBlock() == Blocks.AIR || world.getBlockState(blockPos).getBlock() == Blocks.CAVE_AIR) && world.getLightLevel(blockPos) <= 0 && world.getClosestPlayer(blockPos.getX(), blockPos.getY(), blockPos.getZ(), EYES_VANISHING_DISTANCE, false) == null && world.getRegistryKey().equals(World.OVERWORLD);\n    public static final BiPredicate<World, BlockPos> WISP_LOCATION_PREDICATE = (world, blockPos) -> world.getBlockState(blockPos).isIn(BlockTags.SOUL_FIRE_BASE_BLOCKS);\n    // register overhead models\n    public static final EntityModelLayer CROWN = new EntityModelLayer(new Identifier(MODID, \"crown\"), \"main\");\n    static final Type COSMETIC_SELECT_TYPE = new TypeToken<Map<UUID, PlayerCosmeticData>>() {\n    }.getType();\n    // illuminations cosmetics\n    private static final String COSMETICS_URL = \"https://illuminations.uuid.gg/data\";\n    public static ImmutableMap<String, AuraData> AURAS_DATA;\n    public static ImmutableMap<String, DefaultParticleType> PETS_DATA;\n    public static ImmutableMap<String, OverheadData> OVERHEADS_DATA;\n    // particle types\n    public static DefaultParticleType FIREFLY;\n    public static DefaultParticleType GLOWWORM;\n    public static DefaultParticleType PLANKTON;\n    public static DefaultParticleType EYES;\n    public static DefaultParticleType CHORUS_PETAL;\n    public static DefaultParticleType WILL_O_WISP;\n    public static ParticleType<WispTrailParticleEffect> WISP_TRAIL;\n    public static DefaultParticleType PUMPKIN_SPIRIT;\n    public static DefaultParticleType POLTERGEIST;\n    public static DefaultParticleType PRISMARINE_CRYSTAL;\n    //    public static DefaultParticleType EMBER;\n//    public static DefaultParticleType EMBER_TRAIL;\n    // auras\n    public static DefaultParticleType TWILIGHT_AURA;\n    public static DefaultParticleType GHOSTLY_AURA;\n    public static DefaultParticleType CHORUS_AURA;\n    public static DefaultParticleType AUTUMN_LEAVES_AURA;\n    public static DefaultParticleType SCULK_TENDRIL_AURA;\n    public static DefaultParticleType SHADOWBRINGER_AURA;\n    public static DefaultParticleType GOLDENROD_AURA;\n    public static DefaultParticleType CONFETTI_AURA;\n    public static DefaultParticleType PRISMATIC_CONFETTI_AURA;\n    public static DefaultParticleType PRISMARINE_AURA;\n    // pets\n    public static DefaultParticleType PRIDE_PET;\n    public static DefaultParticleType GAY_PRIDE_PET;\n    public static DefaultParticleType TRANS_PRIDE_PET;\n    public static DefaultParticleType JACKO_PET;\n    public static DefaultParticleType LESBIAN_PRIDE_PET;\n    public static DefaultParticleType BI_PRIDE_PET;\n    public static DefaultParticleType ACE_PRIDE_PET;\n    public static DefaultParticleType NB_PRIDE_PET;\n    public static DefaultParticleType INTERSEX_PRIDE_PET;\n    public static DefaultParticleType ARO_PRIDE_PET;\n    public static DefaultParticleType PAN_PRIDE_PET;\n    public static DefaultParticleType AGENDER_PRIDE_PET;\n    public static DefaultParticleType WILL_O_WISP_PET;\n    public static DefaultParticleType GOLDEN_WILL_PET;\n    public static DefaultParticleType FOUNDING_SKULL_PET;\n    public static DefaultParticleType DISSOLUTION_WISP_PET;\n    public static DefaultParticleType PUMPKIN_SPIRIT_PET;\n    public static DefaultParticleType POLTERGEIST_PET;\n    public static DefaultParticleType LANTERN_PET;\n    public static DefaultParticleType SOUL_LANTERN_PET;\n    public static DefaultParticleType CRYING_LANTERN_PET;\n    public static DefaultParticleType SOOTHING_LANTERN_PET;\n    // spawn biome categories and biomes\n    public static ImmutableMap<BiomeCategory, ImmutableSet<IlluminationData>> ILLUMINATIONS_BIOME_CATEGORIES;\n    public static ImmutableMap<Identifier, ImmutableSet<IlluminationData>> ILLUMINATIONS_BIOMES;\n    private static Map<UUID, PlayerCosmeticData> PLAYER_COSMETICS = Collections.emptyMap();\n\n    public static @Nullable PlayerCosmeticData getCosmeticData(PlayerEntity player) {\n        return PLAYER_COSMETICS.get(player.getUuid());\n    }\n\n    public static @Nullable PlayerCosmeticData getCosmeticData(UUID uuid) {\n        return PLAYER_COSMETICS.get(uuid);\n    }\n\n    public static void loadPlayerCosmetics() {\n        // get illuminations player cosmetics\n        CompletableFuture.supplyAsync(() -> {\n            try (Reader reader = new InputStreamReader(new URL(COSMETICS_URL).openStream())) {\n                if (Config.isDebugMode())\n                    logger.log(Level.INFO, \"Retrieving Illuminations cosmetics from the dashboard...\");\n                return COSMETICS_GSON.<Map<UUID, PlayerCosmeticData>>fromJson(reader, COSMETIC_SELECT_TYPE);\n            } catch (MalformedURLException e) {\n                if (Config.isDebugMode())\n                    logger.log(Level.ERROR, \"Could not get player cosmetics because of malformed URL: \" + e.getMessage());\n            } catch (IOException e) {\n                if (Config.isDebugMode())\n                    logger.log(Level.ERROR, \"Could not get player cosmetics because of I/O Error: \" + e.getMessage());\n            }\n\n            return null;\n        }).exceptionally(throwable -> {\n            if (Config.isDebugMode())\n                logger.log(Level.ERROR, \"Could not get player cosmetics because wtf is happening\", throwable);\n            return null;\n        }).thenAcceptAsync(playerData -> {\n            if (playerData != null) {\n                PLAYER_COSMETICS = playerData;\n                if (Config.isDebugMode()) logger.log(Level.INFO, \"Player cosmetics successfully registered\");\n            } else {\n                PLAYER_COSMETICS = Collections.emptyMap();\n                if (Config.isDebugMode())\n                    logger.log(Level.WARN, \"Player cosmetics could not registered, cosmetics will be ignored\");\n            }\n        }, MinecraftClient.getInstance());\n    }\n\n    public static boolean isNightTime(World world) {\n        return world.getSkyAngle(world.getTimeOfDay()) >= 0.25965086 && world.getSkyAngle(world.getTimeOfDay()) <= 0.7403491;\n    }\n\n    @Override\n    public void onInitializeClient() {\n        // load config\n        Config.load();\n\n        // get illuminations player cosmetics\n        loadPlayerCosmetics();\n\n        // auto-updater\n        if (!FabricLoader.getInstance().isDevelopmentEnvironment() && Config.isAutoUpdate()) {\n            IlluminationsUpdater.init();\n        }\n\n        // load jeb shader\n        if (FabricLoader.getInstance().isModLoaded(\"satin\")) {\n            Rainbowlluminations.init();\n        }\n\n        // register resource packs\n        FabricLoader.getInstance().getModContainer(MODID).ifPresent(modContainer -> {\n            ResourceManagerHelper.registerBuiltinResourcePack(new Identifier(MODID, \"lowerres\"), modContainer, ResourcePackActivationType.NORMAL);\n            ResourceManagerHelper.registerBuiltinResourcePack(new Identifier(MODID, \"pixelaccurate\"), modContainer, ResourcePackActivationType.NORMAL);\n        });\n\n        // register model layers\n        EntityModelLayerRegistry.registerModelLayer(CrownModel.MODEL_LAYER, CrownModel::getTexturedModelData);\n        EntityModelLayerRegistry.registerModelLayer(HornsModel.MODEL_LAYER, HornsModel::getTexturedModelData);\n        EntityModelLayerRegistry.registerModelLayer(HaloModel.MODEL_LAYER, HaloModel::getTexturedModelData);\n        EntityModelLayerRegistry.registerModelLayer(TiaraModel.MODEL_LAYER, TiaraModel::getTexturedModelData);\n        EntityModelLayerRegistry.registerModelLayer(VoidheartTiaraModel.MODEL_LAYER, VoidheartTiaraModel::getTexturedModelData);\n        EntityModelLayerRegistry.registerModelLayer(WreathModel.MODEL_LAYER, WreathModel::getTexturedModelData);\n        EntityModelLayerRegistry.registerModelLayer(WillOWispModel.MODEL_LAYER, WillOWispModel::getTexturedModelData);\n        EntityModelLayerRegistry.registerModelLayer(LanternModel.MODEL_LAYER, LanternModel::getTexturedModelData);\n        EntityModelLayerRegistry.registerModelLayer(PrideHeartModel.MODEL_LAYER, PrideHeartModel::getTexturedModelData);\n\n        // particles\n        FIREFLY = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:firefly\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.FIREFLY, FireflyParticle.DefaultFactory::new);\n        GLOWWORM = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:glowworm\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.GLOWWORM, GlowwormParticle.DefaultFactory::new);\n        PLANKTON = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:plankton\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.PLANKTON, PlanktonParticle.DefaultFactory::new);\n        EYES = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:eyes\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.EYES, EyesParticle.DefaultFactory::new);\n        CHORUS_PETAL = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:chorus_petal\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.CHORUS_PETAL, ChorusPetalParticle.DefaultFactory::new);\n        WILL_O_WISP = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:will_o_wisp\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.WILL_O_WISP, fabricSpriteProvider -> new WillOWispParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/will_o_wisp.png\"), 1.0f, 1.0f, 1.0f, -0.1f, -0.01f, 0.0f));\n        WISP_TRAIL = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:wisp_trail\", new ParticleType<WispTrailParticleEffect>(true, WispTrailParticleEffect.PARAMETERS_FACTORY) {\n            @Override\n            public Codec<WispTrailParticleEffect> getCodec() {\n                return WispTrailParticleEffect.CODEC;\n            }\n        });\n        ParticleFactoryRegistry.getInstance().register(Illuminations.WISP_TRAIL, WispTrailParticle.Factory::new);\n        PUMPKIN_SPIRIT = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:pumpkin_spirit\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.PUMPKIN_SPIRIT, fabricSpriteProvider -> new PumpkinSpiritParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/pumpkin_spirit.png\"), 1.0f, 0.95f, 0.0f, 0.0f, -0.03f, 0.0f));\n        POLTERGEIST = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:poltergeist\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.POLTERGEIST, fabricSpriteProvider -> new PoltergeistParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/poltergeist.png\"), 1.0f, 1.0f, 1.0f, 0.0f, 0.0f, 0.0f));\n        PRISMARINE_CRYSTAL = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:prismarine_crystal\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.PRISMARINE_CRYSTAL, PrismarineCrystalParticle.DefaultFactory::new);\n\n//        EMBER = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:ember\", FabricParticleTypes.simple(true));\n//        ParticleFactoryRegistry.getInstance().register(Illuminations.EMBER, EmberParticle.DefaultFactory::new);\n        // aura particles\n        TWILIGHT_AURA = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:twilight_aura\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.TWILIGHT_AURA, TwilightFireflyParticle.DefaultFactory::new);\n        GHOSTLY_AURA = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:ghostly_aura\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.GHOSTLY_AURA, GhostlyAuraParticle.DefaultFactory::new);\n        CHORUS_AURA = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:chorus_aura\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.CHORUS_AURA, ChorusAuraParticle.DefaultFactory::new);\n        AUTUMN_LEAVES_AURA = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:autumn_leaves\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.AUTUMN_LEAVES_AURA, AutumnLeavesParticle.DefaultFactory::new);\n        SCULK_TENDRIL_AURA = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:sculk_tendril\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.SCULK_TENDRIL_AURA, SculkTendrilParticle.DefaultFactory::new);\n        SHADOWBRINGER_AURA = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:shadowbringer_aura\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.SHADOWBRINGER_AURA, ShadowbringerParticle.DefaultFactory::new);\n        GOLDENROD_AURA = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:goldenrod_aura\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.GOLDENROD_AURA, GoldenrodAuraParticle.DefaultFactory::new);\n        CONFETTI_AURA = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:confetti\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.CONFETTI_AURA, ConfettiParticle.DefaultFactory::new);\n        PRISMATIC_CONFETTI_AURA = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:prismatic_confetti\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.PRISMATIC_CONFETTI_AURA, PrismaticConfettiParticle.DefaultFactory::new);\n        PRISMARINE_AURA = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:prismarine_aura\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.PRISMARINE_AURA, PrismarineAuraParticle.DefaultFactory::new);\n\n        /*\n                PRIDE PETS\n         */\n        PRIDE_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:pride_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.PRIDE_PET, fabricSpriteProvider -> new PrideHeartParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/pride_heart.png\"), 1.0f, 1.0f, 1.0f));\n        GAY_PRIDE_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:gay_pride_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.GAY_PRIDE_PET, fabricSpriteProvider -> new PrideHeartParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/gay_pride_heart.png\"), 1.0f, 1.0f, 1.0f));\n        TRANS_PRIDE_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:trans_pride_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.TRANS_PRIDE_PET, fabricSpriteProvider -> new PrideHeartParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/trans_pride_heart.png\"), 1.0f, 1.0f, 1.0f));\n        LESBIAN_PRIDE_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:lesbian_pride_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.LESBIAN_PRIDE_PET, fabricSpriteProvider -> new PrideHeartParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/lesbian_pride_heart.png\"), 1.0f, 1.0f, 1.0f));\n        BI_PRIDE_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:bi_pride_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.BI_PRIDE_PET, fabricSpriteProvider -> new PrideHeartParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/bi_pride_heart.png\"), 1.0f, 1.0f, 1.0f));\n        ACE_PRIDE_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:ace_pride_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.ACE_PRIDE_PET, fabricSpriteProvider -> new PrideHeartParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/ace_pride_heart.png\"), 1.0f, 1.0f, 1.0f));\n        NB_PRIDE_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:nb_pride_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.NB_PRIDE_PET, fabricSpriteProvider -> new PrideHeartParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/nb_pride_heart.png\"), 1.0f, 1.0f, 1.0f));\n        INTERSEX_PRIDE_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:intersex_pride_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.INTERSEX_PRIDE_PET, fabricSpriteProvider -> new PrideHeartParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/intersex_pride_heart.png\"), 1.0f, 1.0f, 1.0f));\n        ARO_PRIDE_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:aro_pride_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.ARO_PRIDE_PET, fabricSpriteProvider -> new PrideHeartParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/aro_pride_heart.png\"), 1.0f, 1.0f, 1.0f));\n        PAN_PRIDE_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:pan_pride_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.PAN_PRIDE_PET, fabricSpriteProvider -> new PrideHeartParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/pan_pride_heart.png\"), 1.0f, 1.0f, 1.0f));\n        AGENDER_PRIDE_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:agender_pride_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.AGENDER_PRIDE_PET, fabricSpriteProvider -> new PrideHeartParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/agender_pride_heart.png\"), 1.0f, 1.0f, 1.0f));\n\n        /*\n                WILL O' WISP PETS\n         */\n        WILL_O_WISP_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:will_o_wisp_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.WILL_O_WISP_PET, fabricSpriteProvider -> new PlayerWispParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/will_o_wisp.png\"), 1.0f, 1.0f, 1.0f, -0.1f, -0.01f, 0.0f));\n        GOLDEN_WILL_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:golden_will_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.GOLDEN_WILL_PET, fabricSpriteProvider -> new PlayerWispParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/golden_will.png\"), 1.0f, 0.3f, 1.0f, -0.05f, -0.01f, 0.0f));\n        FOUNDING_SKULL_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:founding_skull_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.FOUNDING_SKULL_PET, fabricSpriteProvider -> new PlayerWispParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/founding_skull.png\"), 1.0f, 0.0f, 0.25f, -0.03f, 0.0f, -0.01f));\n        DISSOLUTION_WISP_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:dissolution_wisp_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.DISSOLUTION_WISP_PET, PetParticle.DefaultFactory::new);\n\n        /*\n                SPOOKY PETS\n         */\n        JACKO_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:jacko_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.JACKO_PET, JackoParticle.DefaultFactory::new);\n        PUMPKIN_SPIRIT_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:pumpkin_spirit_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.PUMPKIN_SPIRIT_PET, fabricSpriteProvider -> new PlayerWispParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/pumpkin_spirit.png\"), 1.0f, 0.95f, 0.0f, 0.0f, -0.03f, 0.0f));\n        POLTERGEIST_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:poltergeist_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.POLTERGEIST_PET, fabricSpriteProvider -> new PlayerWispParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/poltergeist.png\"), 1.0f, 1.0f, 1.0f, 0f, 0f, 0f));\n        LANTERN_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:lantern_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.LANTERN_PET, fabricSpriteProvider -> new PlayerLanternParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/lantern.png\"), 1.0f, 1.0f, 1.0f));\n        SOUL_LANTERN_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:soul_lantern_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.SOUL_LANTERN_PET, fabricSpriteProvider -> new PlayerLanternParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/soul_lantern.png\"), 1.0f, 1.0f, 1.0f));\n        CRYING_LANTERN_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:crying_lantern_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.CRYING_LANTERN_PET, fabricSpriteProvider -> new PlayerLanternParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/crying_lantern.png\"), 1.0f, 1.0f, 1.0f));\n        SOOTHING_LANTERN_PET = Registry.register(Registry.PARTICLE_TYPE, \"illuminations:soothing_lantern_pet\", FabricParticleTypes.simple(true));\n        ParticleFactoryRegistry.getInstance().register(Illuminations.SOOTHING_LANTERN_PET, fabricSpriteProvider -> new PlayerLanternParticle.DefaultFactory(fabricSpriteProvider, new Identifier(Illuminations.MODID, \"textures/entity/soothing_lantern.png\"), 1.0f, 1.0f, 1.0f));\n\n        /*\n                CROWNS FEATURE RENDERER REGISTRATION\n         */\n        LivingEntityFeatureRendererRegistrationCallback.EVENT.register((entityType, entityRenderer, registrationHelper, context) -> {\n            if (entityType == EntityType.PLAYER) {\n                @SuppressWarnings(\"unchecked\") var playerRenderer = (FeatureRendererContext<AbstractClientPlayerEntity, PlayerEntityModel<AbstractClientPlayerEntity>>) entityRenderer;\n                registrationHelper.register(new OverheadFeatureRenderer(playerRenderer, context));\n            }\n        });\n\n        /*\n                ADDING FIRFLY, GLOWWORM AND PLANKTON BIOMES SPAWN RATES\n         */\n        ImmutableMap.Builder<BiomeCategory, ImmutableSet<IlluminationData>> biomeBuilder = ImmutableMap.builder();\n        Config.getBiomeSettings().forEach((biome, settings) -> {\n            ImmutableSet.Builder<IlluminationData> illuminationDataBuilder = ImmutableSet.builder();\n\n            illuminationDataBuilder.add(new IlluminationData(FIREFLY, FIREFLY_LOCATION_PREDICATE, () -> Config.getBiomeSettings(biome).fireflySpawnRate().spawnRate));\n            if (settings.glowwormSpawnRate() != null)\n                illuminationDataBuilder.add(new IlluminationData(GLOWWORM, GLOWWORM_LOCATION_PREDICATE, () -> Config.getBiomeSettings(biome).glowwormSpawnRate().spawnRate));\n            if (settings.planktonSpawnRate() != null)\n                illuminationDataBuilder.add(new IlluminationData(PLANKTON, PLANKTON_LOCATION_PREDICATE, () -> Config.getBiomeSettings(biome).planktonSpawnRate().spawnRate));\n\n            biomeBuilder.put(biome, illuminationDataBuilder.build());\n        });\n        ILLUMINATIONS_BIOME_CATEGORIES = biomeBuilder.build();\n\n        /*\n                WILL O' WISP BIOME SPAWN\n         */\n        ILLUMINATIONS_BIOMES = ImmutableMap.<Identifier, ImmutableSet<IlluminationData>>builder()\n                .put(new Identifier(\"minecraft:soul_sand_valley\"), ImmutableSet.of(\n                        new IlluminationData(WILL_O_WISP, WISP_LOCATION_PREDICATE, () -> Config.getWillOWispsSpawnRate().spawnRate)))\n                .build();\n\n        /*\n             Aura matching and spawn chances + overhead matching + crown matching\n             Currently set to default aura settings.\n             Uncomment settings related to auras in Config.java and change getDefaultAuraSettings to getAuraSettings to restore.\n         */\n        AURAS_DATA = ImmutableMap.<String, AuraData>builder()\n                .put(\"twilight\", new AuraData(TWILIGHT_AURA, () -> DefaultConfig.getAuraSettings(\"twilight\")))\n                .put(\"ghostly\", new AuraData(GHOSTLY_AURA, () -> DefaultConfig.getAuraSettings(\"ghostly\")))\n                .put(\"chorus\", new AuraData(CHORUS_AURA, () -> DefaultConfig.getAuraSettings(\"chorus\")))\n                .put(\"autumn_leaves\", new AuraData(AUTUMN_LEAVES_AURA, () -> DefaultConfig.getAuraSettings(\"autumn_leaves\")))\n                .put(\"sculk_tendrils\", new AuraData(SCULK_TENDRIL_AURA, () -> DefaultConfig.getAuraSettings(\"sculk_tendrils\")))\n                .put(\"shadowbringer_soul\", new AuraData(SHADOWBRINGER_AURA, () -> DefaultConfig.getAuraSettings(\"shadowbringer_soul\")))\n                .put(\"goldenrod\", new AuraData(GOLDENROD_AURA, () -> DefaultConfig.getAuraSettings(\"goldenrod\")))\n                .put(\"confetti\", new AuraData(CONFETTI_AURA, () -> DefaultConfig.getAuraSettings(\"confetti\")))\n                .put(\"prismatic_confetti\", new AuraData(PRISMATIC_CONFETTI_AURA, () -> DefaultConfig.getAuraSettings(\"prismatic_confetti\")))\n                .put(\"prismarine\", new AuraData(PRISMARINE_AURA, () -> DefaultConfig.getAuraSettings(\"prismarine\")))\n                .build();\n\n        OVERHEADS_DATA = ImmutableMap.<String, OverheadData>builder()\n                .put(\"solar_crown\", new OverheadData(CrownModel::new, \"solar_crown\"))\n                .put(\"frost_crown\", new OverheadData(CrownModel::new, \"frost_crown\"))\n                .put(\"pyro_crown\", new OverheadData(CrownModel::new, \"pyro_crown\"))\n                .put(\"chorus_crown\", new OverheadData(CrownModel::new, \"chorus_crown\"))\n                .put(\"bloodfiend_crown\", new OverheadData(CrownModel::new, \"bloodfiend_crown\"))\n                .put(\"dreadlich_crown\", new OverheadData(CrownModel::new, \"dreadlich_crown\"))\n                .put(\"mooncult_crown\", new OverheadData(CrownModel::new, \"mooncult_crown\"))\n                .put(\"deepsculk_horns\", new OverheadData(HornsModel::new, \"deepsculk_horns\"))\n                .put(\"springfae_horns\", new OverheadData(HornsModel::new, \"springfae_horns\"))\n                .put(\"voidheart_tiara\", new OverheadData(VoidheartTiaraModel::new, \"voidheart_tiara\"))\n                .put(\"worldweaver_halo\", new OverheadData(HaloModel::new, \"worldweaver_halo\"))\n                .put(\"summerbreeze_wreath\", new OverheadData(WreathModel::new, \"summerbreeze_wreath\"))\n                .put(\"glowsquid_cult_crown\", new OverheadData(TiaraModel::new, \"glowsquid_cult_crown\"))\n                .put(\"timeaspect_cult_crown\", new OverheadData(TiaraModel::new, \"timeaspect_cult_crown\"))\n                .put(\"prismarine_crown\", new OverheadData(CrownModel::new, \"prismarine_crown\"))\n                .build();\n\n        PETS_DATA = ImmutableMap.<String, DefaultParticleType>builder()\n                .put(\"pride\", PRIDE_PET)\n                .put(\"gay_pride\", GAY_PRIDE_PET)\n                .put(\"trans_pride\", TRANS_PRIDE_PET)\n                .put(\"lesbian_pride\", LESBIAN_PRIDE_PET)\n                .put(\"bi_pride\", BI_PRIDE_PET)\n                .put(\"ace_pride\", ACE_PRIDE_PET)\n                .put(\"nb_pride\", NB_PRIDE_PET)\n                .put(\"intersex_pride\", INTERSEX_PRIDE_PET)\n                .put(\"aro_pride\", ARO_PRIDE_PET)\n                .put(\"pan_pride\", PAN_PRIDE_PET)\n                .put(\"agender_pride\", AGENDER_PRIDE_PET)\n                .put(\"jacko\", JACKO_PET)\n                .put(\"will_o_wisp\", WILL_O_WISP_PET)\n                .put(\"golden_will\", GOLDEN_WILL_PET)\n                .put(\"founding_skull\", FOUNDING_SKULL_PET)\n                .put(\"dissolution_wisp\", DISSOLUTION_WISP_PET)\n                .put(\"pumpkin_spirit\", PUMPKIN_SPIRIT_PET)\n                .put(\"poltergeist\", POLTERGEIST_PET)\n                .put(\"lantern\", LANTERN_PET)\n                .put(\"soul_lantern\", SOUL_LANTERN_PET)\n                .put(\"crying_lantern\", CRYING_LANTERN_PET)\n                .put(\"soothing_lantern\", SOOTHING_LANTERN_PET)\n                .build();\n    }\n\n    private static class PlayerCosmeticDataParser implements JsonDeserializer<PlayerCosmeticData> {\n        @Override\n        public PlayerCosmeticData deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n            JsonObject jsonObject = json.getAsJsonObject();\n            return new PlayerCosmeticData(jsonObject.get(\"aura\")\n                    , jsonObject.get(\"color\")\n                    , jsonObject.get(\"overhead\")\n                    , jsonObject.get(\"drip\")\n                    , jsonObject.get(\"pet\"));\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/IlluminationsModMenuIntegration.java",
    "content": "package ladysnake.illuminations.client;\n\nimport com.google.common.base.CaseFormat;\nimport com.terraformersmc.modmenu.api.ConfigScreenFactory;\nimport com.terraformersmc.modmenu.api.ModMenuApi;\nimport ladysnake.illuminations.client.config.Config;\nimport ladysnake.illuminations.client.config.DefaultConfig;\nimport ladysnake.illuminations.client.data.BiomeSettings;\nimport ladysnake.illuminations.client.enums.*;\nimport me.shedaniel.clothconfig2.api.ConfigBuilder;\nimport me.shedaniel.clothconfig2.api.ConfigCategory;\nimport me.shedaniel.clothconfig2.api.ConfigEntryBuilder;\nimport me.shedaniel.clothconfig2.impl.builders.SubCategoryBuilder;\nimport net.minecraft.text.StringVisitable;\nimport net.minecraft.text.Text;\nimport net.minecraft.text.TranslatableText;\nimport net.minecraft.util.Identifier;\n\nimport java.util.HashMap;\n\nimport static ladysnake.illuminations.client.enums.BiomeCategory.OTHER;\n\npublic class IlluminationsModMenuIntegration implements ModMenuApi {\n\n    private ConfigBuilder builder;\n    private ConfigEntryBuilder entryBuilder;\n\n    @Override\n    public ConfigScreenFactory<?> getModConfigScreenFactory() {\n        return parent -> {\n            // load config\n            Config.load();\n\n            // create the config\n            builder = ConfigBuilder.create()\n                    .setParentScreen(parent)\n                    .setTitle(new TranslatableText(\"title.illuminations.config\"));\n            builder.setSavingRunnable(Config::save);\n\n            entryBuilder = builder.entryBuilder();\n\n            // config categories and entries\n            GenerateGeneralSettings();\n            GenerateBiomeSettings();\n\n            // build and return the config screen\n            return builder.build();\n        };\n    }\n\n    private void GenerateGeneralSettings() {\n        ConfigCategory general = builder.getOrCreateCategory(new TranslatableText(\"category.illuminations.general\"));\n\n        general.addEntry(entryBuilder\n                .startEnumSelector(new TranslatableText(\"option.illuminations.halloweenFeatures\"), HalloweenFeatures.class, Config.getHalloweenFeatures())\n                .setTooltip(\n                        new TranslatableText(\"option.tooltip.illuminations.halloweenFeatures\"),\n                        new TranslatableText(\"option.tooltip.illuminations.halloweenFeatures.default\"),\n                        new TranslatableText(\"option.tooltip.illuminations.halloweenFeatures.enable\"),\n                        new TranslatableText(\"option.tooltip.illuminations.halloweenFeatures.disable\"),\n                        new TranslatableText(\"option.tooltip.illuminations.halloweenFeatures.always\"))\n                .setSaveConsumer(Config::setHalloweenFeatures)\n                .setDefaultValue(DefaultConfig.HALLOWEEN_FEATURES)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startEnumSelector(new TranslatableText(\"option.illuminations.eyesInTheDarkSpawnRate\"), EyesInTheDarkSpawnRate.class, Config.getEyesInTheDarkSpawnRate())\n                .setTooltip(\n                        new TranslatableText(\"option.tooltip.illuminations.eyesInTheDarkSpawnRate\"),\n                        new TranslatableText(\"option.tooltip.illuminations.eyesInTheDarkSpawnRate.default\"),\n                        new TranslatableText(\"option.tooltip.illuminations.eyesInTheDarkSpawnRate.low\"),\n                        new TranslatableText(\"option.tooltip.illuminations.eyesInTheDarkSpawnRate.medium\"),\n                        new TranslatableText(\"option.tooltip.illuminations.eyesInTheDarkSpawnRate.high\"))\n                .setSaveConsumer(Config::setEyesInTheDarkSpawnRate)\n                .setDefaultValue(DefaultConfig.EYES_IN_THE_DARK_SPAWN_RATE)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startEnumSelector(new TranslatableText(\"option.illuminations.willOWispsSpawnRate\"), WillOWispsSpawnRate.class, Config.getWillOWispsSpawnRate())\n                .setTooltip(\n                        new TranslatableText(\"option.tooltip.illuminations.willOWispsSpawnRate\"),\n                        new TranslatableText(\"option.tooltip.illuminations.willOWispsSpawnRate.default\"),\n                        new TranslatableText(\"option.tooltip.illuminations.willOWispsSpawnRate.disable\"),\n                        new TranslatableText(\"option.tooltip.illuminations.willOWispsSpawnRate.low\"),\n                        new TranslatableText(\"option.tooltip.illuminations.willOWispsSpawnRate.medium\"),\n                        new TranslatableText(\"option.tooltip.illuminations.willOWispsSpawnRate.high\"))\n                .setSaveConsumer(Config::setWillOWispsSpawnRate)\n                .setDefaultValue(DefaultConfig.WILL_O_WISPS_SPAWN_RATE)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startIntSlider(new TranslatableText(\"option.illuminations.chorusPetalsSpawnMultiplier\"), Config.getChorusPetalsSpawnMultiplier(), 0, 10)\n                .setTooltip(\n                        new TranslatableText(\"option.tooltip.illuminations.chorusPetalsSpawnMultiplier\"),\n                        new TranslatableText(\"option.tooltip.illuminations.chorusPetalsSpawnMultiplier.lowest\"),\n                        new TranslatableText(\"option.tooltip.illuminations.chorusPetalsSpawnMultiplier.highest\"))\n                .setSaveConsumer(Config::setChorusPetalsSpawnMultiplier)\n                .setDefaultValue(DefaultConfig.CHORUS_PETALS_SPAWN_MULTIPLIER)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startIntSlider(new TranslatableText(\"option.illuminations.density\"), Config.getDensity(), 0, 1000)\n                .setTooltip(\n                        new TranslatableText(\"option.tooltip.illuminations.density\"),\n                        new TranslatableText(\"option.tooltip.illuminations.density.lowest\"),\n                        new TranslatableText(\"option.tooltip.illuminations.density.highest\"))\n                .setSaveConsumer(Config::setDensity)\n                .setDefaultValue(DefaultConfig.DENSITY)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startBooleanToggle(new TranslatableText(\"option.illuminations.fireflySpawnAlways\"), Config.doesFireflySpawnAlways())\n                .setTooltip(new TranslatableText(\"option.tooltip.illuminations.fireflySpawnAlways\"))\n                .setSaveConsumer(Config::setFireflySpawnAlways)\n                .setDefaultValue(DefaultConfig.FIREFLY_SPAWN_ALWAYS)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startBooleanToggle(new TranslatableText(\"option.illuminations.fireflySpawnUnderground\"), Config.doesFireflySpawnUnderground())\n                .setTooltip(new TranslatableText(\"option.tooltip.illuminations.fireflySpawnUnderground\"))\n                .setSaveConsumer(Config::setFireflySpawnUnderground)\n                .setDefaultValue(DefaultConfig.FIREFLY_SPAWN_UNDERGROUND)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startIntSlider(new TranslatableText(\"option.illuminations.fireflyWhiteAlpha\"), Config.getFireflyWhiteAlpha(), 0, 100)\n                .setTooltip(new TranslatableText(\"option.tooltip.illuminations.fireflyWhiteAlpha\"))\n                .setSaveConsumer(Config::setFireflyWhiteAlpha)\n                .setDefaultValue(DefaultConfig.FIREFLY_WHITE_ALPHA)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startBooleanToggle(new TranslatableText(\"option.illuminations.fireflyRainbow\"), Config.getFireflyRainbow())\n                .setSaveConsumer(Config::setFireflyRainbow)\n                .setDefaultValue(DefaultConfig.FIREFLY_RAINBOW)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startBooleanToggle(new TranslatableText(\"option.illuminations.autoUpdate\"), Config.isAutoUpdate())\n                .setTooltip(new TranslatableText(\"option.tooltip.illuminations.autoUpdate\"))\n                .setSaveConsumer(Config::setAutoUpdate)\n                .setDefaultValue(DefaultConfig.AUTO_UPDATE)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startBooleanToggle(new TranslatableText(\"option.illuminations.viewAurasFP\"), Config.getViewAurasFP())\n                .setTooltip(new TranslatableText(\"option.tooltip.illuminations.viewAurasFP\"))\n                .setSaveConsumer(Config::setViewAurasFP)\n                .setDefaultValue(DefaultConfig.VIEW_AURAS_FP)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startBooleanToggle(new TranslatableText(\"option.illuminations.displayDonationToast\"), Config.isDisplayDonationToast())\n                .setTooltip(new TranslatableText(\"option.tooltip.illuminations.displayDonationToast\"))\n                .setSaveConsumer(Config::setDisplayDonationToast)\n                .setDefaultValue(DefaultConfig.DISPLAY_DONATION_TOAST)\n                .build());\n\n        general.addEntry(entryBuilder\n                .startBooleanToggle(new TranslatableText(\"option.illuminations.debugMode\"), Config.isDebugMode())\n                .setTooltip(new TranslatableText(\"option.tooltip.illuminations.debugMode\"))\n                .setSaveConsumer(Config::setDebugMode)\n                .setDefaultValue(DefaultConfig.DEBUG_MODE)\n                .build());\n    }\n\n    private void GenerateBiomeSettings() {\n        HashMap<Identifier, ConfigCategory> biomeCategories = new HashMap<>();\n        for (Identifier dimension : BiomeCategory.getDimensions()) {\n            String name = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, dimension.getPath());\n            ConfigCategory category = builder.getOrCreateCategory(new TranslatableText(\"category.illuminations.\" + name));\n            category.setDescription(new StringVisitable[]{new TranslatableText(\"category.illuminations.\" + name + \".description\")});\n            biomeCategories.put(dimension, category);\n        }\n\n        for (BiomeCategory biome : BiomeCategory.values()) {\n            ConfigCategory category = biomeCategories.get(biome.getDimension());\n            String name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, biome.name());\n            BiomeSettings defaultSettings = DefaultConfig.getBiomeSettings(biome);\n            BiomeSettings settings = Config.getBiomeSettings(biome);\n\n            // Biome tooltip\n            Text[] tooltip = new Text[biome.getBiomes().length + 1];\n            tooltip[0] = new TranslatableText(\"option.tooltip.illuminations.biome\");\n            for (int i = 0; i < biome.getBiomes().length; i++) {\n                tooltip[i + 1] = new TranslatableText(\"biome.minecraft.\" + biome.getBiomes()[i].getPath());\n            }\n\n            // Biome sub category\n            SubCategoryBuilder biomeCategoryBuilder = entryBuilder\n                    .startSubCategory(new TranslatableText(\"option.illuminations.biome.\" + name))\n                    .setTooltip(tooltip);\n\n            // Firefly spawn rate\n            biomeCategoryBuilder.add(entryBuilder\n                    .startEnumSelector(new TranslatableText(\"option.illuminations.fireflySpawnRate\"), FireflySpawnRate.class, settings.fireflySpawnRate())\n                    .setTooltip(\n                            new TranslatableText(\"option.tooltip.illuminations.fireflySpawnRate\"),\n                            new TranslatableText(\"option.tooltip.illuminations.fireflySpawnRate.disable\"),\n                            new TranslatableText(\"option.tooltip.illuminations.fireflySpawnRate.low\"),\n                            new TranslatableText(\"option.tooltip.illuminations.fireflySpawnRate.medium\"),\n                            new TranslatableText(\"option.tooltip.illuminations.fireflySpawnRate.high\"))\n                    .setSaveConsumer(x -> Config.setFireflySettings(biome, x))\n                    .setDefaultValue(defaultSettings.fireflySpawnRate())\n                    .build());\n\n            // Firefly color\n            biomeCategoryBuilder.add(entryBuilder\n                    .startColorField(new TranslatableText(\"option.illuminations.fireflyColor\"), settings.fireflyColor())\n                    .setTooltip(new TranslatableText(\"option.tooltip.illuminations.fireflyColor\"))\n                    .setSaveConsumer(x -> Config.setFireflyColorSettings(biome, x))\n                    .setDefaultValue(defaultSettings.fireflyColor())\n                    .build());\n\n            // Glowworm spawn rate\n            if (settings.glowwormSpawnRate() != null)\n                biomeCategoryBuilder.add(entryBuilder\n                        .startEnumSelector(new TranslatableText(\"option.illuminations.glowwormSpawnRate\"), GlowwormSpawnRate.class, settings.glowwormSpawnRate())\n                        .setTooltip(\n                                new TranslatableText(\"option.tooltip.illuminations.glowwormSpawnRate\"),\n                                new TranslatableText(\"option.tooltip.illuminations.glowwormSpawnRate.disable\"),\n                                new TranslatableText(\"option.tooltip.illuminations.glowwormSpawnRate.low\"),\n                                new TranslatableText(\"option.tooltip.illuminations.glowwormSpawnRate.medium\"),\n                                new TranslatableText(\"option.tooltip.illuminations.glowwormSpawnRate.high\"))\n                        .setSaveConsumer(x -> Config.setGlowwormSettings(biome, x))\n                        .setDefaultValue(defaultSettings.glowwormSpawnRate())\n                        .build());\n\n            // Plankton spawn rate\n            if (settings.planktonSpawnRate() != null)\n                biomeCategoryBuilder.add(entryBuilder\n                        .startEnumSelector(new TranslatableText(\"option.illuminations.planktonSpawnRate\"), PlanktonSpawnRate.class, settings.planktonSpawnRate())\n                        .setTooltip(\n                                new TranslatableText(\"option.tooltip.illuminations.planktonSpawnRate\"),\n                                new TranslatableText(\"option.tooltip.illuminations.planktonSpawnRate.disable\"),\n                                new TranslatableText(\"option.tooltip.illuminations.planktonSpawnRate.low\"),\n                                new TranslatableText(\"option.tooltip.illuminations.planktonSpawnRate.medium\"),\n                                new TranslatableText(\"option.tooltip.illuminations.planktonSpawnRate.high\"))\n                        .setSaveConsumer(x -> Config.setPlanktonSettings(biome, x))\n                        .setDefaultValue(defaultSettings.planktonSpawnRate())\n                        .build());\n\n            if (biome == OTHER) {\n                biomeCategoryBuilder.forEach(category::addEntry);\n            } else {\n                category.addEntry(biomeCategoryBuilder.build());\n            }\n        }\n    }\n}\n\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/Rainbowlluminations.java",
    "content": "package ladysnake.illuminations.client;\n\nimport ladysnake.satin.api.event.EntitiesPreRenderCallback;\nimport ladysnake.satin.api.managed.ManagedCoreShader;\nimport ladysnake.satin.api.managed.ShaderEffectManager;\nimport ladysnake.satin.api.managed.uniform.Uniform1f;\nimport net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;\nimport net.minecraft.util.Identifier;\n\npublic class Rainbowlluminations {\n    // rainbow shader for jeb mobs\n    public static final ManagedCoreShader RAINBOW_SHADER = ShaderEffectManager.getInstance().manageCoreShader(new Identifier(Illuminations.MODID, \"jeb\"));\n    private static final Uniform1f uniformSTime = RAINBOW_SHADER.findUniform1f(\"Time\");\n    private static int ticks;\n\n    public static void init() {\n        ClientTickEvents.END_CLIENT_TICK.register(client -> ticks++);\n        EntitiesPreRenderCallback.EVENT.register((camera, frustum, tickDelta) -> uniformSTime.set((ticks + tickDelta) * 0.05f));\n\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/config/Config.java",
    "content": "package ladysnake.illuminations.client.config;\n\nimport com.google.common.base.CaseFormat;\nimport ladysnake.illuminations.client.data.BiomeSettings;\nimport ladysnake.illuminations.client.enums.*;\nimport net.fabricmc.loader.api.FabricLoader;\nimport org.jetbrains.annotations.NotNull;\n\nimport java.io.IOException;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.util.*;\nimport java.util.function.Consumer;\n\npublic class Config {\n    public static final Path PROPERTIES_PATH = FabricLoader.getInstance().getConfigDir().resolve(\"illuminations.properties\");\n    private static final Properties config = new Properties() {\n        @Override\n        public @NotNull Set<Map.Entry<Object, Object>> entrySet() {\n            Iterator<Map.Entry<Object, Object>> iterator = super.entrySet().stream().sorted(Comparator.comparing(o -> o.getKey().toString())).iterator();\n\n            Set<Map.Entry<Object, Object>> temp = new LinkedHashSet<>(super.entrySet().size());\n            while (iterator.hasNext())\n                temp.add(iterator.next());\n\n            return temp;\n        }\n    };\n    private static HalloweenFeatures halloweenFeatures;\n    private static EyesInTheDarkSpawnRate eyesInTheDarkSpawnRate;\n    private static WillOWispsSpawnRate willOWispsSpawnRate;\n    private static int chorusPetalsSpawnMultiplier;\n    private static int density;\n    private static boolean fireflySpawnAlways;\n    private static boolean fireflySpawnUnderground;\n    private static int fireflyWhiteAlpha;\n    private static boolean fireflyRainbow;\n    private static boolean viewAurasFP;\n    private static boolean autoUpdate;\n    private static boolean debugMode;\n    private static boolean displayGreetingScreen;\n    private static boolean displayDonationToast;\n    private static HashMap<BiomeCategory, BiomeSettings> biomeSettings;\n    // private static HashMap<String, AuraSettings> auraSettings;\n\n    public static void load() {\n        // if illuminations.properties exist, load it\n        if (Files.isRegularFile(PROPERTIES_PATH)) {\n            // load illuminations.properties\n            try {\n                config.load(Files.newBufferedReader(PROPERTIES_PATH));\n            } catch (IOException e) {\n                e.printStackTrace();\n            }\n        } else { // if no illuminations.properties, load default values\n            // define default properties\n            setHalloweenFeatures(DefaultConfig.HALLOWEEN_FEATURES);\n            setEyesInTheDarkSpawnRate(DefaultConfig.EYES_IN_THE_DARK_SPAWN_RATE);\n            setWillOWispsSpawnRate(DefaultConfig.WILL_O_WISPS_SPAWN_RATE);\n            setChorusPetalsSpawnMultiplier(DefaultConfig.CHORUS_PETALS_SPAWN_MULTIPLIER);\n            setDensity(DefaultConfig.DENSITY);\n            setFireflySpawnAlways(DefaultConfig.FIREFLY_SPAWN_ALWAYS);\n            setFireflySpawnUnderground(DefaultConfig.FIREFLY_SPAWN_UNDERGROUND);\n            setFireflyWhiteAlpha(DefaultConfig.FIREFLY_WHITE_ALPHA);\n            setAutoUpdate(DefaultConfig.AUTO_UPDATE);\n            setViewAurasFP(DefaultConfig.VIEW_AURAS_FP);\n            setDisplayGreetingScreen(DefaultConfig.DISPLAY_GREETING_SCREEN);\n            setDisplayDonationToast(DefaultConfig.DISPLAY_DONATION_TOAST);\n\n            biomeSettings = new HashMap<>();\n            DefaultConfig.BIOME_SETTINGS.forEach(Config::setBiomeSettings);\n\n            /*\n            auraSettings = new HashMap<>();\n            defaultAuraSettings.forEach(Config::setAuraSettings);\n            */\n\n            Config.save();\n            return;\n        }\n\n        parseProperty(\"halloween-features\", Config::setHalloweenFeatures, DefaultConfig.HALLOWEEN_FEATURES);\n        parseProperty(\"eyes-in-the-dark-spawn-rate\", Config::setEyesInTheDarkSpawnRate, DefaultConfig.EYES_IN_THE_DARK_SPAWN_RATE);\n        parseProperty(\"will-o-wisps-spawn-rate\", Config::setWillOWispsSpawnRate, DefaultConfig.WILL_O_WISPS_SPAWN_RATE);\n        parseProperty(\"chorus-petal-spawn-multiplier\", Config::setChorusPetalsSpawnMultiplier, DefaultConfig.CHORUS_PETALS_SPAWN_MULTIPLIER);\n        parseProperty(\"density\", Config::setDensity, DefaultConfig.DENSITY);\n        parseProperty(\"firefly-spawn-always\", Config::setFireflySpawnAlways, DefaultConfig.FIREFLY_SPAWN_ALWAYS);\n        parseProperty(\"firefly-spawn-underground\", Config::setFireflySpawnUnderground, DefaultConfig.FIREFLY_SPAWN_UNDERGROUND);\n        parseProperty(\"firefly-white-alpha\", Config::setFireflyWhiteAlpha, DefaultConfig.FIREFLY_WHITE_ALPHA);\n        parseProperty(\"firefly-rainbow\", Config::setFireflyRainbow, DefaultConfig.FIREFLY_RAINBOW);\n        parseProperty(\"auto-update\", Config::setAutoUpdate, DefaultConfig.AUTO_UPDATE);\n        parseProperty(\"debug-mode\", Config::setDebugMode, DefaultConfig.DEBUG_MODE);\n        parseProperty(\"view-auras-fp\", Config::setViewAurasFP, DefaultConfig.VIEW_AURAS_FP);\n        parseProperty(\"display-greeting-screen\", Config::setDisplayGreetingScreen, DefaultConfig.DISPLAY_GREETING_SCREEN);\n        parseProperty(\"display-donation-toast\", Config::setDisplayDonationToast, DefaultConfig.DISPLAY_DONATION_TOAST);\n\n        biomeSettings = new HashMap<>();\n        DefaultConfig.BIOME_SETTINGS.forEach((biome, defaultValue) ->\n                parseProperty(biome.name(), x -> Config.setBiomeSettings(biome, x), defaultValue));\n\n        /*\n        auraSettings = new HashMap<>();\n        defaultAuraSettings.forEach((aura, v) ->\n                setAuraSettings(aura,\n                        tryOrDefault(() -> {\n                            String name = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, aura);\n                            float s = Float.parseFloat(config.getProperty(name + \"-aura-spawn-rate\"));\n                            int d = Integer.parseInt(config.getProperty(name + \"-aura-delay\"));\n                            return new AuraSettings(s, d);\n                        }, v)));\n        */\n\n        Config.save();\n    }\n\n    private static <T extends Enum<T>> void parseProperty(String property, Consumer<T> setter, T defaultValue) {\n        try {\n            setter.accept(Enum.valueOf(defaultValue.getDeclaringClass(), config.getProperty(property)));\n        } catch (Exception e) {\n            setter.accept(defaultValue);\n        }\n    }\n\n    private static void parseProperty(String property, Consumer<Boolean> setter, Boolean defaultValue) {\n        try {\n            setter.accept(Boolean.parseBoolean(config.getProperty(property)));\n        } catch (Exception e) {\n            setter.accept(defaultValue);\n        }\n    }\n\n    private static void parseProperty(String property, Consumer<Integer> setter, Integer defaultValue) {\n        try {\n            setter.accept(Integer.parseInt(config.getProperty(property)));\n        } catch (Exception e) {\n            setter.accept(defaultValue);\n        }\n    }\n\n    private static void parseProperty(String biome, Consumer<BiomeSettings> setter, BiomeSettings defaultValue) {\n        try {\n            String name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, biome);\n\n            FireflySpawnRate fireflySpawnRate = FireflySpawnRate.valueOf(config.getProperty(name + \"-firefly-spawn-rate\"));\n            GlowwormSpawnRate glowwormSpawnRate = defaultValue.glowwormSpawnRate() == null ? null\n                    : GlowwormSpawnRate.valueOf(config.getProperty(name + \"-glowworm-spawn-rate\"));\n            PlanktonSpawnRate planktonSpawnRate = defaultValue.planktonSpawnRate() == null ? null\n                    : PlanktonSpawnRate.valueOf(config.getProperty(name + \"-plankton-spawn-rate\"));\n            int fireflyColor = Integer.parseInt(config.getProperty(name + \"-firefly-color\"), 16);\n\n            setter.accept(new BiomeSettings(fireflySpawnRate, fireflyColor, glowwormSpawnRate, planktonSpawnRate));\n        } catch (Exception e) {\n            setter.accept(defaultValue);\n        }\n    }\n\n    public static void save() {\n        try {\n            config.store(Files.newBufferedWriter(Config.PROPERTIES_PATH), null);\n        } catch (IOException e) {\n            e.printStackTrace();\n        }\n    }\n\n    //region Getters/Setters\n\n    public static HalloweenFeatures getHalloweenFeatures() {\n        return halloweenFeatures;\n    }\n\n    public static void setHalloweenFeatures(HalloweenFeatures value) {\n        halloweenFeatures = value;\n        config.setProperty(\"halloween-features\", value.toString());\n    }\n\n    public static EyesInTheDarkSpawnRate getEyesInTheDarkSpawnRate() {\n        return eyesInTheDarkSpawnRate;\n    }\n\n    public static void setEyesInTheDarkSpawnRate(EyesInTheDarkSpawnRate value) {\n        eyesInTheDarkSpawnRate = value;\n        config.setProperty(\"eyes-in-the-dark-spawn-rate\", value.name());\n    }\n\n    public static WillOWispsSpawnRate getWillOWispsSpawnRate() {\n        return willOWispsSpawnRate;\n    }\n\n    public static void setWillOWispsSpawnRate(WillOWispsSpawnRate value) {\n        willOWispsSpawnRate = value;\n        config.setProperty(\"will-o-wisps-spawn-rate\", value.name());\n    }\n\n    public static int getChorusPetalsSpawnMultiplier() {\n        return chorusPetalsSpawnMultiplier;\n    }\n\n    public static void setChorusPetalsSpawnMultiplier(int value) {\n        chorusPetalsSpawnMultiplier = value;\n        config.setProperty(\"chorus-petal-spawn-multiplier\", Integer.toString(value));\n    }\n\n    public static int getDensity() {\n        return density;\n    }\n\n    public static void setDensity(int value) {\n        density = value;\n        config.setProperty(\"density\", Integer.toString(value));\n    }\n\n    public static boolean doesFireflySpawnAlways() {\n        return fireflySpawnAlways;\n    }\n\n    public static void setFireflySpawnAlways(boolean value) {\n        fireflySpawnAlways = value;\n        config.setProperty(\"firefly-spawn-always\", Boolean.toString(value));\n    }\n\n    public static boolean doesFireflySpawnUnderground() {\n        return fireflySpawnUnderground;\n    }\n\n    public static void setFireflySpawnUnderground(boolean value) {\n        fireflySpawnUnderground = value;\n        config.setProperty(\"firefly-spawn-underground\", Boolean.toString(value));\n    }\n\n    public static int getFireflyWhiteAlpha() {\n        return fireflyWhiteAlpha;\n    }\n\n    public static void setFireflyWhiteAlpha(int value) {\n        fireflyWhiteAlpha = value;\n        config.setProperty(\"firefly-white-alpha\", Integer.toString(value));\n    }\n\n    public static boolean getFireflyRainbow() {\n        return fireflyRainbow;\n    }\n\n    public static void setFireflyRainbow(boolean value) {\n        fireflyRainbow = value;\n        config.setProperty(\"firefly-rainbow\", Boolean.toString(value));\n    }\n\n    public static boolean getViewAurasFP() {\n        return viewAurasFP;\n    }\n\n    public static void setViewAurasFP(boolean value) {\n        viewAurasFP = value;\n        config.setProperty(\"view-auras-fp\", Boolean.toString(value));\n    }\n\n    public static boolean isAutoUpdate() {\n        return autoUpdate;\n    }\n\n    public static void setAutoUpdate(boolean value) {\n        autoUpdate = value;\n        config.setProperty(\"auto-update\", Boolean.toString(value));\n    }\n\n    public static boolean isDebugMode() {\n        return debugMode;\n    }\n\n    public static void setDebugMode(boolean value) {\n        debugMode = value;\n        config.setProperty(\"debug-mode\", Boolean.toString(value));\n    }\n\n    public static boolean isDisplayGreetingScreen() {\n        return displayGreetingScreen;\n    }\n\n    public static void setDisplayGreetingScreen(boolean value) {\n        displayGreetingScreen = value;\n        config.setProperty(\"display-greeting-screen\", Boolean.toString(value));\n    }\n\n    public static boolean isDisplayDonationToast() {\n        return displayDonationToast;\n    }\n\n    public static void setDisplayDonationToast(boolean value) {\n        displayDonationToast = value;\n        config.setProperty(\"display-donation-toast\", Boolean.toString(value));\n    }\n\n    public static Map<BiomeCategory, BiomeSettings> getBiomeSettings() {\n        return biomeSettings;\n    }\n\n    public static BiomeSettings getBiomeSettings(BiomeCategory biome) {\n        return biomeSettings.get(biome);\n    }\n\n    public static void setBiomeSettings(BiomeCategory biome, BiomeSettings settings) {\n        biomeSettings.put(biome, settings);\n        String name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, biome.name());\n        config.setProperty(name + \"-firefly-spawn-rate\", settings.fireflySpawnRate().name());\n        config.setProperty(name + \"-firefly-color\", Integer.toString(settings.fireflyColor(), 16));\n        if (settings.glowwormSpawnRate() != null)\n            config.setProperty(name + \"-glowworm-spawn-rate\", settings.glowwormSpawnRate().name());\n        if (settings.planktonSpawnRate() != null)\n            config.setProperty(name + \"-plankton-spawn-rate\", settings.planktonSpawnRate().name());\n    }\n\n    public static void setFireflySettings(BiomeCategory biome, FireflySpawnRate value) {\n        BiomeSettings settings = biomeSettings.get(biome);\n        biomeSettings.put(biome, settings.withFireflySpawnRate(value));\n        String name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, biome.name());\n        config.setProperty(name + \"-firefly-spawn-rate\", value.name());\n    }\n\n    public static void setFireflyColorSettings(BiomeCategory biome, int color) {\n        BiomeSettings settings = biomeSettings.get(biome);\n        biomeSettings.put(biome, settings.withFireflyColor(color));\n        String name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, biome.name());\n        config.setProperty(name + \"-firefly-color\", Integer.toString(color, 16));\n    }\n\n    public static void setGlowwormSettings(BiomeCategory biome, GlowwormSpawnRate value) {\n        BiomeSettings settings = biomeSettings.get(biome);\n        biomeSettings.put(biome, settings.withGlowwormSpawnRate(value));\n        String name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, biome.name());\n        config.setProperty(name + \"-glowworm-spawn-rate\", value.name());\n    }\n\n    public static void setPlanktonSettings(BiomeCategory biome, PlanktonSpawnRate value) {\n        BiomeSettings settings = biomeSettings.get(biome);\n        biomeSettings.put(biome, settings.withPlanktonSpawnRate(value));\n        String name = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, biome.name());\n        config.setProperty(name + \"-plankton-spawn-rate\", value.name());\n    }\n\n    /*\n    public static Map<String, AuraSettings> getAuraSettings()\n    {\n        return auraSettings;\n    }\n\n    public static AuraSettings getAuraSettings(String aura)\n    {\n        return auraSettings.get(aura);\n    }\n\n    public static void setAuraSettings(String aura, AuraSettings settings)\n    {\n        auraSettings.put(aura, settings);\n        String name = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, aura);\n        config.setProperty(name + \"-aura-spawn-rate\", Float.toString(settings.spawnRate()));\n        config.setProperty(name + \"-aura-delay\", Integer.toString(settings.delay()));\n    }\n\n    public static void setAuraSpawnRate(String aura, float value)\n    {\n        AuraSettings settings = auraSettings.get(aura);\n        auraSettings.put(aura, settings.withSpawnRate(value));\n        String name = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, aura);\n        config.setProperty(name + \"-aura-spawn-rate\", Float.toString(value));\n    }\n\n    public static void setAuraDelay(String aura, int value)\n    {\n        AuraSettings settings = auraSettings.get(aura);\n        auraSettings.put(aura, settings.withDelay(value));\n        String name = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, aura);\n        config.setProperty(name + \"-aura-delay\", Integer.toString(value));\n    }*/\n\n    //endregion\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/config/DefaultConfig.java",
    "content": "package ladysnake.illuminations.client.config;\n\nimport com.google.common.collect.ImmutableMap;\nimport ladysnake.illuminations.client.data.AuraSettings;\nimport ladysnake.illuminations.client.data.BiomeSettings;\nimport ladysnake.illuminations.client.enums.*;\n\nimport static ladysnake.illuminations.client.enums.BiomeCategory.*;\n\npublic final class DefaultConfig {\n\n    public static final HalloweenFeatures HALLOWEEN_FEATURES = HalloweenFeatures.ENABLE;\n    public static final EyesInTheDarkSpawnRate EYES_IN_THE_DARK_SPAWN_RATE = EyesInTheDarkSpawnRate.MEDIUM;\n    public static final WillOWispsSpawnRate WILL_O_WISPS_SPAWN_RATE = WillOWispsSpawnRate.MEDIUM;\n    public static final int CHORUS_PETALS_SPAWN_MULTIPLIER = 1;\n    public static final int DENSITY = 100;\n    public static final boolean FIREFLY_SPAWN_ALWAYS = false;\n    public static final boolean FIREFLY_SPAWN_UNDERGROUND = false;\n    public static final int FIREFLY_WHITE_ALPHA = 100;\n    public static final boolean FIREFLY_RAINBOW = false;\n    public static final boolean AUTO_UPDATE = false;\n    public static final boolean DEBUG_MODE = false;\n    public static final boolean VIEW_AURAS_FP = false;\n    public static final boolean DISPLAY_GREETING_SCREEN = true;\n    public static final boolean DISPLAY_DONATION_TOAST = true;\n\n    public static final ImmutableMap<BiomeCategory, BiomeSettings> BIOME_SETTINGS = ImmutableMap.<BiomeCategory, BiomeSettings>builder()\n            .put(FOREST, new BiomeSettings(FireflySpawnRate.MEDIUM, 0xBFFF00, GlowwormSpawnRate.MEDIUM, PlanktonSpawnRate.DISABLE))\n            .put(TAIGA, new BiomeSettings(FireflySpawnRate.LOW, 0xBFFF00, GlowwormSpawnRate.LOW, PlanktonSpawnRate.DISABLE))\n            .put(SNOWY, new BiomeSettings(FireflySpawnRate.DISABLE, 0x00BFFF, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.DISABLE))\n            .put(PLAINS, new BiomeSettings(FireflySpawnRate.LOW, 0xBFFF00, GlowwormSpawnRate.LOW, PlanktonSpawnRate.DISABLE))\n            .put(DESERT, new BiomeSettings(FireflySpawnRate.DISABLE, 0xFFA755, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.DISABLE))\n            .put(SAVANNA, new BiomeSettings(FireflySpawnRate.LOW, 0xBFFF00, GlowwormSpawnRate.LOW, PlanktonSpawnRate.DISABLE))\n            .put(JUNGLE, new BiomeSettings(FireflySpawnRate.LOW, 0x00FF21, GlowwormSpawnRate.LOW, PlanktonSpawnRate.DISABLE))\n            .put(BEACH, new BiomeSettings(FireflySpawnRate.DISABLE, 0xBFFF00, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.DISABLE))\n            .put(SWAMP, new BiomeSettings(FireflySpawnRate.HIGH, 0x009F00, GlowwormSpawnRate.HIGH, PlanktonSpawnRate.DISABLE))\n            .put(RIVER, new BiomeSettings(FireflySpawnRate.MEDIUM, 0xBFFF00, GlowwormSpawnRate.MEDIUM, PlanktonSpawnRate.DISABLE))\n            .put(OCEAN, new BiomeSettings(FireflySpawnRate.DISABLE, 0xBFFF00, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.HIGH))\n            .put(WARM_OCEAN, new BiomeSettings(FireflySpawnRate.DISABLE, 0xBFFF00, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.HIGH))\n            .put(BADLANDS, new BiomeSettings(FireflySpawnRate.DISABLE, 0xBFFF00, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.DISABLE))\n            .put(MOUNTAINS, new BiomeSettings(FireflySpawnRate.DISABLE, 0xBFFF00, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.DISABLE))\n            .put(DRIPSTONE_CAVES, new BiomeSettings(FireflySpawnRate.DISABLE, 0xBFFF00, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.DISABLE))\n            .put(LUSH_CAVES, new BiomeSettings(FireflySpawnRate.DISABLE, 0xEB8931, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.DISABLE))\n            .put(MUSHROOM, new BiomeSettings(FireflySpawnRate.DISABLE, 0xFF7F8F, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.DISABLE))\n            .put(THE_VOID, new BiomeSettings(FireflySpawnRate.DISABLE, 0x8000FF, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.DISABLE))\n            // Nether Biomes\n            .put(NETHER_WASTES, new BiomeSettings(FireflySpawnRate.DISABLE, 0xFF8000, null, null))\n            .put(CRIMSON_FOREST, new BiomeSettings(FireflySpawnRate.DISABLE, 0xFF8000, null, null))\n            .put(WARPED_FOREST, new BiomeSettings(FireflySpawnRate.DISABLE, 0x008080, null, null))\n            .put(SOUL_SAND_VALLEY, new BiomeSettings(FireflySpawnRate.DISABLE, 0x00FFFF, null, null))\n            .put(BASALT_DELTAS, new BiomeSettings(FireflySpawnRate.DISABLE, 0xFF8000, null, null))\n            // End Biomes\n            .put(THE_END, new BiomeSettings(FireflySpawnRate.DISABLE, 0x8000FF, null, null))\n            .put(SMALL_END_ISLANDS, new BiomeSettings(FireflySpawnRate.DISABLE, 0x8000FF, null, null))\n            .put(END_MIDLANDS, new BiomeSettings(FireflySpawnRate.DISABLE, 0x8000FF, null, null))\n            .put(END_HIGHLANDS, new BiomeSettings(FireflySpawnRate.DISABLE, 0x8000FF, null, null))\n            .put(END_BARRENS, new BiomeSettings(FireflySpawnRate.DISABLE, 0x8000FF, null, null))\n            // Other Biomes\n            .put(OTHER, new BiomeSettings(FireflySpawnRate.DISABLE, 0xBFFF00, GlowwormSpawnRate.DISABLE, PlanktonSpawnRate.DISABLE))\n            .build();\n\n    public static final ImmutableMap<String, AuraSettings> AURA_SETTINGS = ImmutableMap.<String, AuraSettings>builder()\n            .put(\"twilight\", new AuraSettings(0.1f, 1))\n            .put(\"ghostly\", new AuraSettings(0.1f, 1))\n            .put(\"chorus\", new AuraSettings(0.1f, 1))\n            .put(\"autumn_leaves\", new AuraSettings(0.3f, 1))\n            .put(\"sculk_tendrils\", new AuraSettings(0.1f, 1))\n            .put(\"shadowbringer_soul\", new AuraSettings(0.1f, 1))\n            .put(\"goldenrod\", new AuraSettings(0.4f, 1))\n            .put(\"confetti\", new AuraSettings(0.1f, 1))\n            .put(\"prismatic_confetti\", new AuraSettings(0.1f, 1))\n            .put(\"prismarine\", new AuraSettings(0.1f, 1))\n            .build();\n\n    private DefaultConfig() {\n        throw new UnsupportedOperationException();\n    }\n\n    public static BiomeSettings getBiomeSettings(BiomeCategory biome) {\n        return BIOME_SETTINGS.get(biome);\n    }\n\n    public static AuraSettings getAuraSettings(String aura) {\n        return AURA_SETTINGS.get(aura);\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/data/AuraData.java",
    "content": "package ladysnake.illuminations.client.data;\n\nimport net.minecraft.particle.DefaultParticleType;\n\nimport java.util.Random;\nimport java.util.function.Supplier;\n\npublic record AuraData(DefaultParticleType particle, Supplier<AuraSettings> auraSettingsSupplier) {\n\n    public boolean shouldAddParticle(Random random, int age) {\n        AuraSettings settings = auraSettingsSupplier().get();\n        if (settings.spawnRate() == 0) return false;\n        float rand = random.nextFloat();\n        return rand <= settings.spawnRate() && (age % settings.delay() == 0);\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/data/AuraSettings.java",
    "content": "package ladysnake.illuminations.client.data;\n\npublic record AuraSettings(float spawnRate, int delay) {\n\n    public AuraSettings withSpawnRate(float value) {\n        return new AuraSettings(value, delay);\n    }\n\n    public AuraSettings withDelay(int value) {\n        return new AuraSettings(spawnRate, value);\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/data/BiomeSettings.java",
    "content": "package ladysnake.illuminations.client.data;\n\nimport ladysnake.illuminations.client.enums.FireflySpawnRate;\nimport ladysnake.illuminations.client.enums.GlowwormSpawnRate;\nimport ladysnake.illuminations.client.enums.PlanktonSpawnRate;\n\npublic record BiomeSettings(FireflySpawnRate fireflySpawnRate,\n                            int fireflyColor,\n                            GlowwormSpawnRate glowwormSpawnRate,\n                            PlanktonSpawnRate planktonSpawnRate) {\n\n    public BiomeSettings withFireflySpawnRate(FireflySpawnRate value) {\n        return new BiomeSettings(value, fireflyColor, glowwormSpawnRate, planktonSpawnRate);\n    }\n\n    public BiomeSettings withFireflyColor(int value) {\n        return new BiomeSettings(fireflySpawnRate, value, glowwormSpawnRate, planktonSpawnRate);\n    }\n\n    public BiomeSettings withGlowwormSpawnRate(GlowwormSpawnRate value) {\n        return new BiomeSettings(fireflySpawnRate, fireflyColor, value, planktonSpawnRate);\n    }\n\n    public BiomeSettings withPlanktonSpawnRate(PlanktonSpawnRate value) {\n        return new BiomeSettings(fireflySpawnRate, fireflyColor, glowwormSpawnRate, value);\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/data/IlluminationData.java",
    "content": "package ladysnake.illuminations.client.data;\n\nimport ladysnake.illuminations.client.config.Config;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.world.World;\n\nimport java.util.Random;\nimport java.util.function.BiPredicate;\nimport java.util.function.Supplier;\n\npublic record IlluminationData(DefaultParticleType illuminationType,\n                               BiPredicate<World, BlockPos> locationSpawnPredicate,\n                               Supplier<Float> chanceSupplier) {\n\n    public boolean shouldAddParticle(Random random) {\n        float chance = chanceSupplier.get();\n        if (chance <= 0f) return false;\n        float density = Config.getDensity() / 100f;\n        return random.nextFloat() <= chance * density;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/data/OverheadData.java",
    "content": "package ladysnake.illuminations.client.data;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.render.entity.model.hat.OverheadModel;\nimport net.minecraft.client.render.entity.EntityRendererFactory;\nimport net.minecraft.util.Identifier;\n\nimport java.util.function.Function;\n\npublic class OverheadData {\n    private final Function<EntityRendererFactory.Context, OverheadModel> model;\n    private final Identifier texture;\n\n    public OverheadData(Function<EntityRendererFactory.Context, OverheadModel> model, String textureName) {\n        this.model = model;\n        this.texture = new Identifier(Illuminations.MODID, \"textures/entity/\" + textureName + \".png\");\n    }\n\n    public OverheadModel createModel(EntityRendererFactory.Context ctx) {\n        return model.apply(ctx);\n    }\n\n    public Identifier getTexture() {\n        return texture;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/data/PlayerCosmeticData.java",
    "content": "package ladysnake.illuminations.client.data;\n\nimport com.google.gson.JsonElement;\n\npublic class PlayerCosmeticData {\n    private final int colorRed;\n    private final int colorGreen;\n    private final int colorBlue;\n    private String aura;\n    private String overhead;\n    private boolean drip;\n    private String pet;\n\n    public PlayerCosmeticData(JsonElement aura, JsonElement color, JsonElement overhead, JsonElement drip, JsonElement pet) {\n        if (aura.isJsonNull()) {\n            this.aura = null;\n        } else {\n            this.aura = aura.getAsString();\n        }\n        if (color.isJsonNull()) {\n            this.colorRed = 0;\n            this.colorGreen = 0;\n            this.colorBlue = 0;\n        } else {\n            this.colorRed = Integer.valueOf(color.getAsString().substring(1, 3), 16);\n            this.colorGreen = Integer.valueOf(color.getAsString().substring(3, 5), 16);\n            this.colorBlue = Integer.valueOf(color.getAsString().substring(5), 16);\n        }\n        if (overhead.isJsonNull()) {\n            this.overhead = null;\n        } else {\n            this.overhead = overhead.getAsString();\n        }\n        if (pet.isJsonNull()) {\n            this.pet = null;\n        } else {\n            this.pet = pet.getAsString();\n        }\n        if (drip.isJsonNull()) {\n            this.drip = false;\n        } else {\n            this.drip = drip.getAsBoolean();\n        }\n    }\n\n    public String getAura() {\n        return aura;\n    }\n\n    public int getColorRed() {\n        return colorRed;\n    }\n\n    public int getColorBlue() {\n        return colorBlue;\n    }\n\n    public int getColorGreen() {\n        return colorGreen;\n    }\n\n    public boolean isDrip() {\n        return drip;\n    }\n\n    public String getOverhead() {\n        return overhead;\n    }\n\n    public String getPet() {\n        return pet;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/enums/BiomeCategory.java",
    "content": "package ladysnake.illuminations.client.enums;\n\nimport net.minecraft.util.Identifier;\nimport net.minecraft.world.biome.Biome;\n\nimport java.util.*;\n\npublic enum BiomeCategory {\n    FOREST(\"minecraft:overworld\", Biome.Category.FOREST, \"minecraft:forest\", \"minecraft:wooded_hills\", \"minecraft:flower_forest\", \"minecraft:birch_forest\", \"minecraft:birch_forest_hills\", \"minecraft:tall_birch_forest\", \"minecraft:tall_birch_hills\", \"minecraft:dark_forest\", \"minecraft:dark_forest_hills\"),\n    TAIGA(\"minecraft:overworld\", Biome.Category.TAIGA, \"minecraft:taiga\", \"minecraft:taiga_hills\", \"minecraft:taiga_mountains\", \"minecraft:giant_tree_taiga\", \"minecraft:giant_tree_taiga_hills\", \"minecraft:giant_spruce_taiga\", \"minecraft:giant_spruce_taiga_hills\"),\n    SNOWY(\"minecraft:overworld\", Biome.Category.ICY, \"minecraft:snowy_tundra\", \"minecraft:snowy_mountains\", \"minecraft:ice_spikes\", \"minecraft:snowy_taiga\", \"minecraft:snowy_taiga_hills\", \"minecraft:snowy_taiga_mountains\", \"minecraft:frozen_river\", \"minecraft:frozen_ocean\", \"minecraft:deep_frozen_ocean\"),\n    PLAINS(\"minecraft:overworld\", Biome.Category.PLAINS, \"minecraft:plains\", \"minecraft:sunflower_plains\"),\n    DESERT(\"minecraft:overworld\", Biome.Category.DESERT, \"minecraft:desert\", \"minecraft:desert_hills\", \"minecraft:desert_lakes\"),\n    SAVANNA(\"minecraft:overworld\", Biome.Category.SAVANNA, \"minecraft:savanna\", \"minecraft:savanna_plateau\", \"minecraft:shattered_savanna\", \"minecraft:shattered_savanna_plateau\"),\n    JUNGLE(\"minecraft:overworld\", Biome.Category.JUNGLE, \"minecraft:jungle\", \"minecraft:jungle_hills\", \"minecraft:modified_jungle\", \"minecraft:jungle_edge\", \"minecraft:modified_jungle_edge\", \"minecraft:bamboo_jungle\", \"minecraft:bamboo_jungle_hills\"),\n    BEACH(\"minecraft:overworld\", Biome.Category.BEACH, \"minecraft:beach\", \"minecraft:stone_shore\"),\n    SWAMP(\"minecraft:overworld\", Biome.Category.SWAMP, \"minecraft:swamp\", \"minecraft:swamp_hills\"),\n    RIVER(\"minecraft:overworld\", Biome.Category.RIVER, \"minecraft:river\"),\n    OCEAN(\"minecraft:overworld\", Biome.Category.OCEAN, \"minecraft:ocean\", \"minecraft:deep_ocean\", \"minecraft:cold_ocean\", \"minecraft:deep_cold_ocean\"),\n    WARM_OCEAN(\"minecraft:overworld\", null, \"minecraft:lukewarm_ocean\", \"minecraft:deep_lukewarm_ocean\", \"minecraft:warm_ocean\", \"minecraft:deep_warm_ocean\"),\n    BADLANDS(\"minecraft:overworld\", Biome.Category.MESA, \"minecraft:badlands\", \"minecraft:badlands_plateau\", \"minecraft:modified_badlands_plateau\", \"minecraft:wooded_badlands_plateau\", \"minecraft:modified_wooded_badlands_plateau\", \"minecraft:eroded_badlands\"),\n    MOUNTAINS(\"minecraft:overworld\", Biome.Category.EXTREME_HILLS, \"minecraft:mountains\", \"minecraft:wooded_mountains\", \"minecraft:gravelly_mountains\", \"minecraft:modified_gravelly_mountains\", \"minecraft:mountain_edge\"),\n    DRIPSTONE_CAVES(\"minecraft:overworld\", Biome.Category.UNDERGROUND, \"minecraft:dripstone_caves\"),\n    LUSH_CAVES(\"minecraft:overworld\", null, \"minecraft:lush_caves\"),\n    MUSHROOM(\"minecraft:overworld\", Biome.Category.MUSHROOM, \"minecraft:mushroom_fields\", \"minecraft:mushroom_field_shore\"),\n    THE_VOID(\"minecraft:overworld\", null, \"minecraft:the_void\"),\n    // Nether Biomes\n    NETHER_WASTES(\"minecraft:the_nether\", Biome.Category.NETHER, \"minecraft:nether_wastes\"),\n    CRIMSON_FOREST(\"minecraft:the_nether\", null, \"minecraft:crimson_forest\"),\n    WARPED_FOREST(\"minecraft:the_nether\", null, \"minecraft:warped_forest\"),\n    SOUL_SAND_VALLEY(\"minecraft:the_nether\", null, \"minecraft:soul_sand_valley\"),\n    BASALT_DELTAS(\"minecraft:the_nether\", null, \"minecraft:basalt_deltas\"),\n    // End Biomes\n    THE_END(\"minecraft:the_end\", Biome.Category.THEEND, \"minecraft:the_end\"),\n    SMALL_END_ISLANDS(\"minecraft:the_end\", null, \"minecraft:small_end_islands\"),\n    END_MIDLANDS(\"minecraft:the_end\", null, \"minecraft:end_midlands\"),\n    END_HIGHLANDS(\"minecraft:the_end\", null, \"minecraft:end_highlands\"),\n    END_BARRENS(\"minecraft:the_end\", null, \"minecraft:end_barrens\"),\n    // Other Biomes\n    OTHER(\"minecraft:other\", Biome.Category.NONE);\n\n    private static final Set<Identifier> dimensions = Collections.unmodifiableSet(initializeDimensions());\n    private static final Map<Identifier, BiomeCategory> lookUp = Collections.unmodifiableMap(initializeLookUp());\n    private static final Map<Biome.Category, BiomeCategory> fallbackLookUp = Collections.unmodifiableMap(initializeFallbackLookUp());\n    private final Identifier dimension;\n    private final Biome.Category fallback;\n    private final Identifier[] biomes;\n\n    BiomeCategory(String dimension, Biome.Category fallback, String... biomes) {\n        this.dimension = new Identifier(dimension);\n        this.fallback = fallback;\n        this.biomes = new Identifier[biomes.length];\n        for (int i = 0; i < biomes.length; i++)\n            this.biomes[i] = new Identifier(biomes[i]);\n    }\n\n    public static Set<Identifier> getDimensions() {\n        return dimensions;\n    }\n\n    private static Set<Identifier> initializeDimensions() {\n        Set<Identifier> dimensions = new LinkedHashSet<>();\n        for (BiomeCategory category : BiomeCategory.values()) {\n            dimensions.add(category.dimension);\n        }\n        return dimensions;\n    }\n\n    private static Map<Identifier, BiomeCategory> initializeLookUp() {\n        Map<Identifier, BiomeCategory> lookUp = new HashMap<>();\n        for (BiomeCategory category : BiomeCategory.values()) {\n            for (Identifier biome : category.biomes) {\n                lookUp.put(biome, category);\n            }\n        }\n        return lookUp;\n    }\n\n    private static Map<Biome.Category, BiomeCategory> initializeFallbackLookUp() {\n        Map<Biome.Category, BiomeCategory> lookUp = new HashMap<>();\n        for (BiomeCategory category : BiomeCategory.values()) {\n            if (category.fallback != null) {\n                lookUp.put(category.fallback, category);\n            }\n        }\n        return lookUp;\n    }\n\n    public static BiomeCategory find(Identifier biome, Biome.Category biomeCategory) {\n        return lookUp.containsKey(biome)\n                ? lookUp.get(biome)\n                : fallbackLookUp.getOrDefault(biomeCategory, OTHER);\n    }\n\n    public Identifier getDimension() {\n        return dimension;\n    }\n\n    public Identifier[] getBiomes() {\n        return biomes;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/enums/EyesInTheDarkSpawnRate.java",
    "content": "package ladysnake.illuminations.client.enums;\n\npublic enum EyesInTheDarkSpawnRate {\n    LOW(0.00002f), MEDIUM(0.00010f), HIGH(0.00025f);\n\n    public final float spawnRate;\n\n    EyesInTheDarkSpawnRate(float spawnRate) {\n        this.spawnRate = spawnRate;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/enums/FireflySpawnRate.java",
    "content": "package ladysnake.illuminations.client.enums;\n\npublic enum FireflySpawnRate {\n    DISABLE(0f),\n    LOW(0.00002f),\n    MEDIUM(0.00010f),\n    HIGH(0.00025f);\n\n    public final float spawnRate;\n\n    FireflySpawnRate(float spawnRate) {\n        this.spawnRate = spawnRate;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/enums/GlowwormSpawnRate.java",
    "content": "package ladysnake.illuminations.client.enums;\n\npublic enum GlowwormSpawnRate {\n    DISABLE(0f), LOW(0.00004f), MEDIUM(0.00020f), HIGH(0.00050f);\n\n    public final float spawnRate;\n\n    GlowwormSpawnRate(float spawnRate) {\n        this.spawnRate = spawnRate;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/enums/HalloweenFeatures.java",
    "content": "package ladysnake.illuminations.client.enums;\n\npublic enum HalloweenFeatures {\n    ENABLE, DISABLE, ALWAYS\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/enums/PlanktonSpawnRate.java",
    "content": "package ladysnake.illuminations.client.enums;\n\npublic enum PlanktonSpawnRate {\n    DISABLE(0f), LOW(0.00020f), MEDIUM(0.00100f), HIGH(0.00250f);\n\n    public final float spawnRate;\n\n    PlanktonSpawnRate(float spawnRate) {\n        this.spawnRate = spawnRate;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/enums/WillOWispsSpawnRate.java",
    "content": "package ladysnake.illuminations.client.enums;\n\npublic enum WillOWispsSpawnRate {\n    DISABLE(0f), LOW(0.00002f), MEDIUM(0.00010f), HIGH(0.00025f);\n\n    public final float spawnRate;\n\n    WillOWispsSpawnRate(float spawnRate) {\n        this.spawnRate = spawnRate;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/gui/AutoUpdateGreetingScreen.java",
    "content": "package ladysnake.illuminations.client.gui;\n\nimport ladysnake.illuminations.client.config.Config;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.gui.screen.Screen;\nimport net.minecraft.client.gui.widget.ButtonWidget;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.text.TranslatableText;\nimport net.minecraft.util.Formatting;\n\n@Environment(EnvType.CLIENT)\npublic class AutoUpdateGreetingScreen extends Screen {\n    private final Screen parent;\n\n    public AutoUpdateGreetingScreen(Screen parent) {\n        super(new TranslatableText(\"title.illuminations.autoUpdater\"));\n        this.parent = parent;\n    }\n\n    protected static int row(int index) {\n        return 40 + index * 13;\n    }\n\n    protected void init() {\n        this.addDrawableChild(new ButtonWidget(this.width / 2 - 125, this.height / 6 + 168, 100, 20, new TranslatableText(\"option.illuminations.disable\").formatted(Formatting.RED), (button) -> {\n            Config.setAutoUpdate(false);\n            Config.save();\n            this.client.setScreen(this.parent);\n        }));\n\n        this.addDrawableChild(new ButtonWidget(this.width / 2 + 25, this.height / 6 + 168, 100, 20, new TranslatableText(\"option.illuminations.enable\").formatted(Formatting.GREEN), (button) -> {\n            Config.setAutoUpdate(true);\n            Config.save();\n            this.client.setScreen(this.parent);\n        }));\n    }\n\n    public void removed() {\n        Config.setDisplayGreetingScreen(false);\n        Config.save();\n    }\n\n    public void render(MatrixStack matrices, int mouseX, int mouseY, float delta) {\n        this.renderBackground(matrices);\n        drawCenteredText(matrices, this.textRenderer, this.title, this.width / 2, row(1), 16777215);\n        for (int i = 1; i <= 8; i++) {\n            drawCenteredText(matrices, this.textRenderer, new TranslatableText(\"description.illuminations.autoUpdater\" + i), this.width / 2, row(i + 2), 16777215);\n        }\n        super.render(matrices, mouseX, mouseY, delta);\n    }\n\n    @Override\n    public void onClose() {\n        super.onClose();\n        this.client.setScreen(this.parent);\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/gui/DonateToast.java",
    "content": "package ladysnake.illuminations.client.gui;\n\nimport com.mojang.blaze3d.systems.RenderSystem;\nimport ladysnake.illuminations.client.Illuminations;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.gui.screen.TitleScreen;\nimport net.minecraft.client.render.GameRenderer;\nimport net.minecraft.client.toast.Toast;\nimport net.minecraft.client.toast.ToastManager;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.text.LiteralText;\nimport net.minecraft.text.Style;\nimport net.minecraft.util.Formatting;\nimport net.minecraft.util.Identifier;\n\npublic class DonateToast implements Toast {\n    private static final Identifier TEXTURE = new Identifier(Illuminations.MODID, \"textures/gui/donate_toast.png\");\n\n    public static void add() {\n        ToastManager toastManager = MinecraftClient.getInstance().getToastManager();\n        DonateToast toast = toastManager.getToast(DonateToast.class, Toast.TYPE);\n        if (toast == null) {\n            toastManager.add(new DonateToast());\n        }\n    }\n\n    @Override\n    public Visibility draw(MatrixStack matrices, ToastManager manager, long startTime) {\n        RenderSystem.setShader(GameRenderer::getPositionTexShader);\n        RenderSystem.setShaderTexture(0, TEXTURE);\n        RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F);\n        manager.drawTexture(matrices, 0, 0, 0, 0, getWidth(), getHeight());\n        manager.getClient().textRenderer.draw(matrices, new LiteralText(\"Wish to support Illuminations?\"), 34, 7, -256);\n        manager.getClient().textRenderer.draw(matrices, new LiteralText(\"Get cool cosmetics for only 5€!\"), 34, 18, -1);\n        manager.getClient().textRenderer.draw(matrices, new LiteralText(\"More info: illuminations.uuid.gg/donators\").setStyle(Style.EMPTY.withColor(Formatting.GREEN)), 34, 29, -1);\n        return MinecraftClient.getInstance().currentScreen instanceof TitleScreen ? Visibility.SHOW : Visibility.HIDE;\n    }\n\n    @Override\n    public Object getType() {\n        return TYPE;\n    }\n\n    @Override\n    public int getWidth() {\n        return 240;\n    }\n\n    @Override\n    public int getHeight() {\n        return 43;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/gui/UpdateToast.java",
    "content": "package ladysnake.illuminations.client.gui;\n\nimport com.mojang.blaze3d.systems.RenderSystem;\nimport ladysnake.illuminations.client.Illuminations;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.gui.screen.TitleScreen;\nimport net.minecraft.client.render.GameRenderer;\nimport net.minecraft.client.toast.Toast;\nimport net.minecraft.client.toast.ToastManager;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.text.LiteralText;\nimport net.minecraft.util.Identifier;\n\npublic class UpdateToast implements Toast {\n    private static final Identifier TEXTURE = new Identifier(Illuminations.MODID, \"textures/gui/update_toast.png\");\n\n    public static void add() {\n        ToastManager toastManager = MinecraftClient.getInstance().getToastManager();\n        UpdateToast toast = toastManager.getToast(UpdateToast.class, Toast.TYPE);\n        if (toast == null) {\n            toastManager.add(new UpdateToast());\n        }\n    }\n\n    @Override\n    public Visibility draw(MatrixStack matrices, ToastManager manager, long startTime) {\n        RenderSystem.setShader(GameRenderer::getPositionTexShader);\n        RenderSystem.setShaderTexture(0, TEXTURE);\n        RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F);\n        manager.drawTexture(matrices, 0, 0, 0, 0, getWidth(), getHeight());\n        manager.getClient().textRenderer.draw(matrices, new LiteralText(\"Illuminations update available!\"), 34, 7, -256);\n        manager.getClient().textRenderer.draw(matrices, new LiteralText(\"Illuminations automatically downloaded it\"), 34, 18, -1);\n        manager.getClient().textRenderer.draw(matrices, new LiteralText(\"Restart your game to finish installing\"), 34, 29, -1);\n        return MinecraftClient.getInstance().currentScreen instanceof TitleScreen ? Visibility.SHOW : Visibility.HIDE;\n    }\n\n    @Override\n    public Object getType() {\n        return TYPE;\n    }\n\n    @Override\n    public int getWidth() {\n        return 240;\n    }\n\n    @Override\n    public int getHeight() {\n        return 43;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/ChorusPetalParticle.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.tag.FluidTags;\nimport net.minecraft.util.math.*;\n\nimport java.util.Random;\n\npublic class ChorusPetalParticle extends SpriteBillboardParticle {\n    private static final Random RANDOM = new Random();\n    protected final float rotationFactor;\n    private final int variant = RANDOM.nextInt(3);\n    private final SpriteProvider spriteProvider;\n\n    public ChorusPetalParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ);\n        this.spriteProvider = spriteProvider;\n\n        this.scale *= 1f + RANDOM.nextFloat();\n        this.maxAge = 30 + random.nextInt(60);\n        this.collidesWithWorld = true;\n        this.setSprite(spriteProvider.getSprite(variant, 2));\n\n        if (velocityY == 0f && velocityX == 0f && velocityZ == 0f) {\n            this.colorAlpha = 0f;\n        }\n\n        this.velocityY = velocityY - 0.15D - random.nextFloat() / 10;\n        this.velocityX = velocityX - 0.05D - random.nextFloat() / 10;\n        this.velocityZ = velocityZ - 0.05D - random.nextFloat() / 10;\n\n        this.rotationFactor = ((float) Math.random() - 0.5F) * 0.01F;\n        this.angle = random.nextFloat() * 360f;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        this.colorRed = Math.max(this.colorGreen, 0.3f);\n\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getDegreesQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    public void tick() {\n        if (this.age++ < this.maxAge) {\n            this.colorAlpha = Math.min(1f, this.colorAlpha + 0.1f);\n        }\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        this.move(this.velocityX, this.velocityY, this.velocityZ);\n        this.velocityX *= 0.99D;\n        this.velocityY *= 0.99D;\n        this.velocityZ *= 0.99D;\n\n        this.colorRed *= 0.99;\n        this.colorGreen *= 0.98;\n\n        if (this.age >= this.maxAge) {\n//            this.colorRed *= 0.9;\n//            this.colorGreen *= 0.8;\n\n            this.colorAlpha = Math.max(0f, this.colorAlpha - 0.1f);\n\n            if (this.colorAlpha <= 0f) {\n                this.markDead();\n            }\n        }\n\n        this.prevAngle = this.angle;\n        if (this.onGround || this.world.getFluidState(new BlockPos(this.x, this.y, this.z)).isIn(FluidTags.WATER)) {\n            this.velocityX = 0;\n            this.velocityY = 0;\n            this.velocityZ = 0;\n        }\n\n        if (this.velocityY != 0) {\n            this.angle += Math.PI * Math.sin(rotationFactor * this.age) / 2;\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new ChorusPetalParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/EmberParticle.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.block.Block;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.block.CampfireBlock;\nimport net.minecraft.block.FireBlock;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.math.*;\n\npublic class EmberParticle extends SpriteBillboardParticle {\n    protected static final float BLINK_STEP = 0.2f;\n    private final SpriteProvider spriteProvider;\n    protected float nextAlphaGoal;\n    protected double xTarget;\n    protected double yTarget;\n    protected double zTarget;\n    protected int targetChangeCooldown = 0;\n\n    public EmberParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ);\n        this.spriteProvider = spriteProvider;\n\n        this.maxAge = 100;\n        this.collidesWithWorld = true;\n        this.setSpriteForAge(spriteProvider);\n        this.colorAlpha = 0f;\n        this.nextAlphaGoal = 1f;\n\n        this.scale = 0.01f;\n\n        this.colorRed = 1.0f;\n        this.colorGreen = 106f / 255f;\n        this.colorBlue = 0f / 255f;\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getRadialQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n        float a = Math.min(1f, Math.max(0f, this.colorAlpha));\n\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(colorRed, colorGreen, colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(colorRed, colorGreen, colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(colorRed, colorGreen, colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(colorRed, colorGreen, colorBlue, a).light(l).next();\n    }\n\n    public void tick() {\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        for (int i = 0; i < 5; i++) {\n            Block blockUnder = world.getBlockState(new BlockPos(this.x, this.y - i, this.z)).getBlock();\n            if (blockUnder instanceof CampfireBlock || blockUnder instanceof FireBlock) {\n                this.velocityY += 0.01f / (i + 1);\n                break;\n            } else {\n                this.velocityY = Math.max(this.velocityY - 0.001f, 0.05f);\n            }\n        }\n\n        if (this.age++ >= this.maxAge) {\n            if (this.colorAlpha <= 0f) {\n                this.markDead();\n            } else {\n                this.colorAlpha -= 0.1f;\n            }\n        } else {\n            this.colorAlpha += 0.1f;\n        }\n\n        if (nextAlphaGoal > colorAlpha) {\n            colorAlpha = Math.min(colorAlpha + BLINK_STEP, 1f);\n        } else if (nextAlphaGoal < colorAlpha) {\n            colorAlpha = Math.max(colorAlpha - BLINK_STEP, 0f);\n        }\n\n        this.targetChangeCooldown -= (new Vec3d(x, y, z).squaredDistanceTo(prevPosX, prevPosY, prevPosZ) < 0.0125) ? 10 : 1;\n\n        if ((this.world.getTime() % 20 == 0) && ((xTarget == 0 && yTarget == 0 && zTarget == 0) || new Vec3d(x, y, z).squaredDistanceTo(xTarget, yTarget, zTarget) < 9 || targetChangeCooldown <= 0)) {\n            selectBlockTarget();\n        }\n\n        Vec3d targetVector = new Vec3d(this.xTarget - this.x, this.yTarget - this.y, this.zTarget - this.z);\n        double length = targetVector.length();\n        targetVector = targetVector.multiply(0.1 / length);\n\n\n        velocityX = (0.3) * velocityX + (0.1) * targetVector.x * 3;\n        velocityZ = (0.3) * velocityZ + (0.1) * targetVector.z * 3;\n\n        if (!new BlockPos(x, y, z).equals(this.getTargetPosition())) {\n            this.move(velocityX, velocityY, velocityZ);\n        }\n    }\n\n    private void selectBlockTarget() {\n        // Behaviour\n        double groundLevel = 0;\n        for (int i = 0; i < 20; i++) {\n            BlockState checkedBlock = this.world.getBlockState(new BlockPos(this.x, this.y - i, this.z));\n            if (!checkedBlock.getBlock().canMobSpawnInside()) {\n                groundLevel = this.y - i;\n            }\n            if (groundLevel != 0) break;\n        }\n\n        this.xTarget = this.x + random.nextGaussian();\n        this.yTarget = this.y + random.nextGaussian() * 5;\n        this.zTarget = this.z + random.nextGaussian();\n\n        targetChangeCooldown = random.nextInt() % 10;\n    }\n\n    public BlockPos getTargetPosition() {\n        return new BlockPos(this.xTarget, this.yTarget, this.zTarget);\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new EmberParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/EyesParticle.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport ladysnake.illuminations.client.enums.HalloweenFeatures;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.entity.LivingEntity;\nimport net.minecraft.entity.effect.StatusEffects;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.math.*;\n\nimport java.util.Random;\nimport java.util.concurrent.ThreadLocalRandom;\n\npublic class EyesParticle extends SpriteBillboardParticle {\n    private static final Random RANDOM = new Random();\n    private final SpriteProvider spriteProvider;\n    protected float alpha = 1f;\n\n    public EyesParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ);\n        this.spriteProvider = spriteProvider;\n        this.setSprite(spriteProvider.getSprite(0, 3));\n\n        this.scale *= 1f + new Random().nextFloat();\n        this.maxAge = ThreadLocalRandom.current().nextInt(400, 1201); // live between   seconds and one minute\n        this.collidesWithWorld = true;\n\n        this.colorRed = 1f;\n        this.colorGreen = 1f;\n        this.colorBlue = 1f;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        // disable if night vision or config is set to disabled\n        if (camera.getFocusedEntity() instanceof LivingEntity && ((LivingEntity) camera.getFocusedEntity()).hasStatusEffect(StatusEffects.NIGHT_VISION) || Config.getHalloweenFeatures() == HalloweenFeatures.DISABLE) {\n            this.markDead();\n        }\n\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getRadialQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n        float a = Math.min(1f, Math.max(0f, this.colorAlpha));\n\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    public void tick() {\n        if (this.age++ < this.maxAge) {\n            if (this.age < 1) {\n                this.setSprite(spriteProvider.getSprite(0, 3));\n            } else if (this.age < 2) {\n                this.setSprite(spriteProvider.getSprite(1, 3));\n            } else if (this.age < 3) {\n                this.setSprite(spriteProvider.getSprite(2, 3));\n            } else {\n                this.setSprite(spriteProvider.getSprite(3, 3));\n            }\n        } else {\n            if (this.age < this.maxAge + 1) {\n                this.setSprite(spriteProvider.getSprite(2, 3));\n            } else if (this.age < this.maxAge + 2) {\n                this.setSprite(spriteProvider.getSprite(1, 3));\n            } else if (this.age < this.maxAge + 3) {\n                this.setSprite(spriteProvider.getSprite(0, 3));\n            } else {\n                this.markDead();\n            }\n        }\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        // disappear if light or if player gets too close\n        if (this.maxAge > this.age && (world.getLightLevel(new BlockPos(x, y, z)) > 0 || world.getClosestPlayer(x, y, z, Illuminations.EYES_VANISHING_DISTANCE, false) != null)) {\n            this.maxAge = this.age;\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new EyesParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/FireflyParticle.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport ladysnake.illuminations.client.enums.BiomeCategory;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.*;\nimport net.minecraft.util.registry.Registry;\nimport net.minecraft.world.LightType;\nimport net.minecraft.world.biome.Biome;\n\nimport java.awt.*;\nimport java.util.HashMap;\nimport java.util.concurrent.ThreadLocalRandom;\n\npublic class FireflyParticle extends SpriteBillboardParticle {\n    protected static final float BLINK_STEP = 0.05f;\n    private final SpriteProvider spriteProvider;\n    private final boolean isAttractedByLight = true;\n    protected float nextAlphaGoal = 0f;\n    protected double xTarget;\n    protected double yTarget;\n    protected double zTarget;\n    protected int targetChangeCooldown = 0;\n    protected int maxHeight;\n    private BlockPos lightTarget;\n\n    public FireflyParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ);\n        this.spriteProvider = spriteProvider;\n\n        this.scale *= 0.25f + random.nextFloat() * 0.50f;\n        this.maxAge = ThreadLocalRandom.current().nextInt(400, 1201); // live between 20 seconds and one minute\n        this.maxHeight = 4;\n        this.collidesWithWorld = true;\n        this.setSpriteForAge(spriteProvider);\n        this.colorAlpha = 0f;\n\n        Color c;\n        if (Config.getFireflyRainbow()) {\n            c = Color.getHSBColor(random.nextFloat(), 1f, 1f);\n        } else {\n            // Get color for current biome\n            Biome b = world.getBiome(new BlockPos(x, y, z));\n            Identifier biome = world.getRegistryManager().get(Registry.BIOME_KEY).getId(b);\n            BiomeCategory biomeCategory = BiomeCategory.find(biome, b.getCategory());\n            int rgb = Config.getBiomeSettings(biomeCategory).fireflyColor();\n            float[] hsb = Color.RGBtoHSB(rgb >> 16 & 0xFF, rgb >> 8 & 0xFF, rgb & 0xFF, null);\n            // Shift hue by random ±30 deg angle\n            hsb[0] += (random.nextFloat() - 0.5f) * 30 / 360f;\n            // Convert back to rgb\n            c = Color.getHSBColor(hsb[0], hsb[1], hsb[2]);\n        }\n\n        this.colorRed = c.getRed() / 255f;\n        this.colorGreen = c.getGreen() / 255f;\n        this.colorBlue = c.getBlue() / 255f;\n\n        /*if (LocalDate.now().getMonth() == Month.OCTOBER) {\n            this.colorRed = 1f;\n            this.colorGreen = 0.25f + new Random().nextFloat() * 0.25f;\n        } else {\n            this.colorRed = 0.5f + new Random().nextFloat() * 0.5f;\n            this.colorGreen = 1f;\n        }\n        this.colorBlue = 0f;*/\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getRadialQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n        float a = Math.min(1f, Math.max(0f, this.colorAlpha));\n\n        // colored layer\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, minV + (maxV - minV) / 2.0F).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, minV + (maxV - minV) / 2.0F).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n\n        // white center\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n    }\n\n    public void tick() {\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        // fade and die on daytime or if old enough unless fireflies can spawn any time of day\n        if ((!Config.doesFireflySpawnAlways() && !world.getDimension().hasFixedTime() && !Illuminations.isNightTime(world)) || this.age++ >= this.maxAge) {\n            nextAlphaGoal = 0;\n            if (colorAlpha < 0f) {\n                this.markDead();\n            }\n        }\n\n        // blinking\n        if (colorAlpha > nextAlphaGoal - BLINK_STEP && colorAlpha < nextAlphaGoal + BLINK_STEP) {\n            nextAlphaGoal = random.nextFloat();\n        } else {\n            if (nextAlphaGoal > colorAlpha) {\n                colorAlpha = Math.min(colorAlpha + BLINK_STEP, 1f);\n            } else if (nextAlphaGoal < colorAlpha) {\n                colorAlpha = Math.max(colorAlpha - BLINK_STEP, 0f);\n            }\n        }\n\n        this.targetChangeCooldown -= (new Vec3d(x, y, z).squaredDistanceTo(prevPosX, prevPosY, prevPosZ) < 0.0125) ? 10 : 1;\n\n        if ((this.world.getTime() % 20 == 0) && ((xTarget == 0 && yTarget == 0 && zTarget == 0) || new Vec3d(x, y, z).squaredDistanceTo(xTarget, yTarget, zTarget) < 9 || targetChangeCooldown <= 0)) {\n            selectBlockTarget();\n        }\n\n        Vec3d targetVector = new Vec3d(this.xTarget - this.x, this.yTarget - this.y, this.zTarget - this.z);\n        double length = targetVector.length();\n        targetVector = targetVector.multiply(0.1 / length);\n\n\n        if (!this.world.getBlockState(new BlockPos(this.x, this.y - 0.1, this.z)).getBlock().canMobSpawnInside()) {\n            velocityX = (0.9) * velocityX + (0.1) * targetVector.x;\n            velocityY = 0.05;\n            velocityZ = (0.9) * velocityZ + (0.1) * targetVector.z;\n        } else {\n            velocityX = (0.9) * velocityX + (0.1) * targetVector.x;\n            velocityY = (0.9) * velocityY + (0.1) * targetVector.y;\n            velocityZ = (0.9) * velocityZ + (0.1) * targetVector.z;\n        }\n        if (!new BlockPos(x, y, z).equals(this.getTargetPosition())) {\n            this.move(velocityX, velocityY, velocityZ);\n        }\n    }\n\n    private void selectBlockTarget() {\n        if (this.lightTarget == null) {\n            // Behaviour\n            double groundLevel = 0;\n            for (int i = 0; i < 20; i++) {\n                BlockState checkedBlock = this.world.getBlockState(new BlockPos(this.x, this.y - i, this.z));\n                if (!checkedBlock.getBlock().canMobSpawnInside()) {\n                    groundLevel = this.y - i;\n                }\n                if (groundLevel != 0) break;\n            }\n\n            this.xTarget = this.x + random.nextGaussian() * 10;\n            this.yTarget = Math.min(Math.max(this.y + random.nextGaussian() * 2, groundLevel), groundLevel + maxHeight);\n            this.zTarget = this.z + random.nextGaussian() * 10;\n\n            BlockPos targetPos = new BlockPos(this.xTarget, this.yTarget, this.zTarget);\n            if (this.world.getBlockState(targetPos).isFullCube(world, targetPos)\n                    && this.world.getBlockState(targetPos).isSolidBlock(world, targetPos)) {\n                this.yTarget += 1;\n            }\n\n            if (this.isAttractedByLight) {\n                this.lightTarget = getMostLitBlockAround();\n            }\n        } else {\n            this.xTarget = this.lightTarget.getX() + random.nextGaussian();\n            this.yTarget = this.lightTarget.getY() + random.nextGaussian();\n            this.zTarget = this.lightTarget.getZ() + random.nextGaussian();\n\n            this.x = this.lightTarget.getX();\n            this.y = this.lightTarget.getY() + 1;\n            this.z = this.lightTarget.getZ();\n\n            if (this.world.getLightLevel(LightType.BLOCK, new BlockPos(x, y, z)) > 0 && !this.world.isDay()) {\n                this.lightTarget = getMostLitBlockAround();\n            } else {\n                this.lightTarget = null;\n            }\n        }\n\n        targetChangeCooldown = random.nextInt() % 100;\n    }\n\n    public BlockPos getTargetPosition() {\n        return new BlockPos(this.xTarget, this.yTarget + 0.5, this.zTarget);\n    }\n\n    private BlockPos getMostLitBlockAround() {\n        HashMap<BlockPos, Integer> randBlocks = new HashMap<>();\n\n        // get blocks adjacent to the fly\n        for (int x = -1; x <= 1; x++) {\n            for (int y = -1; y <= 1; y++) {\n                for (int z = -1; z <= 1; z++) {\n                    BlockPos bp = new BlockPos(this.x + x, this.y + y, this.z + z);\n                    randBlocks.put(bp, this.world.getLightLevel(LightType.BLOCK, bp));\n                }\n            }\n        }\n\n        // get other random blocks to find a different light source\n        for (int i = 0; i < 15; i++) {\n            BlockPos randBP = new BlockPos(this.x + random.nextGaussian() * 10, this.y + random.nextGaussian() * 10, this.z + random.nextGaussian() * 10);\n            randBlocks.put(randBP, this.world.getLightLevel(LightType.BLOCK, randBP));\n        }\n\n        return randBlocks.entrySet().stream().max((entry1, entry2) -> entry1.getValue() > entry2.getValue() ? 1 : -1).get().getKey();\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new FireflyParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/GlowwormParticle.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport ladysnake.illuminations.client.config.Config;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.math.*;\n\nimport java.util.Random;\nimport java.util.concurrent.ThreadLocalRandom;\n\npublic class GlowwormParticle extends SpriteBillboardParticle {\n    private static final float BLINK_STEP = 0.01f;\n    private static final Random RANDOM = new Random();\n    private final SpriteProvider spriteProvider;\n    protected float nextAlphaGoal = 0f;\n    boolean onCeiling;\n    private BlockPos lightTarget;\n    private double xTarget;\n    private double yTarget;\n    private double zTarget;\n    private int targetChangeCooldown = 0;\n    private boolean isAttractedByLight = false;\n    private int maxHeight;\n\n    private GlowwormParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ);\n        this.spriteProvider = spriteProvider;\n\n        this.scale *= 0.25f + new Random().nextFloat() * 0.50f;\n        this.maxAge = ThreadLocalRandom.current().nextInt(1200, 3601); // live between one and three minutes\n        this.maxHeight = 255;\n        this.collidesWithWorld = true;\n        this.setSpriteForAge(spriteProvider);\n\n        this.colorRed = 0f;\n        this.colorGreen = 0.75f + new Random().nextFloat() * 0.25f;\n        this.colorBlue = 1f;\n        this.colorAlpha = 0f;\n\n        this.velocityX = 0;\n        this.velocityY = 0;\n        this.velocityZ = 0;\n        this.initOnCeiling();\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp((double) tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp((double) tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp((double) tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getRadialQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n        float a = Math.min(1f, Math.max(0f, this.colorAlpha));\n\n        // colored layer\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, minV + (maxV - minV) / 2.0F).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, minV + (maxV - minV) / 2.0F).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n\n        // white center\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n    }\n\n    public void tick() {\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        // if old enough, fade and die\n        if (this.age++ >= this.maxAge) {\n            nextAlphaGoal = -BLINK_STEP;\n            if (colorAlpha < 0f) {\n                this.markDead();\n            }\n        }\n\n        // if above block is no longer here, tag no longer on ceiling\n        if (this.world.getBlockState(new BlockPos(this.x, this.y + 0.5, this.z)).isAir()) {\n            this.onCeiling = false;\n        }\n\n        // if no longer on ceiling and no block under, fall, fade and die\n        if (!this.onCeiling) {\n            this.velocityY -= 0.1;\n            this.maxAge = 0;\n        }\n\n        // blinking\n        if (colorAlpha > nextAlphaGoal - BLINK_STEP && colorAlpha < nextAlphaGoal + BLINK_STEP) {\n            nextAlphaGoal = new Random().nextFloat();\n        } else {\n            if (nextAlphaGoal > colorAlpha) {\n                colorAlpha += BLINK_STEP;\n            } else if (nextAlphaGoal < colorAlpha) {\n                colorAlpha -= BLINK_STEP;\n            }\n        }\n\n        this.targetChangeCooldown -= (new Vec3d(x, y, z).squaredDistanceTo(prevPosX, prevPosY, prevPosZ) < 0.0125) ? 10 : 1;\n\n        if ((this.world.getTime() % 20 == 0) && ((xTarget == 0 && yTarget == 0 && zTarget == 0) || new Vec3d(x, y, z).squaredDistanceTo(xTarget, yTarget, zTarget) < 9 || targetChangeCooldown <= 0)) {\n            selectBlockTarget();\n        }\n\n        Vec3d targetVector = new Vec3d(this.xTarget - this.x, this.yTarget - this.y, this.zTarget - this.z);\n        double length = targetVector.length();\n        targetVector = targetVector.multiply(0.1 / length);\n\n\n        if (!this.world.getBlockState(new BlockPos(this.x, this.y - 0.1, this.z)).getBlock().canMobSpawnInside()) {\n            velocityX = (0.9) * velocityX + (0.1) * targetVector.x;\n            velocityZ = (0.9) * velocityZ + (0.1) * targetVector.z;\n        } else {\n            velocityX = (0.9) * velocityX + (0.1) * targetVector.x;\n            velocityZ = (0.9) * velocityZ + (0.1) * targetVector.z;\n        }\n\n        if (!new BlockPos(x, y, z).equals(this.getTargetPosition())) {\n            this.move(velocityX, velocityY, velocityZ);\n        }\n    }\n\n    private void selectBlockTarget() {\n        // Behaviour\n        this.xTarget = this.x + random.nextGaussian();\n        this.zTarget = this.z + random.nextGaussian();\n\n        BlockPos targetPos = new BlockPos(this.xTarget, this.y, this.zTarget);\n\n        targetChangeCooldown = random.nextInt() % 100;\n    }\n\n    private void initOnCeiling() {\n        this.onCeiling = true;\n        this.y = (float) Math.ceil(this.y) - 0.025;\n        this.colorAlpha = 0f;\n\n        while (this.world.getBlockState(new BlockPos(this.x, this.y + 1, this.z)).isAir()) {\n            if (this.y++ > 255) {\n                this.markDead();\n                break;\n            }\n        }\n\n        this.setPos(this.x, this.y, this.z);\n    }\n\n    public BlockPos getTargetPosition() {\n        return new BlockPos(this.xTarget, this.yTarget + 0.95, this.zTarget);\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new GlowwormParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/PlanktonParticle.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport ladysnake.illuminations.client.config.Config;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.tag.FluidTags;\nimport net.minecraft.util.math.*;\n\nimport java.util.Random;\nimport java.util.concurrent.ThreadLocalRandom;\n\npublic class PlanktonParticle extends SpriteBillboardParticle {\n    private static final float BLINK_STEP = 0.01f;\n    private static final Random RANDOM = new Random();\n    private final SpriteProvider spriteProvider;\n    protected float nextAlphaGoal = 0f;\n    private BlockPos lightTarget;\n    private double xTarget;\n    private double yTarget;\n    private double zTarget;\n    private int targetChangeCooldown = 0;\n\n    private PlanktonParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ);\n        this.spriteProvider = spriteProvider;\n\n        this.scale *= 0.05f + new Random().nextFloat() * 0.05f;\n        this.maxAge = ThreadLocalRandom.current().nextInt(400, 1201); // live between 20 seconds and one minute\n        this.collidesWithWorld = true;\n        this.setSpriteForAge(spriteProvider);\n\n        this.colorRed = 0f;\n        this.colorGreen = 0.25f + new Random().nextFloat() * 0.25f;\n        this.colorBlue = 1f;\n        this.colorAlpha = 0f;\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getRadialQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n        float a = Math.min(1f, Math.max(0f, this.colorAlpha));\n\n        // colored layer\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, minV + (maxV - minV) / 2.0F).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, minV + (maxV - minV) / 2.0F).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n\n        // white center\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n    }\n\n    public void tick() {\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        // fade if old enough\n        if (this.age++ >= this.maxAge) {\n            nextAlphaGoal = -BLINK_STEP;\n            if (colorAlpha < 0f) {\n                this.markDead();\n            }\n        }\n\n        // blinking\n        if (colorAlpha > nextAlphaGoal - BLINK_STEP && colorAlpha < nextAlphaGoal + BLINK_STEP) {\n            nextAlphaGoal = new Random().nextFloat();\n        } else {\n            if (nextAlphaGoal > colorAlpha) {\n                colorAlpha += BLINK_STEP;\n            } else if (nextAlphaGoal < colorAlpha) {\n                colorAlpha -= BLINK_STEP;\n            }\n        }\n\n        this.targetChangeCooldown -= (new Vec3d(x, y, z).squaredDistanceTo(prevPosX, prevPosY, prevPosZ) < 0.0125) ? 10 : 1;\n\n        if ((this.world.getTime() % 20 == 0) && ((xTarget == 0 && yTarget == 0 && zTarget == 0) || new Vec3d(x, y, z).squaredDistanceTo(xTarget, yTarget, zTarget) < 9 || targetChangeCooldown <= 0)) {\n            selectBlockTarget();\n        }\n\n        Vec3d targetVector = new Vec3d(this.xTarget - this.x, this.yTarget - this.y, this.zTarget - this.z);\n        double length = targetVector.length();\n        targetVector = targetVector.multiply(0.001 / length);\n\n\n        if (!this.world.getBlockState(new BlockPos(this.x, this.y - 0.1, this.z)).getFluidState().isIn(FluidTags.WATER)) {\n            velocityX = (0.9) * velocityX + (0.1) * targetVector.x;\n            velocityY = 0.05;\n            velocityZ = (0.9) * velocityZ + (0.1) * targetVector.z;\n        } else {\n            velocityX = (0.9) * velocityX + (0.1) * targetVector.x;\n            velocityY = (0.9) * velocityY + (0.1) * targetVector.y;\n            velocityZ = (0.9) * velocityZ + (0.1) * targetVector.z;\n        }\n\n        if (!new BlockPos(x, y, z).equals(this.getTargetPosition())) {\n            this.move(velocityX, velocityY, velocityZ);\n        }\n    }\n\n    private void selectBlockTarget() {\n        // Behaviour\n        double groundLevel = 0;\n        for (int i = 0; i < 20; i++) {\n            BlockState checkedBlock = this.world.getBlockState(new BlockPos(this.x, this.y - i, this.z));\n            if (checkedBlock.getFluidState().isIn(FluidTags.WATER)) {\n                groundLevel = this.y - i;\n            }\n            if (groundLevel != 0) break;\n        }\n\n        this.xTarget = this.x + random.nextGaussian() * 10;\n        this.yTarget = Math.max(this.y + random.nextGaussian() * 2, groundLevel);\n        this.zTarget = this.z + random.nextGaussian() * 10;\n\n        BlockPos targetPos = new BlockPos(this.xTarget, this.yTarget, this.zTarget);\n        if (this.world.getBlockState(targetPos).isFullCube(world, targetPos)\n                && this.world.getBlockState(targetPos).isSolidBlock(world, targetPos)) {\n            this.yTarget += 1;\n        }\n\n        targetChangeCooldown = random.nextInt() % 100;\n    }\n\n    public BlockPos getTargetPosition() {\n        return new BlockPos(this.xTarget, this.yTarget + 0.5, this.zTarget);\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new PlanktonParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/PoltergeistParticle.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.block.Blocks;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.ParticleTextureSheet;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.OverlayTexture;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.render.VertexConsumerProvider;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.entity.Entity;\nimport net.minecraft.particle.BlockStateParticleEffect;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.particle.ParticleTypes;\nimport net.minecraft.sound.SoundCategory;\nimport net.minecraft.sound.SoundEvents;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Vec3d;\nimport net.minecraft.util.math.Vec3f;\nimport org.jetbrains.annotations.Nullable;\n\nimport java.util.List;\n\npublic class PoltergeistParticle extends WillOWispParticle {\n    protected PoltergeistParticle(ClientWorld world, double x, double y, double z, Identifier texture, float red, float green, float blue, float redEvolution, float greenEvolution, float blueEvolution) {\n        super(world, x, y, z, texture, red, green, blue, redEvolution, greenEvolution, blueEvolution);\n    }\n\n    @Override\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.CUSTOM;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n\n        MatrixStack matrixStack = new MatrixStack();\n        matrixStack.translate(f, g, h);\n        matrixStack.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion(MathHelper.lerp(g, this.prevYaw, this.yaw) - 180));\n        matrixStack.multiply(Vec3f.POSITIVE_X.getDegreesQuaternion(MathHelper.lerp(g, this.prevPitch, this.pitch)));\n        matrixStack.scale(0.5F, -0.5F, 0.5F);\n        matrixStack.translate(0, -1, 0);\n        VertexConsumerProvider.Immediate immediate = MinecraftClient.getInstance().getBufferBuilders().getEntityVertexConsumers();\n        VertexConsumer vertexConsumer2 = immediate.getBuffer(this.layer);\n        if (colorAlpha > 0) {\n            this.model.render(matrixStack, vertexConsumer2, 15728880, OverlayTexture.DEFAULT_UV, 1.0F, 1.0F, 1.0F, 0.5f);\n        }\n        immediate.draw();\n    }\n\n    @Override\n    public void tick() {\n        if (this.prevPosX == this.x && this.prevPosY == this.y && this.prevPosZ == this.z) {\n            this.selectBlockTarget();\n        }\n\n        if (this.age < 5) {\n            for (int i = 0; i < 25; i++) {\n                this.world.addParticle(new WispTrailParticleEffect(this.colorRed, this.colorGreen, this.colorBlue, this.redEvolution, this.greenEvolution, this.blueEvolution), this.x + random.nextGaussian() / 15, this.y + random.nextGaussian() / 15, this.z + random.nextGaussian() / 15, 0, 0, 0);\n            }\n        }\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        if (this.age++ >= this.maxAge) {\n            for (int i = 0; i < 25; i++) {\n                this.world.addParticle(new WispTrailParticleEffect(this.colorRed, this.colorGreen, this.colorBlue, this.redEvolution, this.greenEvolution, this.blueEvolution), this.x + random.nextGaussian() / 15, this.y + random.nextGaussian() / 15, this.z + random.nextGaussian() / 15, 0, 0, 0);\n                this.world.addParticle(new BlockStateParticleEffect(ParticleTypes.BLOCK, Blocks.SKELETON_SKULL.getDefaultState()), this.x + random.nextGaussian() / 10, this.y + random.nextGaussian() / 10, this.z + random.nextGaussian() / 10, random.nextGaussian() / 20, random.nextGaussian() / 20, random.nextGaussian() / 20);\n            }\n            this.world.playSound(new BlockPos(this.x, this.y, this.z), SoundEvents.ENTITY_VEX_DEATH, SoundCategory.AMBIENT, 1.0f, 0.8f, true);\n            this.world.playSound(new BlockPos(this.x, this.y, this.z), SoundEvents.ENTITY_SKELETON_DEATH, SoundCategory.AMBIENT, 1.0f, 1.0f, true);\n            this.markDead();\n        }\n\n        this.targetChangeCooldown -= (new Vec3d(x, y, z).squaredDistanceTo(prevPosX, prevPosY, prevPosZ) < 0.0125) ? 10 : 1;\n\n        if ((this.world.getTime() % 100 == 0) && ((xTarget == 0 && yTarget == 0 && zTarget == 0) || new Vec3d(x, y, z).squaredDistanceTo(xTarget, yTarget, zTarget) < 9 || targetChangeCooldown <= 0)) {\n            selectBlockTarget();\n        }\n\n        Vec3d targetVector = new Vec3d(this.xTarget - this.x, this.yTarget - this.y, this.zTarget - this.z);\n        double length = targetVector.length();\n        targetVector = targetVector.multiply(speedModifier / length);\n\n        velocityX = (0.9) * velocityX + (0.1) * targetVector.x;\n        velocityY = (0.9) * velocityY + (0.1) * targetVector.y;\n        velocityZ = (0.9) * velocityZ + (0.1) * targetVector.z;\n\n        this.prevYaw = this.yaw;\n        this.prevPitch = this.pitch;\n        Vec3d vec3d = new Vec3d(velocityX, velocityY, velocityZ);\n        float f = (float) Math.sqrt(vec3d.x * vec3d.x + vec3d.z * vec3d.z);\n        this.yaw = (float) (MathHelper.atan2(vec3d.x, vec3d.z) * 57.2957763671875D);\n        this.pitch = (float) (MathHelper.atan2(vec3d.y, f) * 57.2957763671875D);\n\n        this.world.addParticle(new WispTrailParticleEffect(this.colorRed, this.colorGreen, this.colorBlue, this.redEvolution, this.greenEvolution, this.blueEvolution), this.x + random.nextGaussian() / 15, this.y + random.nextGaussian() / 15, this.z + random.nextGaussian() / 15, 0, 0, 0);\n\n        if (!new BlockPos(x, y, z).equals(this.getTargetPosition())) {\n            this.move(velocityX, velocityY, velocityZ);\n        }\n\n        if (random.nextInt(20) == 0) {\n            this.world.playSound(new BlockPos(this.x, this.y, this.z), SoundEvents.ENTITY_VEX_AMBIENT, SoundCategory.AMBIENT, 1.0f, 0.8f, true);\n        }\n\n        BlockPos pos = new BlockPos(this.x, this.y, this.z);\n        if (!this.world.getBlockState(pos).isAir()) {\n            if (timeInSolid > -1) {\n                timeInSolid += 1;\n            }\n        } else {\n            timeInSolid = 0;\n        }\n\n        if (timeInSolid > 25) {\n            this.markDead();\n        }\n    }\n\n    @Override\n    public void move(double dx, double dy, double dz) {\n        double d = dx;\n        double e = dy;\n        if (this.collidesWithWorld && (dx != 0.0D || dy != 0.0D || dz != 0.0D)) {\n            Vec3d vec3d = Entity.adjustMovementForCollisions(null, new Vec3d(dx, dy, dz), this.getBoundingBox(), this.world, List.of());\n\n            dx = vec3d.x;\n            dy = vec3d.y;\n            dz = vec3d.z;\n        }\n\n        if (dx != 0.0D || dy != 0.0D || dz != 0.0D) {\n            this.setBoundingBox(this.getBoundingBox().offset(dx, dy, dz));\n            this.repositionFromBoundingBox();\n        }\n\n        this.onGround = dy != dy && e < 0.0D;\n        if (d != dx) {\n            this.velocityX = 0.0D;\n        }\n\n        if (dz != dz) {\n            this.velocityZ = 0.0D;\n        }\n    }\n\n    public BlockPos getTargetPosition() {\n        return new BlockPos(this.xTarget, this.yTarget + 0.5, this.zTarget);\n    }\n\n    private void selectBlockTarget() {\n        // Behaviour\n        this.xTarget = this.x + random.nextGaussian() * 10;\n        this.yTarget = this.y + random.nextGaussian() * 10;\n        this.zTarget = this.z + random.nextGaussian() * 10;\n\n        BlockPos targetPos = new BlockPos(this.xTarget, this.yTarget, this.zTarget);\n        if (this.world.getBlockState(targetPos).isFullCube(world, targetPos)) {\n            targetChangeCooldown = 0;\n            return;\n        }\n\n        speedModifier = 0.1f + Math.max(0, random.nextFloat() - 0.1f);\n        targetChangeCooldown = random.nextInt() % (int) (100 / this.speedModifier);\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final Identifier texture;\n        private final float red;\n        private final float green;\n        private final float blue;\n        private final float redEvolution;\n        private final float greenEvolution;\n        private final float blueEvolution;\n\n        public DefaultFactory(SpriteProvider spriteProvider, Identifier texture, float red, float green, float blue, float redEvolution, float greenEvolution, float blueEvolution) {\n            this.texture = texture;\n            this.red = red;\n            this.green = green;\n            this.blue = blue;\n            this.redEvolution = redEvolution;\n            this.greenEvolution = greenEvolution;\n            this.blueEvolution = blueEvolution;\n        }\n\n        @Nullable\n        @Override\n        public Particle createParticle(DefaultParticleType parameters, ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) {\n            return new PoltergeistParticle(world, x, y, z, this.texture, this.red, this.green, this.blue, this.redEvolution, this.greenEvolution, this.blueEvolution);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/PrismarineCrystalParticle.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.tag.FluidTags;\nimport net.minecraft.util.math.*;\n\nimport java.util.Random;\nimport java.util.concurrent.ThreadLocalRandom;\n\npublic class PrismarineCrystalParticle extends SpriteBillboardParticle {\n    private static final Random RANDOM = new Random();\n    protected final float rotationFactor;\n    private final int variant = RANDOM.nextInt(3);\n    private final SpriteProvider spriteProvider;\n    private final float groundOffset;\n\n    public PrismarineCrystalParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ);\n        this.spriteProvider = spriteProvider;\n\n        this.scale *= 1f + RANDOM.nextFloat();\n        this.maxAge = ThreadLocalRandom.current().nextInt(400, 1201); // live between 20 seconds and one minute\n        this.collidesWithWorld = true;\n        this.setSprite(spriteProvider.getSprite(variant, 2));\n\n        if (velocityY == 0f && velocityX == 0f && velocityZ == 0f) {\n            this.colorAlpha = 0f;\n        }\n\n        this.velocityX = random.nextFloat() * 0.01d;\n        this.velocityY = -random.nextFloat() * 0.01d;\n        this.velocityZ = random.nextFloat() * 0.01d;\n\n        this.groundOffset = RANDOM.nextFloat() / 100f + 0.001f;\n\n        this.rotationFactor = ((float) Math.random() - 0.5F) * 0.01F;\n        this.angle = random.nextFloat() * 360f;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getDegreesQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            if (this.onGround) {\n                Vec3f2.rotate(new Quaternion(90f, 0f, quaternion2.getZ(), true));\n            } else {\n                Vec3f2.rotate(quaternion2);\n            }\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g + this.groundOffset, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    public void tick() {\n        if (this.age++ < this.maxAge) {\n            this.colorAlpha = Math.min(1f, this.colorAlpha + 0.01f);\n        }\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        if (this.world.getFluidState(new BlockPos(this.x, this.y, this.z)).isIn(FluidTags.WATER)) {\n            this.move(this.velocityX, this.velocityY, this.velocityZ);\n        } else {\n            this.move(this.velocityX, this.velocityY, this.velocityZ);\n            this.velocityX *= 0.9D;\n            this.velocityY = -0.9D;\n            this.velocityZ *= 0.9D;\n        }\n\n        if (this.age >= this.maxAge) {\n            this.colorAlpha = Math.max(0f, this.colorAlpha - 0.01f);\n\n            if (this.colorAlpha <= 0f) {\n                this.markDead();\n            }\n        }\n\n        this.colorRed = 0.8f + (float) Math.sin(this.age / 100f) * 0.2f;\n//        this.colorBlue = 0.9f + (float) Math.cos(this.age/100f) * 0.1f;\n\n        this.prevAngle = this.angle;\n        if (this.onGround) {\n            this.velocityX = 0;\n            this.velocityY = 0;\n            this.velocityZ = 0;\n        }\n\n        if (this.velocityY != 0) {\n            this.angle += Math.PI * Math.sin(rotationFactor * this.age) / 2;\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new PrismarineCrystalParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/PumpkinSpiritParticle.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.block.Blocks;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.entity.Entity;\nimport net.minecraft.particle.BlockStateParticleEffect;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.particle.ParticleTypes;\nimport net.minecraft.sound.SoundCategory;\nimport net.minecraft.sound.SoundEvents;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Vec3d;\nimport org.jetbrains.annotations.Nullable;\n\nimport java.util.List;\n\npublic class PumpkinSpiritParticle extends WillOWispParticle {\n    protected PumpkinSpiritParticle(ClientWorld world, double x, double y, double z, Identifier texture, float red, float green, float blue, float redEvolution, float greenEvolution, float blueEvolution) {\n        super(world, x, y, z, texture, red, green, blue, redEvolution, greenEvolution, blueEvolution);\n    }\n\n\n    @Override\n    public void tick() {\n        if (this.prevPosX == this.x && this.prevPosY == this.y && this.prevPosZ == this.z) {\n            this.selectBlockTarget();\n        }\n\n        if (this.age < 5) {\n            for (int i = 0; i < 25; i++) {\n                this.world.addParticle(new WispTrailParticleEffect(this.colorRed, this.colorGreen, this.colorBlue, this.redEvolution, this.greenEvolution, this.blueEvolution), this.x + random.nextGaussian() / 15, this.y + random.nextGaussian() / 15, this.z + random.nextGaussian() / 15, 0, 0, 0);\n            }\n        }\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        if (this.age++ >= this.maxAge) {\n            for (int i = 0; i < 25; i++) {\n                this.world.addParticle(new WispTrailParticleEffect(this.colorRed, this.colorGreen, this.colorBlue, this.redEvolution, this.greenEvolution, this.blueEvolution), this.x + random.nextGaussian() / 15, this.y + random.nextGaussian() / 15, this.z + random.nextGaussian() / 15, 0, 0, 0);\n                this.world.addParticle(new BlockStateParticleEffect(ParticleTypes.BLOCK, Blocks.JACK_O_LANTERN.getDefaultState()), this.x + random.nextGaussian() / 10, this.y + random.nextGaussian() / 10, this.z + random.nextGaussian() / 10, random.nextGaussian() / 20, random.nextGaussian() / 20, random.nextGaussian() / 20);\n            }\n            this.world.playSound(new BlockPos(this.x, this.y, this.z), SoundEvents.ENTITY_VEX_DEATH, SoundCategory.AMBIENT, 1.0f, 0.8f, true);\n            this.world.playSound(new BlockPos(this.x, this.y, this.z), SoundEvents.BLOCK_WOOD_BREAK, SoundCategory.AMBIENT, 1.0f, 1.0f, true);\n            this.markDead();\n        }\n\n        this.targetChangeCooldown -= (new Vec3d(x, y, z).squaredDistanceTo(prevPosX, prevPosY, prevPosZ) < 0.0125) ? 10 : 1;\n\n        if ((this.world.getTime() % 100 == 0) && ((xTarget == 0 && yTarget == 0 && zTarget == 0) || new Vec3d(x, y, z).squaredDistanceTo(xTarget, yTarget, zTarget) < 9 || targetChangeCooldown <= 0)) {\n            selectBlockTarget();\n        }\n\n        Vec3d targetVector = new Vec3d(this.xTarget - this.x, this.yTarget - this.y, this.zTarget - this.z);\n        double length = targetVector.length();\n        targetVector = targetVector.multiply(speedModifier / length);\n\n        velocityX = (0.9) * velocityX + (0.1) * targetVector.x;\n        velocityY = (0.9) * velocityY + (0.1) * targetVector.y;\n        velocityZ = (0.9) * velocityZ + (0.1) * targetVector.z;\n\n        this.prevYaw = this.yaw;\n        this.prevPitch = this.pitch;\n        Vec3d vec3d = new Vec3d(velocityX, velocityY, velocityZ);\n        float f = (float) Math.sqrt(vec3d.x * vec3d.x + vec3d.z * vec3d.z);\n        this.yaw = (float) (MathHelper.atan2(vec3d.x, vec3d.z) * 57.2957763671875D);\n        this.pitch = (float) (MathHelper.atan2(vec3d.y, f) * 57.2957763671875D);\n\n        for (int i = 0; i < 10 * this.speedModifier; i++) {\n            this.world.addParticle(new WispTrailParticleEffect(this.colorRed, this.colorGreen, this.colorBlue, this.redEvolution, this.greenEvolution, this.blueEvolution), this.x + random.nextGaussian() / 15, this.y + random.nextGaussian() / 15, this.z + random.nextGaussian() / 15, 0, 0, 0);\n        }\n\n        if (!new BlockPos(x, y, z).equals(this.getTargetPosition())) {\n            this.move(velocityX, velocityY, velocityZ);\n        }\n\n        if (random.nextInt(100) == 0) {\n            this.world.playSound(new BlockPos(this.x, this.y, this.z), SoundEvents.ENTITY_VEX_AMBIENT, SoundCategory.AMBIENT, 1.0f, 0.8f, true);\n        }\n\n        BlockPos pos = new BlockPos(this.x, this.y, this.z);\n        if (!this.world.getBlockState(pos).isAir()) {\n            if (timeInSolid > -1) {\n                timeInSolid += 1;\n            }\n        } else {\n            timeInSolid = 0;\n        }\n\n        if (timeInSolid > 25) {\n            this.markDead();\n        }\n    }\n\n    @Override\n    public void move(double dx, double dy, double dz) {\n        double d = dx;\n        double e = dy;\n        if (this.collidesWithWorld && (dx != 0.0D || dy != 0.0D || dz != 0.0D)) {\n            Vec3d vec3d = Entity.adjustMovementForCollisions(null, new Vec3d(dx, dy, dz), this.getBoundingBox(), this.world, List.of());\n\n            dx = vec3d.x;\n            dy = vec3d.y;\n            dz = vec3d.z;\n        }\n\n        if (dx != 0.0D || dy != 0.0D || dz != 0.0D) {\n            this.setBoundingBox(this.getBoundingBox().offset(dx, dy, dz));\n            this.repositionFromBoundingBox();\n        }\n\n        this.onGround = dy != dy && e < 0.0D;\n        if (d != dx) {\n            this.velocityX = 0.0D;\n        }\n\n        if (dz != dz) {\n            this.velocityZ = 0.0D;\n        }\n    }\n\n    public BlockPos getTargetPosition() {\n        return new BlockPos(this.xTarget, this.yTarget + 0.5, this.zTarget);\n    }\n\n    private void selectBlockTarget() {\n        // Behaviour\n        this.xTarget = this.x + random.nextGaussian() * 10;\n        this.yTarget = this.y + random.nextGaussian() * 10;\n        this.zTarget = this.z + random.nextGaussian() * 10;\n\n        BlockPos targetPos = new BlockPos(this.xTarget, this.yTarget, this.zTarget);\n        if (this.world.getBlockState(targetPos).isFullCube(world, targetPos)) {\n            targetChangeCooldown = 0;\n            return;\n        }\n\n        speedModifier = 0.1f + Math.max(0, random.nextFloat() - 0.1f);\n        targetChangeCooldown = random.nextInt() % (int) (100 / this.speedModifier);\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final Identifier texture;\n        private final float red;\n        private final float green;\n        private final float blue;\n        private final float redEvolution;\n        private final float greenEvolution;\n        private final float blueEvolution;\n\n        public DefaultFactory(SpriteProvider spriteProvider, Identifier texture, float red, float green, float blue, float redEvolution, float greenEvolution, float blueEvolution) {\n            this.texture = texture;\n            this.red = red;\n            this.green = green;\n            this.blue = blue;\n            this.redEvolution = redEvolution;\n            this.greenEvolution = greenEvolution;\n            this.blueEvolution = blueEvolution;\n        }\n\n        @Nullable\n        @Override\n        public Particle createParticle(DefaultParticleType parameters, ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) {\n            return new PumpkinSpiritParticle(world, x, y, z, this.texture, this.red, this.green, this.blue, this.redEvolution, this.greenEvolution, this.blueEvolution);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/WillOWispParticle.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport ladysnake.illuminations.client.render.GlowyRenderLayer;\nimport ladysnake.illuminations.client.render.entity.model.pet.WillOWispModel;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.block.Blocks;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.model.Model;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.ParticleTextureSheet;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.render.*;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.entity.Entity;\nimport net.minecraft.particle.BlockStateParticleEffect;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.particle.ParticleTypes;\nimport net.minecraft.sound.SoundCategory;\nimport net.minecraft.sound.SoundEvents;\nimport net.minecraft.tag.BlockTags;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Vec3d;\nimport net.minecraft.util.math.Vec3f;\nimport org.jetbrains.annotations.Nullable;\n\nimport java.util.List;\n\npublic class WillOWispParticle extends Particle {\n    public final Identifier texture;\n    protected final float redEvolution;\n    protected final float greenEvolution;\n    protected final float blueEvolution;\n    final Model model;\n    final RenderLayer layer;\n    public float yaw;\n    public float pitch;\n    public float prevYaw;\n    public float prevPitch;\n    public float speedModifier;\n    protected double xTarget;\n    protected double yTarget;\n    protected double zTarget;\n    protected int targetChangeCooldown = 0;\n    protected int timeInSolid = -1;\n\n    protected WillOWispParticle(ClientWorld world, double x, double y, double z, Identifier texture, float red, float green, float blue, float redEvolution, float greenEvolution, float blueEvolution) {\n        super(world, x, y, z);\n        this.texture = texture;\n        this.model = new WillOWispModel(MinecraftClient.getInstance().getEntityModelLoader().getModelPart(WillOWispModel.MODEL_LAYER));\n        this.layer = RenderLayer.getEntityTranslucent(texture);\n        this.gravityStrength = 0.0F;\n        this.maxAge = 600 + random.nextInt(600);\n        speedModifier = 0.1f + Math.max(0, random.nextFloat() - 0.1f);\n\n        this.colorRed = red;\n        this.colorGreen = green;\n        this.colorBlue = blue;\n\n        this.redEvolution = redEvolution;\n        this.blueEvolution = blueEvolution;\n        this.greenEvolution = greenEvolution;\n    }\n\n    @Override\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.CUSTOM;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n\n        MatrixStack matrixStack = new MatrixStack();\n        matrixStack.translate(f, g, h);\n        matrixStack.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion(MathHelper.lerp(g, this.prevYaw, this.yaw) - 180));\n        matrixStack.multiply(Vec3f.POSITIVE_X.getDegreesQuaternion(MathHelper.lerp(g, this.prevPitch, this.pitch)));\n        matrixStack.scale(0.5F, -0.5F, 0.5F);\n        matrixStack.translate(0, -1, 0);\n        VertexConsumerProvider.Immediate immediate = MinecraftClient.getInstance().getBufferBuilders().getEntityVertexConsumers();\n        VertexConsumer vertexConsumer2 = immediate.getBuffer(GlowyRenderLayer.get(texture));\n        if (colorAlpha > 0) {\n            this.model.render(matrixStack, vertexConsumer2, 15728880, OverlayTexture.DEFAULT_UV, 1.0F, 1.0F, 1.0F, 1.0f);\n        }\n        immediate.draw();\n    }\n\n    @Override\n    public void tick() {\n        if (this.prevPosX == this.x && this.prevPosY == this.y && this.prevPosZ == this.z) {\n            this.selectBlockTarget();\n        }\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        if (this.age++ >= this.maxAge) {\n            for (int i = 0; i < 25; i++) {\n                this.world.addParticle(new WispTrailParticleEffect(this.colorRed, this.colorGreen, this.colorBlue, this.redEvolution, this.greenEvolution, this.blueEvolution), this.x + random.nextGaussian() / 15, this.y + random.nextGaussian() / 15, this.z + random.nextGaussian() / 15, 0, 0, 0);\n                this.world.addParticle(new BlockStateParticleEffect(ParticleTypes.BLOCK, Blocks.SOUL_SAND.getDefaultState()), this.x + random.nextGaussian() / 10, this.y + random.nextGaussian() / 10, this.z + random.nextGaussian() / 10, random.nextGaussian() / 20, random.nextGaussian() / 20, random.nextGaussian() / 20);\n            }\n            this.world.playSound(new BlockPos(this.x, this.y, this.z), SoundEvents.PARTICLE_SOUL_ESCAPE, SoundCategory.AMBIENT, 1.0f, 1.5f, true);\n            this.world.playSound(new BlockPos(this.x, this.y, this.z), SoundEvents.BLOCK_SOUL_SAND_BREAK, SoundCategory.AMBIENT, 1.0f, 1.0f, true);\n            this.markDead();\n        }\n\n        this.targetChangeCooldown -= (new Vec3d(x, y, z).squaredDistanceTo(prevPosX, prevPosY, prevPosZ) < 0.0125) ? 10 : 1;\n\n        if ((this.world.getTime() % 20 == 0) && ((xTarget == 0 && yTarget == 0 && zTarget == 0) || new Vec3d(x, y, z).squaredDistanceTo(xTarget, yTarget, zTarget) < 9 || targetChangeCooldown <= 0)) {\n            selectBlockTarget();\n        }\n\n        Vec3d targetVector = new Vec3d(this.xTarget - this.x, this.yTarget - this.y, this.zTarget - this.z);\n        double length = targetVector.length();\n        targetVector = targetVector.multiply(speedModifier / length);\n\n        velocityX = (0.9) * velocityX + (0.1) * targetVector.x;\n        velocityY = (0.9) * velocityY + (0.1) * targetVector.y;\n        velocityZ = (0.9) * velocityZ + (0.1) * targetVector.z;\n\n        this.prevYaw = this.yaw;\n        this.prevPitch = this.pitch;\n        Vec3d vec3d = new Vec3d(velocityX, velocityY, velocityZ);\n        float f = (float) Math.sqrt(vec3d.x * vec3d.x + vec3d.z * vec3d.z);\n        this.yaw = (float) (MathHelper.atan2(vec3d.x, vec3d.z) * 57.2957763671875D);\n        this.pitch = (float) (MathHelper.atan2(vec3d.y, f) * 57.2957763671875D);\n\n        for (int i = 0; i < 10 * this.speedModifier; i++) {\n            if (this.world.getBlockState(new BlockPos(this.x, this.y, this.z)).isIn(BlockTags.SOUL_FIRE_BASE_BLOCKS)) {\n                this.world.addParticle(ParticleTypes.SOUL, this.x + random.nextGaussian() / 10, this.y + random.nextGaussian() / 10, this.z + random.nextGaussian() / 10, random.nextGaussian() / 20, random.nextGaussian() / 20, random.nextGaussian() / 20);\n            } else {\n                this.world.addParticle(new WispTrailParticleEffect(this.colorRed, this.colorGreen, this.colorBlue, this.redEvolution, this.greenEvolution, this.blueEvolution), this.x + random.nextGaussian() / 15, this.y + random.nextGaussian() / 15, this.z + random.nextGaussian() / 15, 0, 0, 0);\n            }\n        }\n\n        if (!new BlockPos(x, y, z).equals(this.getTargetPosition())) {\n            this.move(velocityX, velocityY, velocityZ);\n        }\n\n        if (random.nextInt(20) == 0) {\n            this.world.playSound(new BlockPos(this.x, this.y, this.z), SoundEvents.PARTICLE_SOUL_ESCAPE, SoundCategory.AMBIENT, 1.0f, 1.5f, true);\n        }\n\n        BlockPos pos = new BlockPos(this.x, this.y, this.z);\n        if (!this.world.getBlockState(pos).isAir()) {\n            if (timeInSolid > -1) {\n                timeInSolid += 1;\n            }\n        } else {\n            timeInSolid = 0;\n        }\n\n        if (timeInSolid > 25) {\n            this.markDead();\n        }\n    }\n\n    @Override\n    public void move(double dx, double dy, double dz) {\n        double d = dx;\n        double e = dy;\n        if (this.collidesWithWorld && !this.world.getBlockState(new BlockPos(this.x + dx, this.y + dy, this.z + dz)).isIn(BlockTags.SOUL_FIRE_BASE_BLOCKS) && (dx != 0.0D || dy != 0.0D || dz != 0.0D)) {\n            Vec3d vec3d = Entity.adjustMovementForCollisions(null, new Vec3d(dx, dy, dz), this.getBoundingBox(), this.world, List.of());\n\n            dx = vec3d.x;\n            dy = vec3d.y;\n            dz = vec3d.z;\n        }\n\n        if (dx != 0.0D || dy != 0.0D || dz != 0.0D) {\n            this.setBoundingBox(this.getBoundingBox().offset(dx, dy, dz));\n            this.repositionFromBoundingBox();\n        }\n\n        this.onGround = dy != dy && e < 0.0D && !this.world.getBlockState(new BlockPos(this.x, this.y, this.z)).isIn(BlockTags.SOUL_FIRE_BASE_BLOCKS);\n        if (d != dx) {\n            this.velocityX = 0.0D;\n        }\n\n        if (dz != dz) {\n            this.velocityZ = 0.0D;\n        }\n    }\n\n    public BlockPos getTargetPosition() {\n        return new BlockPos(this.xTarget, this.yTarget + 0.5, this.zTarget);\n    }\n\n    private void selectBlockTarget() {\n        // Behaviour\n        this.xTarget = this.x + random.nextGaussian() * 10;\n        this.yTarget = this.y + random.nextGaussian() * 10;\n        this.zTarget = this.z + random.nextGaussian() * 10;\n\n        BlockPos targetPos = new BlockPos(this.xTarget, this.yTarget, this.zTarget);\n        if (this.world.getBlockState(targetPos).isFullCube(world, targetPos) && !this.world.getBlockState(targetPos).isIn(BlockTags.SOUL_FIRE_BASE_BLOCKS)) {\n            targetChangeCooldown = 0;\n            return;\n        }\n\n        speedModifier = 0.1f + Math.max(0, random.nextFloat() - 0.1f);\n        targetChangeCooldown = random.nextInt() % (int) (100 / this.speedModifier);\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final Identifier texture;\n        private final float red;\n        private final float green;\n        private final float blue;\n        private final float redEvolution;\n        private final float greenEvolution;\n        private final float blueEvolution;\n\n        public DefaultFactory(SpriteProvider spriteProvider, Identifier texture, float red, float green, float blue, float redEvolution, float greenEvolution, float blueEvolution) {\n            this.texture = texture;\n            this.red = red;\n            this.green = green;\n            this.blue = blue;\n            this.redEvolution = redEvolution;\n            this.greenEvolution = greenEvolution;\n            this.blueEvolution = blueEvolution;\n        }\n\n        @Nullable\n        @Override\n        public Particle createParticle(DefaultParticleType parameters, ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) {\n            return new WillOWispParticle(world, x, y, z, this.texture, this.red, this.green, this.blue, this.redEvolution, this.greenEvolution, this.blueEvolution);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/WispTrailParticle.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Quaternion;\nimport net.minecraft.util.math.Vec3d;\nimport net.minecraft.util.math.Vec3f;\n\nimport java.util.Random;\n\npublic class WispTrailParticle extends SpriteBillboardParticle {\n    private final SpriteProvider spriteProvider;\n\n    private final float redEvolution;\n    private final float greenEvolution;\n    private final float blueEvolution;\n\n    private WispTrailParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, WispTrailParticleEffect wispTrailParticleEffect, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ);\n        this.spriteProvider = spriteProvider;\n        this.colorRed = wispTrailParticleEffect.getRed();\n        this.colorGreen = wispTrailParticleEffect.getGreen();\n        this.colorBlue = wispTrailParticleEffect.getBlue();\n        this.redEvolution = wispTrailParticleEffect.getRedEvolution();\n        this.greenEvolution = wispTrailParticleEffect.getGreenEvolution();\n        this.blueEvolution = wispTrailParticleEffect.getBlueEvolution();\n        this.maxAge = 10 + this.random.nextInt(10);\n        this.scale *= 0.25f + new Random().nextFloat() * 0.50f;\n        this.setSpriteForAge(spriteProvider);\n        this.velocityY = 0.1;\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    @Override\n    public void tick() {\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        // fade and die\n        if (this.age++ >= this.maxAge) {\n            colorAlpha -= 0.05f;\n        }\n        if (colorAlpha < 0f || this.scale <= 0f) {\n            this.markDead();\n        }\n\n//        float redEv = -0.03f;\n//        float greenEv = 0.0f;\n//        float blueEv = -0.01f;\n//        colorRed = MathHelper.clamp(colorRed+redEv, 0, 1);\n//        colorGreen = MathHelper.clamp(colorGreen+greenEv, 0, 1);\n//        colorBlue = MathHelper.clamp(colorBlue+blueEv, 0, 1);\n\n        colorRed = MathHelper.clamp(colorRed + redEvolution, 0, 1);\n        colorGreen = MathHelper.clamp(colorGreen + greenEvolution, 0, 1);\n        colorBlue = MathHelper.clamp(colorBlue + blueEvolution, 0, 1);\n\n        this.velocityY -= 0.001;\n        this.velocityX = 0;\n        this.velocityZ = 0;\n        this.scale = Math.max(0, this.scale - 0.005f);\n        this.move(velocityX, velocityY, velocityZ);\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getRadialQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class Factory implements ParticleFactory<WispTrailParticleEffect> {\n        private final SpriteProvider spriteProvider;\n\n        public Factory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(WispTrailParticleEffect wispTrailParticleEffect, ClientWorld clientWorld, double x, double y, double z, double velocityX, double velocityY, double velocityZ) {\n            return new WispTrailParticle(clientWorld, x, y, z, velocityX, velocityY, velocityZ, wispTrailParticleEffect, this.spriteProvider);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/WispTrailParticleEffect.java",
    "content": "package ladysnake.illuminations.client.particle;\n\nimport com.mojang.brigadier.StringReader;\nimport com.mojang.brigadier.exceptions.CommandSyntaxException;\nimport com.mojang.serialization.Codec;\nimport com.mojang.serialization.codecs.RecordCodecBuilder;\nimport ladysnake.illuminations.client.Illuminations;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.network.PacketByteBuf;\nimport net.minecraft.particle.ParticleEffect;\nimport net.minecraft.particle.ParticleType;\nimport net.minecraft.util.registry.Registry;\n\nimport java.util.Locale;\n\npublic class WispTrailParticleEffect implements ParticleEffect {\n    public static final Codec<WispTrailParticleEffect> CODEC = RecordCodecBuilder.create((instance) -> {\n        return instance.group(Codec.FLOAT.fieldOf(\"r\").forGetter((wispTrailParticleEffect) -> {\n            return wispTrailParticleEffect.red;\n        }), Codec.FLOAT.fieldOf(\"g\").forGetter((wispTrailParticleEffect) -> {\n            return wispTrailParticleEffect.green;\n        }), Codec.FLOAT.fieldOf(\"b\").forGetter((wispTrailParticleEffect) -> {\n            return wispTrailParticleEffect.blue;\n        }), Codec.FLOAT.fieldOf(\"re\").forGetter((wispTrailParticleEffect) -> {\n            return wispTrailParticleEffect.redEvolution;\n        }), Codec.FLOAT.fieldOf(\"ge\").forGetter((wispTrailParticleEffect) -> {\n            return wispTrailParticleEffect.greenEvolution;\n        }), Codec.FLOAT.fieldOf(\"be\").forGetter((wispTrailParticleEffect) -> {\n            return wispTrailParticleEffect.blueEvolution;\n        })).apply(instance, WispTrailParticleEffect::new);\n    });\n    public static final ParticleEffect.Factory<WispTrailParticleEffect> PARAMETERS_FACTORY = new ParticleEffect.Factory<WispTrailParticleEffect>() {\n        public WispTrailParticleEffect read(ParticleType<WispTrailParticleEffect> particleType, StringReader stringReader) throws CommandSyntaxException {\n            stringReader.expect(' ');\n            float r = (float) stringReader.readDouble();\n            stringReader.expect(' ');\n            float g = (float) stringReader.readDouble();\n            stringReader.expect(' ');\n            float b = (float) stringReader.readDouble();\n            stringReader.expect(' ');\n            float re = (float) stringReader.readDouble();\n            stringReader.expect(' ');\n            float ge = (float) stringReader.readDouble();\n            stringReader.expect(' ');\n            float be = (float) stringReader.readDouble();\n            return new WispTrailParticleEffect(r, g, b, re, ge, be);\n        }\n\n        public WispTrailParticleEffect read(ParticleType<WispTrailParticleEffect> particleType, PacketByteBuf packetByteBuf) {\n            return new WispTrailParticleEffect(packetByteBuf.readFloat(), packetByteBuf.readFloat(), packetByteBuf.readFloat(), packetByteBuf.readFloat(), packetByteBuf.readFloat(), packetByteBuf.readFloat());\n        }\n    };\n    private final float red;\n    private final float green;\n    private final float blue;\n    private final float redEvolution;\n    private final float greenEvolution;\n    private final float blueEvolution;\n\n    public WispTrailParticleEffect(float red, float green, float blue, float redEvolution, float greenEvolution, float blueEvolution) {\n        this.red = red;\n        this.green = green;\n        this.blue = blue;\n        this.redEvolution = redEvolution;\n        this.greenEvolution = greenEvolution;\n        this.blueEvolution = blueEvolution;\n    }\n\n    public void write(PacketByteBuf buf) {\n        buf.writeFloat(this.red);\n        buf.writeFloat(this.green);\n        buf.writeFloat(this.blue);\n        buf.writeFloat(this.redEvolution);\n        buf.writeFloat(this.greenEvolution);\n        buf.writeFloat(this.blueEvolution);\n    }\n\n    public String asString() {\n        return String.format(Locale.ROOT, \"%s %.2f %.2f %.2f %.2f %.2f %.2f\", Registry.PARTICLE_TYPE.getId(this.getType()), this.red, this.green, this.blue, this.redEvolution, this.greenEvolution, this.blueEvolution);\n    }\n\n    public ParticleType<WispTrailParticleEffect> getType() {\n        return Illuminations.WISP_TRAIL;\n    }\n\n    @Environment(EnvType.CLIENT)\n    public float getRed() {\n        return this.red;\n    }\n\n    @Environment(EnvType.CLIENT)\n    public float getGreen() {\n        return this.green;\n    }\n\n    @Environment(EnvType.CLIENT)\n    public float getBlue() {\n        return this.blue;\n    }\n\n    @Environment(EnvType.CLIENT)\n    public float getRedEvolution() {\n        return redEvolution;\n    }\n\n    @Environment(EnvType.CLIENT)\n    public float getGreenEvolution() {\n        return greenEvolution;\n    }\n\n    @Environment(EnvType.CLIENT)\n    public float getBlueEvolution() {\n        return blueEvolution;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/aura/AutumnLeavesParticle.java",
    "content": "package ladysnake.illuminations.client.particle.aura;\n\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Quaternion;\nimport net.minecraft.util.math.Vec3d;\nimport net.minecraft.util.math.Vec3f;\n\nimport java.util.Random;\n\npublic class AutumnLeavesParticle extends SpriteBillboardParticle {\n    private static final Random RANDOM = new Random();\n    private final int variant = RANDOM.nextInt(6);\n    private final SpriteProvider spriteProvider;\n\n    private final double beginX;\n    private final double beginY;\n    private final double beginZ;\n\n    public AutumnLeavesParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y + 0.05F, z, velocityX, velocityY, velocityZ);\n        this.spriteProvider = spriteProvider;\n\n        this.scale *= 0.5F + RANDOM.nextFloat() / 2.0F;\n        this.maxAge = 30 + RANDOM.nextInt(60);\n        this.collidesWithWorld = true;\n        this.setSprite(spriteProvider.getSprite(this.variant % 3, 2));\n\n        this.colorGreen = RANDOM.nextFloat() / 2f + 0.5f;\n        this.colorBlue = 0f;\n\n        beginX = x;\n        beginY = y;\n        beginZ = z;\n        this.angle = random.nextFloat() * 360f;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = this.angle;\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getDegreesQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    public void tick() {\n        if (this.age++ < this.maxAge - 10) {\n            this.colorAlpha = Math.min(1f, this.colorAlpha + 0.1f);\n        }\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        this.colorGreen *= 0.98;\n\n        float fraction = this.age / (float) this.maxAge;\n        this.x = MathHelper.cos(this.age / 15.0F + 1.0471973f * (variant + 0.5f)) * fraction + beginX;\n        this.z = MathHelper.sin(this.age / 15.0F + 1.0471973f * (variant + 0.5f)) * fraction + beginZ;\n        this.y = this.age / 34.0F + beginY + 0.05F;\n\n        if (this.age >= this.maxAge - 10) {\n\n            this.colorAlpha = Math.max(0f, this.colorAlpha - 0.1f);\n\n            if (this.colorAlpha <= 0f) {\n                this.markDead();\n            }\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new AutumnLeavesParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/aura/ChorusAuraParticle.java",
    "content": "package ladysnake.illuminations.client.particle.aura;\n\nimport ladysnake.illuminations.client.particle.ChorusPetalParticle;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.tag.FluidTags;\nimport net.minecraft.util.math.BlockPos;\n\npublic class ChorusAuraParticle extends ChorusPetalParticle {\n    public ChorusAuraParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ, spriteProvider);\n\n        this.velocityY = -0.01 - random.nextFloat() / 10;\n        this.velocityX = random.nextGaussian() / 50;\n        this.velocityZ = random.nextGaussian() / 50;\n\n        this.setPos(this.x + TwilightFireflyParticle.getWanderingDistance(this.random), this.y + random.nextFloat() * 2d, this.z + TwilightFireflyParticle.getWanderingDistance(this.random));\n    }\n\n    public void tick() {\n        if (this.age++ < this.maxAge) {\n            this.colorAlpha = Math.min(1f, this.colorAlpha + 0.1f);\n        }\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        this.move(this.velocityX, this.velocityY, this.velocityZ);\n        this.velocityX *= 0.99D;\n        this.velocityY *= 0.99D;\n        this.velocityZ *= 0.99D;\n\n        this.colorRed *= 0.99;\n        this.colorGreen *= 0.98;\n\n        if (this.age >= this.maxAge) {\n//            this.colorRed *= 0.9;\n//            this.colorGreen *= 0.8;\n\n            this.colorAlpha = Math.max(0f, this.colorAlpha - 0.1f);\n\n            if (this.colorAlpha <= 0f) {\n                this.markDead();\n            }\n        }\n\n        this.prevAngle = this.angle;\n        if (this.onGround || this.world.getFluidState(new BlockPos(this.x, this.y, this.z)).isIn(FluidTags.WATER)) {\n            this.velocityX = 0;\n            this.velocityY = 0;\n            this.velocityZ = 0;\n        }\n\n        if (this.velocityY != 0) {\n            this.angle += Math.PI * Math.sin(rotationFactor * this.age) / 2;\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new ChorusAuraParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/aura/ConfettiParticle.java",
    "content": "package ladysnake.illuminations.client.particle.aura;\n\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.tag.FluidTags;\nimport net.minecraft.util.math.*;\n\nimport java.util.Random;\nimport java.util.concurrent.ThreadLocalRandom;\n\npublic class ConfettiParticle extends SpriteBillboardParticle {\n\n    private static final Random RANDOM = new Random();\n    private final double rotationXmod;\n    private final double rotationYmod;\n    private final double rotationZmod;\n    private final float groundOffset;\n    private float rotationX;\n    private float rotationY;\n    private float rotationZ;\n\n    public ConfettiParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ);\n\n        this.scale *= 0.1f + new Random().nextFloat() * 0.5f;\n        this.collidesWithWorld = true;\n        this.setSpriteForAge(spriteProvider);\n        this.colorAlpha = 1f;\n\n        this.maxAge = ThreadLocalRandom.current().nextInt(400, 420); // live approx 20s\n        this.colorRed = RANDOM.nextFloat();\n        this.colorBlue = RANDOM.nextFloat();\n        this.colorGreen = RANDOM.nextFloat();\n\n        this.gravityStrength = 0.1f;\n        this.velocityX = velocityX * 10f;\n        this.velocityY = velocityY * 10f;\n        this.velocityZ = velocityZ * 10f;\n        this.velocityMultiplier = 0.5f;\n\n        this.rotationX = RANDOM.nextFloat() * 360f;\n        this.rotationY = RANDOM.nextFloat() * 360f;\n        this.rotationZ = RANDOM.nextFloat() * 360f;\n        this.rotationXmod = RANDOM.nextFloat() * 10f * (random.nextBoolean() ? -1 : 1);\n        this.rotationYmod = RANDOM.nextFloat() * 10f * (random.nextBoolean() ? -1 : 1);\n        this.rotationZmod = RANDOM.nextFloat() * 10f * (random.nextBoolean() ? -1 : 1);\n\n        this.groundOffset = RANDOM.nextFloat() / 100f + 0.001f;\n\n        this.setPos(this.x + TwilightFireflyParticle.getWanderingDistance(this.random), this.y + random.nextFloat() * 2d, this.z + TwilightFireflyParticle.getWanderingDistance(this.random));\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        if (!this.onGround) {\n            rotationX += rotationXmod;\n            rotationY += rotationYmod;\n            rotationZ += rotationZmod;\n\n            for (int k = 0; k < 4; ++k) {\n                Vec3f Vec3f2 = Vec3fs[k];\n                Vec3f2.rotate(new Quaternion(rotationX, rotationY, rotationZ, true));\n                Vec3f2.scale(j);\n                Vec3f2.add(f, g, h);\n            }\n        } else {\n            rotationX = 90f;\n            rotationY = 0;\n\n            for (int k = 0; k < 4; ++k) {\n                Vec3f Vec3f2 = Vec3fs[k];\n                Vec3f2.rotate(new Quaternion(rotationX, rotationY, rotationZ, true));\n                Vec3f2.scale(j);\n                Vec3f2.add(f, g + this.groundOffset, h);\n            }\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(maxU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(minU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n    }\n\n    public void tick() {\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n        if (this.age++ >= this.maxAge) {\n            this.markDead();\n        } else {\n            if (this.world.getFluidState(new BlockPos(this.x, this.y + 0.2, this.z)).isEmpty()) {\n                if (this.world.getFluidState(new BlockPos(this.x, this.y - 0.01, this.z)).isIn(FluidTags.WATER)) {\n                    this.onGround = true;\n                    this.velocityY = 0;\n                } else {\n                    this.velocityY -= 0.04D * (double) this.gravityStrength;\n                    this.move(this.velocityX, this.velocityY, this.velocityZ);\n                    if (this.field_28787 && this.y == this.prevPosY) {\n                        this.velocityX *= 1.1D;\n                        this.velocityZ *= 1.1D;\n                    }\n\n                    this.velocityX *= this.velocityMultiplier;\n                    this.velocityY *= this.velocityMultiplier;\n                    this.velocityZ *= this.velocityMultiplier;\n\n                    this.velocityMultiplier = Math.min(0.98f, this.velocityMultiplier * 1.15f);\n\n                    if (this.onGround) {\n                        this.velocityX *= 0.699999988079071D;\n                        this.velocityZ *= 0.699999988079071D;\n                    }\n                }\n            } else {\n                this.markDead();\n            }\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new ConfettiParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/aura/GhostlyAuraParticle.java",
    "content": "package ladysnake.illuminations.client.particle.aura;\n\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.entity.ai.TargetPredicate;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Quaternion;\nimport net.minecraft.util.math.Vec3d;\nimport net.minecraft.util.math.Vec3f;\n\nimport java.util.Random;\n\npublic class GhostlyAuraParticle extends SpriteBillboardParticle {\n    private static final Random RANDOM = new Random();\n    private final float MAXIMUM_ALPHA = 0.02f;\n    private final PlayerEntity owner;\n    private final int variant = RANDOM.nextInt(4);\n    private final SpriteProvider spriteProvider;\n    protected float alpha = 0f;\n    protected float offsetX = RANDOM.nextFloat() * .7f - 0.35f;\n    protected float offsetZ = RANDOM.nextFloat() * .7f - 0.35f;\n    protected float offsetY = 0;\n\n    public GhostlyAuraParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ);\n        this.spriteProvider = spriteProvider;\n        this.owner = world.getClosestPlayer((TargetPredicate.createNonAttackable()).setBaseMaxDistance(1D), this.x, this.y, this.z);\n\n        this.scale *= 1f + RANDOM.nextFloat();\n        this.maxAge = RANDOM.nextInt(5) + 8;\n        this.collidesWithWorld = true;\n        this.setSprite(spriteProvider.getSprite(variant, 3));\n\n        if (this.owner != null) {\n            this.colorRed = 1f;\n            this.colorGreen = 1f;\n            this.colorBlue = 1f;\n            this.setPos(owner.getX() + offsetX, owner.getY() + offsetY, owner.getZ() + offsetZ);\n        } else {\n            this.markDead();\n        }\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getRadialQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            float tmpY = Vec3f2.getY();\n            Vec3f2.set(Vec3f2.getX(), 0, Vec3f2.getZ());\n            // rotate so it always faces the player\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.set(Vec3f2.getX() / (1 + offsetY * offsetY), tmpY * offsetY, Vec3f2.getZ() / (1 + offsetY * offsetY));\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n//        float a = MathHelper.clamp(this.alpha, 0.0F, MAXIMUM_ALPHA);\n\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(colorRed, colorGreen, colorBlue, alpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(colorRed, colorGreen, colorBlue, alpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(colorRed, colorGreen, colorBlue, alpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(colorRed, colorGreen, colorBlue, alpha).light(l).next();\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    public void tick() {\n        if (owner != null) {\n            this.prevPosX = this.x;\n            this.prevPosY = this.y;\n            this.prevPosZ = this.z;\n\n            if (age++ < maxAge) {\n                alpha += 0.01;\n            } else {\n                alpha -= 0.01;\n                if (alpha <= 0) {\n                    this.markDead();\n                }\n            }\n\n            offsetY += 0.1;\n            this.setPos(owner.getX() + offsetX, owner.getY() + offsetY, owner.getZ() + offsetZ);\n        } else {\n            this.markDead();\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new GhostlyAuraParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/aura/GoldenrodAuraParticle.java",
    "content": "package ladysnake.illuminations.client.particle.aura;\n\nimport ladysnake.illuminations.client.particle.ChorusPetalParticle;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.tag.FluidTags;\nimport net.minecraft.util.math.BlockPos;\n\npublic class GoldenrodAuraParticle extends ChorusPetalParticle {\n    private int elevation = 0;\n\n    public GoldenrodAuraParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ, spriteProvider);\n\n        this.velocityY = 0;\n        this.velocityX = 0;\n        this.velocityZ = 0;\n        this.scale = 0.9f;\n\n\n        this.setPos(this.x + get_rando(), this.y + random.nextFloat() + 0.5 * 1.5d, this.z + get_rando());\n    }\n\n    public double get_rando() {\n        double rando = (random.nextFloat() - 0.5) * 1.4;\n        if (rando < 0.3 && rando > 0) {\n            rando += 0.3;\n        } else if (rando < 0 && rando > -0.3) {\n            rando -= 0.3;\n        }\n        return rando;\n    }\n\n    public void tick() {\n        this.age += 2;\n        if (this.age < this.maxAge) {\n            this.colorAlpha = Math.min(1f, this.colorAlpha + 0.1f);\n        }\n        this.scale *= 0.9;\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        this.move(this.velocityX, this.velocityY, this.velocityZ);\n        if (this.velocityY == 0) {\n            int temp_rand = random.nextInt(15);\n            if (temp_rand == 0 && elevation < 1) {\n                this.velocityY = 0.3;\n                elevation += 1;\n            } else if (temp_rand == 1 && elevation > -2) {\n                this.velocityY = -0.3;\n                elevation -= 1;\n            }\n        } else if (Math.abs(this.velocityY) > 0.08) {\n            this.velocityY *= 0.5;\n        } else {\n            this.velocityY = 0;\n        }\n\n        this.colorBlue *= 0.96;\n        this.colorGreen *= 0.98;\n\n        if (this.age >= this.maxAge) {\n            this.colorAlpha = Math.max(0f, this.colorAlpha - 0.1f);\n            if (this.colorAlpha <= 0f) {\n                this.markDead();\n            }\n        }\n\n        this.prevAngle = this.angle;\n        if (this.onGround || this.world.getFluidState(new BlockPos(this.x, this.y, this.z)).isIn(FluidTags.WATER)) {\n            this.velocityX = 0;\n            this.velocityY = 0;\n            this.velocityZ = 0;\n        }\n\n        this.angle = 0;\n\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new GoldenrodAuraParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/aura/PrismarineAuraParticle.java",
    "content": "package ladysnake.illuminations.client.particle.aura;\n\nimport ladysnake.illuminations.client.particle.PrismarineCrystalParticle;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\n\nimport java.util.concurrent.ThreadLocalRandom;\n\npublic class PrismarineAuraParticle extends PrismarineCrystalParticle {\n    public PrismarineAuraParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ, spriteProvider);\n\n        this.setPos(this.x + TwilightFireflyParticle.getWanderingDistance(this.random), this.y + random.nextFloat() * 2d, this.z + TwilightFireflyParticle.getWanderingDistance(this.random));\n\n        this.maxAge = ThreadLocalRandom.current().nextInt(100, 400);\n    }\n\n    public void tick() {\n        if (this.age++ < this.maxAge) {\n            this.colorAlpha = Math.min(1f, this.colorAlpha + 0.1f);\n        }\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        this.move(this.velocityX, this.velocityY, this.velocityZ);\n\n        if (this.age >= this.maxAge) {\n            this.colorAlpha = Math.max(0f, this.colorAlpha - 0.1f);\n\n            if (this.colorAlpha <= 0f) {\n                this.markDead();\n            }\n        }\n\n        this.colorRed = 0.8f + (float) Math.sin(this.age / 10f) * 0.2f;\n//        this.colorBlue = 0.9f + (float) Math.cos(this.age/10f) * 0.1f;\n\n        this.prevAngle = this.angle;\n        if (this.onGround) {\n            this.velocityX = 0;\n            this.velocityY = 0;\n            this.velocityZ = 0;\n        }\n\n        if (this.velocityY != 0) {\n            this.angle += Math.PI * Math.sin(rotationFactor * this.age) / 2;\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new PrismarineAuraParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/aura/PrismaticConfettiParticle.java",
    "content": "package ladysnake.illuminations.client.particle.aura;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.data.PlayerCosmeticData;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.entity.ai.TargetPredicate;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.particle.DefaultParticleType;\n\nimport java.util.Objects;\n\npublic class PrismaticConfettiParticle extends ConfettiParticle {\n    public PrismaticConfettiParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ, spriteProvider);\n\n        PlayerEntity owner = world.getClosestPlayer(TargetPredicate.createNonAttackable().setBaseMaxDistance(1D), this.x, this.y, this.z);\n\n        if (owner != null && owner.getUuid() != null && Illuminations.getCosmeticData(owner) != null) {\n            PlayerCosmeticData data = Objects.requireNonNull(Illuminations.getCosmeticData(owner));\n            this.colorRed = data.getColorRed() / 255f;\n            this.colorGreen = data.getColorGreen() / 255f;\n            this.colorBlue = data.getColorBlue() / 255f;\n        } else {\n            this.markDead();\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new PrismaticConfettiParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/aura/SculkTendrilParticle.java",
    "content": "package ladysnake.illuminations.client.particle.aura;\n\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.*;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.math.*;\n\nimport java.util.Random;\n\npublic class SculkTendrilParticle extends SpriteBillboardParticle {\n    private static final Random RANDOM = new Random();\n    private final SpriteProvider provider;\n    private boolean wasOnGround = false;\n\n    public SculkTendrilParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x + (RANDOM.nextFloat() * 2f - 1.0f), y, z + (RANDOM.nextFloat() * 2f - 1.0f), velocityX, velocityY, velocityZ);\n        this.setSprite(spriteProvider.getSprite(0, 1));\n        provider = spriteProvider;\n        this.maxAge = 100;\n        this.angle = RANDOM.nextFloat() * 180f;\n\n        this.scale = 0f;\n        this.collidesWithWorld = true;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(new Quaternion(0f, angle, 0f, true));\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(colorRed, colorGreen, colorBlue, colorAlpha).light(l).next();\n    }\n\n    @Override\n    public void tick() {\n        if (!this.onGround) {\n            this.move(0, -1D, 0);\n            wasOnGround = false;\n            return;\n        }\n        if (!wasOnGround) {\n            this.repositionFromBoundingBox();\n            wasOnGround = true;\n        }\n        if (this.age++ < this.maxAge) {\n            if (this.scale == 0f) {\n                this.y -= 0.4f;\n            }\n            if (this.scale < 0.4f) {\n                this.scale = Math.min(0.4f, this.scale + 0.05f);\n                this.y += 0.05f;\n            }\n            if (this.age == 75) {\n                this.setSprite(provider.getSprite(1, 1));\n            }\n        }\n        this.setBoundingBox(this.getBoundingBox().expand(0, 1, 0));\n\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n        this.prevAngle = this.angle;\n\n        if (this.age >= this.maxAge) {\n            this.scale = Math.max(0f, this.scale - 0.05f);\n            this.y -= 0.05f;\n\n            if (this.scale <= 0f) {\n                this.markDead();\n            }\n        }\n    }\n\n    @Override\n    protected void repositionFromBoundingBox() {\n        Box box = this.getBoundingBox();\n        this.x = (box.minX + box.maxX) / 2.0D;\n        this.y = box.minY + 0.4D;\n        this.z = (box.minZ + box.maxZ) / 2.0D;\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new SculkTendrilParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/aura/ShadowbringerParticle.java",
    "content": "package ladysnake.illuminations.client.particle.aura;\n\nimport ladysnake.illuminations.client.particle.ChorusPetalParticle;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.fluid.Fluids;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.math.BlockPos;\n\npublic class ShadowbringerParticle extends ChorusPetalParticle {\n\n    private final SpriteProvider spriteProvider;\n    private final float randEffect = random.nextFloat() + 0.5F;\n    boolean negateX = random.nextBoolean(), negateZ = random.nextBoolean();\n\n    public ShadowbringerParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ, spriteProvider);\n\n        this.maxAge = 40 + random.nextInt(40);\n        this.velocityY = (0.2 + random.nextFloat()) / 10;\n        this.velocityX = negateX ? -random.nextGaussian() / 50 : random.nextGaussian() / 50;\n        this.velocityZ = negateZ ? -random.nextGaussian() / 50 : random.nextGaussian() / 50;\n        this.scale = (float) (scale + (random.nextGaussian() / 12.0));\n        this.spriteProvider = spriteProvider;\n\n        this.setSprite(spriteProvider.getSprite(0, 3));\n        colorAlpha = 0;\n\n\n        this.setPos(this.x + TwilightFireflyParticle.getWanderingDistance(this.random), this.y + random.nextFloat() * 1.5, this.z + TwilightFireflyParticle.getWanderingDistance(this.random));\n    }\n\n    public void tick() {\n        if (this.age++ < this.maxAge) {\n            this.colorAlpha = Math.min(1f, this.colorAlpha + 0.045f);\n        }\n\n        this.prevPosX = this.x;\n        this.prevPosY = this.y;\n        this.prevPosZ = this.z;\n\n        velocityX = velocityX * 0.85 + (negateX ? -(Math.sin(age / (2.0 + randEffect)) / 20.0) : Math.sin(age / 3.0) / 20.0);\n        velocityZ = velocityZ * 0.85 + (negateZ ? -(Math.sin(age / (2.0 + randEffect)) / 20.0) : Math.sin(age / 3.0) / 20.0);\n\n        this.move(this.velocityX, this.velocityY, this.velocityZ);\n\n        if (age > 0 && maxAge > 0) {\n            float agePercent = (float) ((float) age / maxAge * 1.5);\n            this.setSprite(spriteProvider.getSprite(Math.min(3, (int) (agePercent * 4)), 3));\n        }\n\n        if (this.age >= this.maxAge) {\n            this.colorAlpha = Math.max(0f, this.colorAlpha - 0.015f);\n\n            if (this.colorAlpha <= 0f) {\n                this.markDead();\n            }\n        }\n\n        this.prevAngle = this.angle;\n        if (this.onGround || this.world.getFluidState(new BlockPos(this.x, this.y, this.z)).getFluid() != Fluids.EMPTY) {\n            this.velocityY *= 0.95;\n        }\n\n        if (this.velocityY != 0) {\n            this.angle += Math.PI * Math.sin(rotationFactor * this.age) / 2;\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new ShadowbringerParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/aura/TwilightFireflyParticle.java",
    "content": "package ladysnake.illuminations.client.particle.aura;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport ladysnake.illuminations.client.particle.FireflyParticle;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.entity.ai.TargetPredicate;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.math.*;\n\nimport java.util.Optional;\nimport java.util.Random;\n\npublic class TwilightFireflyParticle extends FireflyParticle {\n    private final PlayerEntity owner;\n\n    public TwilightFireflyParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ, spriteProvider);\n\n        this.maxAge = 20;\n        this.owner = world.getClosestPlayer(TargetPredicate.createNonAttackable().setBaseMaxDistance(1D), this.x, this.y, this.z);\n        this.maxHeight = 2;\n\n        Optional.ofNullable(owner).map(Illuminations::getCosmeticData).ifPresentOrElse(\n                data -> {\n                    this.colorRed = data.getColorRed() / 255f;\n                    this.colorGreen = data.getColorGreen() / 255f;\n                    this.colorBlue = data.getColorBlue() / 255f;\n                    this.nextAlphaGoal = 1f;\n                },\n                this::markDead\n        );\n\n        this.setPos(this.x + TwilightFireflyParticle.getWanderingDistance(this.random), this.y + random.nextFloat() * 2d, this.z + TwilightFireflyParticle.getWanderingDistance(this.random));\n    }\n\n    public static double getWanderingDistance(Random random) {\n        return random.nextGaussian() / 5d;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getRadialQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n        float a = Math.min(1f, Math.max(0f, this.colorAlpha));\n\n        // colored layer\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, minV + (maxV - minV) / 2.0F).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, minV + (maxV - minV) / 2.0F).color(this.colorRed, this.colorGreen, this.colorBlue, a).light(l).next();\n\n        // white center\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(1f, 1f, 1f, (a * Config.getFireflyWhiteAlpha()) / 100f).light(l).next();\n    }\n\n\n    @Override\n    public void tick() {\n        if (owner != null) {\n            this.prevPosX = this.x;\n            this.prevPosY = this.y;\n            this.prevPosZ = this.z;\n\n            // fade and die on daytime or if old enough\n            if (this.age++ >= this.maxAge) {\n                nextAlphaGoal = -BLINK_STEP;\n                if (colorAlpha < 0f) {\n                    this.markDead();\n                }\n            }\n\n            // blinking\n            if (colorAlpha > nextAlphaGoal - BLINK_STEP && colorAlpha < nextAlphaGoal + BLINK_STEP) {\n                nextAlphaGoal = new Random().nextFloat();\n            } else {\n                if (nextAlphaGoal > colorAlpha) {\n                    colorAlpha = Math.min(colorAlpha + BLINK_STEP, 1f);\n                } else if (nextAlphaGoal < colorAlpha) {\n                    colorAlpha = Math.max(colorAlpha - BLINK_STEP, 0f);\n                }\n            }\n\n            this.targetChangeCooldown -= (new Vec3d(x, y, z).squaredDistanceTo(prevPosX, prevPosY, prevPosZ) < 0.0125) ? 10 : 1;\n\n            if ((this.world.getTime() % 20 == 0) && ((xTarget == 0 && yTarget == 0 && zTarget == 0) || new Vec3d(x, y, z).squaredDistanceTo(xTarget, yTarget, zTarget) < 9 || targetChangeCooldown <= 0)) {\n                selectBlockTarget();\n            }\n\n            Vec3d targetVector = new Vec3d(this.xTarget - this.x, this.yTarget - this.y, this.zTarget - this.z);\n            double length = targetVector.length();\n            targetVector = targetVector.multiply(0.025 / length);\n\n\n            if (!this.world.getBlockState(new BlockPos(this.x, this.y - 0.1, this.z)).getBlock().canMobSpawnInside()) {\n                velocityX = (0.9) * velocityX + (0.1) * targetVector.x;\n                velocityY = 0.05;\n                velocityZ = (0.9) * velocityZ + (0.1) * targetVector.z;\n            } else {\n                velocityX = (0.9) * velocityX + (0.1) * targetVector.x;\n                velocityY = (0.2) * velocityY + (0.1) * targetVector.y;\n                velocityZ = (0.9) * velocityZ + (0.1) * targetVector.z;\n            }\n\n            if (!new BlockPos(x, y, z).equals(this.getTargetPosition())) {\n                this.move(velocityX, velocityY, velocityZ);\n            }\n        } else {\n            this.markDead();\n        }\n    }\n\n    private void selectBlockTarget() {\n        // Behaviour\n        double groundLevel = 0;\n        for (int i = 0; i < 20; i++) {\n            BlockState checkedBlock = this.world.getBlockState(new BlockPos(this.x, this.y - i, this.z));\n            if (!checkedBlock.getBlock().canMobSpawnInside()) {\n                groundLevel = this.y - i;\n            }\n            if (groundLevel != 0) break;\n        }\n\n        this.xTarget = owner.getX() + random.nextGaussian();\n        this.yTarget = Math.min(Math.max(owner.getY() + random.nextGaussian(), groundLevel), groundLevel + maxHeight);\n        this.zTarget = owner.getZ() + random.nextGaussian();\n\n        BlockPos targetPos = new BlockPos(this.xTarget, this.yTarget, this.zTarget);\n        if (this.world.getBlockState(targetPos).isFullCube(world, targetPos)\n                && this.world.getBlockState(targetPos).isSolidBlock(world, targetPos)) {\n            this.yTarget += 1;\n        }\n\n        targetChangeCooldown = random.nextInt() % 100;\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new TwilightFireflyParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/pet/JackoParticle.java",
    "content": "package ladysnake.illuminations.client.particle.pet;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.math.*;\n\npublic class JackoParticle extends PetParticle {\n    private float glow;\n\n    public JackoParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ, spriteProvider);\n\n        this.glow = 0;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getRadialQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int p = this.getBrightness(tickDelta);\n        int l = 15728880;\n        float a = Math.min(1f, Math.max(0f, this.alpha));\n        float gl = Math.min(1f, Math.max(0f, this.glow));\n\n        // pumpkin\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, a).light(p).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV).color(1f, 1f, 1f, a).light(p).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV).color(1f, 1f, 1f, a).light(p).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, a).light(p).next();\n\n        // pumpkin glow\n        vertexConsumer.vertex(Vec3fs[0].getX(), Vec3fs[0].getY(), Vec3fs[0].getZ()).texture(maxU, maxV).color(1f, 1f, 1f, gl).light(l).next();\n        vertexConsumer.vertex(Vec3fs[1].getX(), Vec3fs[1].getY(), Vec3fs[1].getZ()).texture(maxU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, gl).light(l).next();\n        vertexConsumer.vertex(Vec3fs[2].getX(), Vec3fs[2].getY(), Vec3fs[2].getZ()).texture(minU, minV + (maxV - minV) / 2.0F).color(1f, 1f, 1f, gl).light(l).next();\n        vertexConsumer.vertex(Vec3fs[3].getX(), Vec3fs[3].getY(), Vec3fs[3].getZ()).texture(minU, maxV).color(1f, 1f, 1f, gl).light(l).next();\n    }\n\n    @Override\n    public void tick() {\n        super.tick();\n\n        if (owner != null) {\n            // if night or dark enough\n            if (Illuminations.isNightTime(world) || (this.world.getLightLevel(new BlockPos(this.x, this.y, this.z)) < 10)) {\n                glow = 1;\n            } else {\n                glow = 0;\n            }\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new JackoParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/pet/PetParticle.java",
    "content": "package ladysnake.illuminations.client.particle.pet;\n\nimport ladysnake.illuminations.client.particle.FireflyParticle;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.ParticleTextureSheet;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.render.Camera;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.entity.ai.TargetPredicate;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Quaternion;\nimport net.minecraft.util.math.Vec3d;\nimport net.minecraft.util.math.Vec3f;\n\nimport java.util.Random;\n\npublic class PetParticle extends FireflyParticle {\n    private static final Random RANDOM = new Random();\n    protected final PlayerEntity owner;\n    private final SpriteProvider spriteProvider;\n    protected float alpha = 0f;\n\n    public PetParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, SpriteProvider spriteProvider) {\n        super(world, x, y, z, velocityX, velocityY, velocityZ, spriteProvider);\n        this.spriteProvider = spriteProvider;\n        this.setSpriteForAge(spriteProvider);\n\n        this.alpha = 0;\n        this.maxAge = 40;\n        this.owner = world.getClosestPlayer(TargetPredicate.createNonAttackable().setBaseMaxDistance(1D), this.x, this.y, this.z);\n\n        this.scale = 0.2f;\n\n        if (this.owner == null) {\n            this.markDead();\n        }\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp((double) tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp((double) tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp((double) tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n        Quaternion quaternion2;\n        if (this.angle == 0.0F) {\n            quaternion2 = camera.getRotation();\n        } else {\n            quaternion2 = new Quaternion(camera.getRotation());\n            float i = MathHelper.lerp(tickDelta, this.prevAngle, this.angle);\n            quaternion2.hamiltonProduct(Vec3f.POSITIVE_Z.getRadialQuaternion(i));\n        }\n\n        Vec3f Vec3f = new Vec3f(-1.0F, -1.0F, 0.0F);\n        Vec3f.rotate(quaternion2);\n        Vec3f[] Vec3fs = new Vec3f[]{new Vec3f(-1.0F, -1.0F, 0.0F), new Vec3f(-1.0F, 1.0F, 0.0F), new Vec3f(1.0F, 1.0F, 0.0F), new Vec3f(1.0F, -1.0F, 0.0F)};\n        float j = this.getSize(tickDelta);\n\n        for (int k = 0; k < 4; ++k) {\n            Vec3f Vec3f2 = Vec3fs[k];\n            Vec3f2.rotate(quaternion2);\n            Vec3f2.scale(j);\n            Vec3f2.add(f, g, h);\n        }\n\n        float minU = this.getMinU();\n        float maxU = this.getMaxU();\n        float minV = this.getMinV();\n        float maxV = this.getMaxV();\n        int l = 15728880;\n\n        vertexConsumer.vertex((double) Vec3fs[0].getX(), (double) Vec3fs[0].getY(), (double) Vec3fs[0].getZ()).texture(maxU, maxV).color(1f, 1f, 1f, alpha).light(l).next();\n        vertexConsumer.vertex((double) Vec3fs[1].getX(), (double) Vec3fs[1].getY(), (double) Vec3fs[1].getZ()).texture(maxU, minV).color(1f, 1f, 1f, alpha).light(l).next();\n        vertexConsumer.vertex((double) Vec3fs[2].getX(), (double) Vec3fs[2].getY(), (double) Vec3fs[2].getZ()).texture(minU, minV).color(1f, 1f, 1f, alpha).light(l).next();\n        vertexConsumer.vertex((double) Vec3fs[3].getX(), (double) Vec3fs[3].getY(), (double) Vec3fs[3].getZ()).texture(minU, maxV).color(1f, 1f, 1f, alpha).light(l).next();\n    }\n\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.PARTICLE_SHEET_TRANSLUCENT;\n    }\n\n    @Override\n    public void tick() {\n        if (this.age > 10) {\n            alpha = 1;\n        } else {\n            alpha = 0;\n        }\n\n        if (owner != null) {\n            this.prevPosX = this.x;\n            this.prevPosY = this.y;\n            this.prevPosZ = this.z;\n\n            // die if old enough\n            if (this.age++ >= this.maxAge) {\n                this.markDead();\n            }\n\n            this.setPos(owner.getX() + Math.cos(owner.bodyYaw / 50) * 0.5, owner.getY() + owner.getHeight() + 0.5f + Math.sin(owner.age / 12f) / 12f, owner.getZ() - Math.cos(owner.bodyYaw / 50) * 0.5);\n        } else {\n            this.markDead();\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final SpriteProvider spriteProvider;\n\n        public DefaultFactory(SpriteProvider spriteProvider) {\n            this.spriteProvider = spriteProvider;\n        }\n\n        public Particle createParticle(DefaultParticleType defaultParticleType, ClientWorld clientWorld, double d, double e, double f, double g, double h, double i) {\n            return new PetParticle(clientWorld, d, e, f, g, h, i, this.spriteProvider);\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/pet/PlayerLanternParticle.java",
    "content": "package ladysnake.illuminations.client.particle.pet;\n\nimport ladysnake.illuminations.client.render.GlowyRenderLayer;\nimport ladysnake.illuminations.client.render.entity.model.pet.LanternModel;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.model.Model;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.ParticleTextureSheet;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.render.*;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.entity.ai.TargetPredicate;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.MathHelper;\nimport net.minecraft.util.math.Vec3d;\nimport net.minecraft.util.math.Vec3f;\nimport org.jetbrains.annotations.Nullable;\n\npublic class PlayerLanternParticle extends Particle {\n    public final Identifier texture;\n    final RenderLayer layer;\n    public float yaw;\n    public float pitch;\n    public float prevYaw;\n    public float prevPitch;\n    protected PlayerEntity owner;\n    Model model;\n\n    protected PlayerLanternParticle(ClientWorld world, double x, double y, double z, Identifier texture, float red, float green, float blue) {\n        super(world, x, y, z);\n        this.texture = texture;\n        this.model = new LanternModel(MinecraftClient.getInstance().getEntityModelLoader().getModelPart(LanternModel.MODEL_LAYER));\n        this.layer = RenderLayer.getEntityTranslucent(texture);\n        this.gravityStrength = 0.0F;\n\n        this.maxAge = 35;\n        this.owner = world.getClosestPlayer((TargetPredicate.createNonAttackable()).setBaseMaxDistance(1D), this.x, this.y, this.z);\n\n        if (this.owner == null) {\n            this.markDead();\n        }\n\n        this.colorRed = red;\n        this.colorGreen = green;\n        this.colorBlue = blue;\n        this.colorAlpha = 0;\n    }\n\n    @Override\n    public ParticleTextureSheet getType() {\n        return ParticleTextureSheet.CUSTOM;\n    }\n\n    @Override\n    public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta) {\n        Vec3d vec3d = camera.getPos();\n        float f = (float) (MathHelper.lerp(tickDelta, this.prevPosX, this.x) - vec3d.getX());\n        float g = (float) (MathHelper.lerp(tickDelta, this.prevPosY, this.y) - vec3d.getY());\n        float h = (float) (MathHelper.lerp(tickDelta, this.prevPosZ, this.z) - vec3d.getZ());\n\n        MatrixStack matrixStack = new MatrixStack();\n        matrixStack.translate(f, g, h);\n        matrixStack.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion(MathHelper.lerp(g, this.prevYaw, this.yaw) - 180));\n        matrixStack.multiply(Vec3f.POSITIVE_X.getDegreesQuaternion(MathHelper.lerp(g, this.prevPitch, this.pitch)));\n        matrixStack.scale(0.5F, -0.5F, 0.5F);\n        matrixStack.translate(0, -1, 0);\n        VertexConsumerProvider.Immediate immediate = MinecraftClient.getInstance().getBufferBuilders().getEntityVertexConsumers();\n        VertexConsumer vertexConsumer2 = immediate.getBuffer(GlowyRenderLayer.get(texture));\n        if (colorAlpha > 0) {\n            this.model.render(matrixStack, vertexConsumer2, 15728880, OverlayTexture.DEFAULT_UV, 1.0F, 1.0F, 1.0F, 1.0f);\n        }\n        immediate.draw();\n    }\n\n    @Override\n    public void tick() {\n        if (this.age > 10) {\n            this.colorAlpha = 1f;\n        } else {\n            this.colorAlpha = 0;\n        }\n\n        if (owner != null) {\n            this.prevPosX = this.x;\n            this.prevPosY = this.y;\n            this.prevPosZ = this.z;\n\n            // die if old enough\n            if (this.age++ >= this.maxAge) {\n                this.markDead();\n            }\n\n            this.setPos(owner.getX() + Math.cos(owner.bodyYaw / 50) * 0.5, owner.getY() + owner.getHeight() + 0.5f + Math.sin(owner.age / 12f) / 12f, owner.getZ() - Math.cos(owner.bodyYaw / 50) * 0.5);\n\n            this.prevYaw = this.yaw;\n            this.yaw = owner.age * 2;\n        } else {\n            this.markDead();\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final Identifier texture;\n        private final float red;\n        private final float green;\n        private final float blue;\n\n        public DefaultFactory(SpriteProvider spriteProvider, Identifier texture, float red, float green, float blue) {\n            this.texture = texture;\n            this.red = red;\n            this.green = green;\n            this.blue = blue;\n        }\n\n        @Nullable\n        @Override\n        public Particle createParticle(DefaultParticleType parameters, ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) {\n            return new PlayerLanternParticle(world, x, y, z, this.texture, this.red, this.green, this.blue);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/pet/PlayerWispParticle.java",
    "content": "package ladysnake.illuminations.client.particle.pet;\n\nimport ladysnake.illuminations.client.particle.WillOWispParticle;\nimport ladysnake.illuminations.client.particle.WispTrailParticleEffect;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.entity.ai.TargetPredicate;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.Identifier;\nimport org.jetbrains.annotations.Nullable;\n\npublic class PlayerWispParticle extends WillOWispParticle {\n    protected PlayerEntity owner;\n\n    protected PlayerWispParticle(ClientWorld world, double x, double y, double z, Identifier texture, float red, float green, float blue, float redEvolution, float greenEvolution, float blueEvolution) {\n        super(world, x, y, z, texture, red, green, blue, redEvolution, greenEvolution, blueEvolution);\n\n        this.maxAge = 35;\n        this.owner = world.getClosestPlayer((TargetPredicate.createNonAttackable()).setBaseMaxDistance(1D), this.x, this.y, this.z);\n\n        if (this.owner == null) {\n            this.markDead();\n        }\n\n        this.colorRed = red;\n        this.colorGreen = green;\n        this.colorBlue = blue;\n        this.colorAlpha = 0;\n    }\n\n    @Override\n    public void tick() {\n        if (this.age > 10) {\n            this.colorAlpha = 1f;\n\n            for (int i = 0; i < 1; i++) {\n                this.world.addParticle(new WispTrailParticleEffect(this.colorRed, this.colorGreen, this.colorBlue, this.redEvolution, this.greenEvolution, this.blueEvolution), this.x + random.nextGaussian() / 15, this.y + random.nextGaussian() / 15, this.z + random.nextGaussian() / 15, 0, 0, 0);\n            }\n        } else {\n            this.colorAlpha = 0;\n        }\n\n        if (owner != null) {\n            this.prevPosX = this.x;\n            this.prevPosY = this.y;\n            this.prevPosZ = this.z;\n\n            // die if old enough\n            if (this.age++ >= this.maxAge) {\n                this.markDead();\n            }\n\n            this.setPos(owner.getX() + Math.cos(owner.bodyYaw / 50) * 0.5, owner.getY() + owner.getHeight() + 0.5f + Math.sin(owner.age / 12f) / 12f, owner.getZ() - Math.cos(owner.bodyYaw / 50) * 0.5);\n\n            this.pitch = -owner.getPitch();\n            this.prevPitch = -owner.prevPitch;\n            this.yaw = -owner.getYaw();\n            this.prevYaw = -owner.prevYaw;\n        } else {\n            this.markDead();\n        }\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final Identifier texture;\n        private final float red;\n        private final float green;\n        private final float blue;\n        private final float redEvolution;\n        private final float greenEvolution;\n        private final float blueEvolution;\n\n        public DefaultFactory(SpriteProvider spriteProvider, Identifier texture, float red, float green, float blue, float redEvolution, float greenEvolution, float blueEvolution) {\n            this.texture = texture;\n            this.red = red;\n            this.green = green;\n            this.blue = blue;\n            this.redEvolution = redEvolution;\n            this.greenEvolution = greenEvolution;\n            this.blueEvolution = blueEvolution;\n        }\n\n        @Nullable\n        @Override\n        public Particle createParticle(DefaultParticleType parameters, ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) {\n            return new PlayerWispParticle(world, x, y, z, this.texture, this.red, this.green, this.blue, this.redEvolution, this.greenEvolution, this.blueEvolution);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/particle/pet/PrideHeartParticle.java",
    "content": "package ladysnake.illuminations.client.particle.pet;\n\nimport ladysnake.illuminations.client.render.entity.model.pet.PrideHeartModel;\nimport net.fabricmc.api.EnvType;\nimport net.fabricmc.api.Environment;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleFactory;\nimport net.minecraft.client.particle.SpriteProvider;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.util.Identifier;\nimport org.jetbrains.annotations.Nullable;\n\npublic class PrideHeartParticle extends PlayerLanternParticle {\n    protected PrideHeartParticle(ClientWorld world, double x, double y, double z, Identifier texture, float red, float green, float blue) {\n        super(world, x, y, z, texture, red, green, blue);\n\n        this.model = new PrideHeartModel(MinecraftClient.getInstance().getEntityModelLoader().getModelPart(PrideHeartModel.MODEL_LAYER));\n    }\n\n    @Override\n    public void tick() {\n        super.tick();\n    }\n\n    @Environment(EnvType.CLIENT)\n    public static class DefaultFactory implements ParticleFactory<DefaultParticleType> {\n        private final Identifier texture;\n        private final float red;\n        private final float green;\n        private final float blue;\n\n        public DefaultFactory(SpriteProvider spriteProvider, Identifier texture, float red, float green, float blue) {\n            this.texture = texture;\n            this.red = red;\n            this.green = green;\n            this.blue = blue;\n        }\n\n        @Nullable\n        @Override\n        public Particle createParticle(DefaultParticleType parameters, ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) {\n            return new PrideHeartParticle(world, x, y, z, this.texture, this.red, this.green, this.blue);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/GlowyRenderLayer.java",
    "content": "package ladysnake.illuminations.client.render;\n\nimport ladysnake.illuminations.mixin.RenderLayerAccessor;\nimport net.minecraft.client.render.RenderLayer;\nimport net.minecraft.client.render.RenderPhase;\nimport net.minecraft.client.render.VertexFormat;\nimport net.minecraft.client.render.VertexFormats;\nimport net.minecraft.util.Identifier;\n\npublic class GlowyRenderLayer extends RenderLayer {\n    public GlowyRenderLayer(String name, VertexFormat vertexFormat, VertexFormat.DrawMode drawMode, int expectedBufferSize, boolean hasCrumbling, boolean translucent, Runnable startAction, Runnable endAction) {\n        super(name, vertexFormat, drawMode, expectedBufferSize, hasCrumbling, translucent, startAction, endAction);\n    }\n\n    public static RenderLayer get(Identifier texture) {\n        RenderLayer.MultiPhaseParameters multiPhaseParameters = RenderLayer.MultiPhaseParameters.builder().texture(new RenderPhase.Texture(texture, false, false)).transparency(Transparency.TRANSLUCENT_TRANSPARENCY).cull(DISABLE_CULLING).lightmap(ENABLE_LIGHTMAP).overlay(DISABLE_OVERLAY_COLOR).layering(VIEW_OFFSET_Z_LAYERING).shader(ENERGY_SWIRL_SHADER).build(true);\n        return RenderLayerAccessor.invokeOf(\"crown\", VertexFormats.POSITION_COLOR_TEXTURE_OVERLAY_LIGHT_NORMAL, VertexFormat.DrawMode.QUADS, 256, false, false, multiPhaseParameters);\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/entity/feature/OverheadFeatureRenderer.java",
    "content": "package ladysnake.illuminations.client.render.entity.feature;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.data.PlayerCosmeticData;\nimport ladysnake.illuminations.client.render.GlowyRenderLayer;\nimport ladysnake.illuminations.client.render.entity.model.hat.OverheadModel;\nimport net.minecraft.client.network.AbstractClientPlayerEntity;\nimport net.minecraft.client.render.OverlayTexture;\nimport net.minecraft.client.render.VertexConsumerProvider;\nimport net.minecraft.client.render.entity.EntityRendererFactory;\nimport net.minecraft.client.render.entity.feature.FeatureRenderer;\nimport net.minecraft.client.render.entity.feature.FeatureRendererContext;\nimport net.minecraft.client.render.entity.model.PlayerEntityModel;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.util.Identifier;\n\nimport java.util.Map;\nimport java.util.stream.Collectors;\n\npublic class OverheadFeatureRenderer extends FeatureRenderer<AbstractClientPlayerEntity, PlayerEntityModel<AbstractClientPlayerEntity>> {\n    private final Map<String, ResolvedOverheadData> models;\n\n    public OverheadFeatureRenderer(FeatureRendererContext<AbstractClientPlayerEntity, PlayerEntityModel<AbstractClientPlayerEntity>> featureRendererContext, EntityRendererFactory.Context loader) {\n        super(featureRendererContext);\n        this.models = Illuminations.OVERHEADS_DATA.entrySet().stream()\n                .collect(Collectors.toMap(Map.Entry::getKey, data -> new ResolvedOverheadData(data.getValue().getTexture(), data.getValue().createModel(loader))));\n    }\n\n    @Override\n    public void render(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, AbstractClientPlayerEntity entity, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) {\n        PlayerCosmeticData cosmeticData = Illuminations.getCosmeticData(entity);\n        if (cosmeticData != null && !entity.isInvisible()) {\n            String playerOverhead = cosmeticData.getOverhead();\n            if (playerOverhead != null) {\n                ResolvedOverheadData resolvedOverheadData = this.models.get(playerOverhead);\n                if (resolvedOverheadData != null) {\n                    Identifier texture = resolvedOverheadData.texture();\n                    OverheadModel model = resolvedOverheadData.model();\n\n                    model.head.pivotX = this.getContextModel().head.pivotX;\n                    model.head.pivotY = this.getContextModel().head.pivotY;\n                    model.head.pitch = this.getContextModel().head.pitch;\n                    model.head.yaw = this.getContextModel().head.yaw;\n                    model.render(matrices, vertexConsumers.getBuffer(GlowyRenderLayer.get(texture)), 15728880, OverlayTexture.DEFAULT_UV, 1f, 1f, 1f, 1f);\n                }\n            }\n        }\n    }\n\n    private record ResolvedOverheadData(Identifier texture, OverheadModel model) {\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/entity/model/hat/CrownModel.java",
    "content": "package ladysnake.illuminations.client.render.entity.model.hat;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport net.minecraft.client.model.*;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.render.entity.EntityRendererFactory;\nimport net.minecraft.client.render.entity.model.EntityModelLayer;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.util.Identifier;\n\npublic class CrownModel extends OverheadModel {\n    public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier(Illuminations.MODID, \"crown\"), \"main\");\n\n    public CrownModel(EntityRendererFactory.Context ctx) {\n        super(ctx, MODEL_LAYER);\n\n        ModelPart crown = this.head.getChild(\"crown\");\n        ModelPart south_r1 = crown.getChild(\"south_r1\");\n        ModelPart east_r1 = crown.getChild(\"east_r1\");\n        ModelPart north_r1 = crown.getChild(\"north_r1\");\n        ModelPart west_r1 = crown.getChild(\"west_r1\");\n        setRotationAngle(east_r1, -0.2618F, 1.5708F, 0.0F);\n        setRotationAngle(north_r1, -0.2618F, 3.1416F, 0.0F);\n        setRotationAngle(west_r1, -0.2618F, -1.5708F, 0.0F);\n        setRotationAngle(south_r1, -0.2618F, 0.0F, 0.0F);\n    }\n\n    public static TexturedModelData getTexturedModelData() {\n        ModelData modelData = new ModelData();\n        ModelPartData modelPartData = modelData.getRoot();\n        ModelPartData modelPartData1 = modelPartData.addChild(\"head\", ModelPartBuilder.create().uv(0, 7).cuboid(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, new Dilation(-4.0f)), ModelTransform.pivot(0.0F, 0.0F, 0.0F));\n        ModelPartData modelPartData2 = modelPartData1.addChild(\"crown\", ModelPartBuilder.create().uv(0, 0).cuboid(-4.0F, -13.0F, -4.0F, 8.0F, 8.0F, 8.0F, new Dilation(-0.5f)), ModelTransform.pivot(0.0F, -4.0F, 0.0F));\n        modelPartData2.addChild(\"west_r1\", ModelPartBuilder.create().uv(7, 39).cuboid(-4.0F, -8.0F, 3.0F, 8.0F, 8.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.0F, -7.0F, 0.0F));\n        modelPartData2.addChild(\"north_r1\", ModelPartBuilder.create().uv(7, 15).cuboid(-4.0F, -8.0F, 3.0F, 8.0F, 8.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.0F, -7.0F, 0.0F));\n        modelPartData2.addChild(\"east_r1\", ModelPartBuilder.create().uv(7, 23).cuboid(-4.0F, -8.0F, 3.0F, 8.0F, 8.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.0F, -7.0F, 0.0F));\n        modelPartData2.addChild(\"south_r1\", ModelPartBuilder.create().uv(7, 31).cuboid(-4.0F, -8.0F, 3.0F, 8.0F, 8.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.0F, -7.0F, 0.0F));\n        return TexturedModelData.of(modelData, 32, 48);\n    }\n\n    @Override\n    public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {\n        head.render(matrixStack, buffer, packedLight, packedOverlay);\n    }\n\n    public void setRotationAngle(ModelPart bone, float x, float y, float z) {\n        bone.pitch = x;\n        bone.yaw = y;\n        bone.roll = z;\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/entity/model/hat/HaloModel.java",
    "content": "package ladysnake.illuminations.client.render.entity.model.hat;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport net.minecraft.client.model.*;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.render.entity.EntityRendererFactory;\nimport net.minecraft.client.render.entity.model.EntityModelLayer;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.util.Identifier;\n\npublic class HaloModel extends OverheadModel {\n    public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier(Illuminations.MODID, \"halo\"), \"main\");\n\n    public HaloModel(EntityRendererFactory.Context ctx) {\n        super(ctx, MODEL_LAYER);\n    }\n\n    public static TexturedModelData getTexturedModelData() {\n        ModelData modelData = new ModelData();\n        ModelPartData modelPartData = modelData.getRoot();\n        ModelPartData modelPartData1 = modelPartData.addChild(\"head\", ModelPartBuilder.create().uv(0, 7).cuboid(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, new Dilation(-4.0f)), ModelTransform.pivot(0.0F, 0.0F, 0.0F));\n        modelPartData1.addChild(\"halo\", ModelPartBuilder.create().uv(0, 0).cuboid(-8.0F, -11.0F, 5.0F, 16.0F, 16.0F, 0.0F), ModelTransform.pivot(0.0F, -4.0F, 0.0F));\n        return TexturedModelData.of(modelData, 32, 48);\n    }\n\n    @Override\n    public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {\n        head.render(matrixStack, buffer, packedLight, packedOverlay);\n    }\n\n    public void setRotationAngle(ModelPart bone, float x, float y, float z) {\n        bone.pitch = x;\n        bone.yaw = y;\n        bone.roll = z;\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/entity/model/hat/HornsModel.java",
    "content": "package ladysnake.illuminations.client.render.entity.model.hat;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport net.minecraft.client.model.*;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.render.entity.EntityRendererFactory;\nimport net.minecraft.client.render.entity.model.EntityModelLayer;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.util.Identifier;\n\npublic class HornsModel extends OverheadModel {\n    public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier(Illuminations.MODID, \"horns\"), \"main\");\n\n    public HornsModel(EntityRendererFactory.Context ctx) {\n        super(ctx, MODEL_LAYER);\n\n        ModelPart horns = this.head.getChild(\"horns\");\n        ModelPart south_r1 = horns.getChild(\"south_r1\");\n        ModelPart east_r1 = horns.getChild(\"east_r1\");\n        ModelPart west_r1 = horns.getChild(\"west_r1\");\n        setRotationAngle(west_r1, 0.0F, 2.5307F, 0.0F);\n        setRotationAngle(east_r1, 0.0F, -2.5307F, 0.0F);\n        setRotationAngle(south_r1, -0.2618F, 0.0F, 0.0F);\n    }\n\n    public static TexturedModelData getTexturedModelData() {\n        ModelData modelData = new ModelData();\n        ModelPartData modelPartData = modelData.getRoot();\n        ModelPartData modelPartData1 = modelPartData.addChild(\"head\", ModelPartBuilder.create().uv(0, 7).cuboid(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, new Dilation(-4.0f)), ModelTransform.pivot(0.0F, 0.0F, 0.0F));\n        ModelPartData modelPartData2 = modelPartData1.addChild(\"horns\", ModelPartBuilder.create(), ModelTransform.pivot(0.0F, -4.0F, 0.0F));\n        modelPartData2.addChild(\"west_r1\", ModelPartBuilder.create().uv(0, 39).cuboid(-11.0F, -9.0F, 3.0F, 16.0F, 9.0F, 0.0F), ModelTransform.pivot(6.0F, 2.0F, 3.0F));\n        modelPartData2.addChild(\"east_r1\", ModelPartBuilder.create().uv(0, 22).cuboid(-5.0F, -9.0F, 3.0F, 16.0F, 9.0F, 0.0F), ModelTransform.pivot(-6.0F, 2.0F, 3.0F));\n        modelPartData2.addChild(\"south_r1\", ModelPartBuilder.create().uv(7, 30).cuboid(-4.0F, -8.0F, 3.0F, 8.0F, 8.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.0F, -4.0F, 0.0F));\n        return TexturedModelData.of(modelData, 32, 48);\n    }\n\n    @Override\n    public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {\n        head.render(matrixStack, buffer, packedLight, packedOverlay);\n    }\n\n    public void setRotationAngle(ModelPart bone, float x, float y, float z) {\n        bone.pitch = x;\n        bone.yaw = y;\n        bone.roll = z;\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/entity/model/hat/OverheadModel.java",
    "content": "package ladysnake.illuminations.client.render.entity.model.hat;\n\nimport ladysnake.illuminations.client.render.GlowyRenderLayer;\nimport net.minecraft.client.model.Model;\nimport net.minecraft.client.model.ModelPart;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.render.entity.EntityRendererFactory;\nimport net.minecraft.client.render.entity.model.EntityModelLayer;\nimport net.minecraft.client.util.math.MatrixStack;\n\npublic abstract class OverheadModel extends Model {\n    public final ModelPart head;\n\n    public OverheadModel(EntityRendererFactory.Context ctx, EntityModelLayer entityModelLayer) {\n        super(GlowyRenderLayer::get);\n        this.head = ctx.getPart(entityModelLayer).getChild(\"head\");\n    }\n\n    @Override\n    public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {\n        this.head.render(matrixStack, buffer, packedLight, packedOverlay);\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/entity/model/hat/TiaraModel.java",
    "content": "package ladysnake.illuminations.client.render.entity.model.hat;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport net.minecraft.client.model.*;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.render.entity.EntityRendererFactory;\nimport net.minecraft.client.render.entity.model.EntityModelLayer;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.util.Identifier;\n\npublic class TiaraModel extends OverheadModel {\n    public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier(Illuminations.MODID, \"tiara\"), \"main\");\n\n    public TiaraModel(EntityRendererFactory.Context ctx) {\n        super(ctx, MODEL_LAYER);\n\n        ModelPart tiara = this.head.getChild(\"tiara\");\n        ModelPart south_r1 = tiara.getChild(\"south_r1\");\n        ModelPart east_r1 = tiara.getChild(\"east_r1\");\n        ModelPart north_r1 = tiara.getChild(\"north_r1\");\n        ModelPart west_r1 = tiara.getChild(\"west_r1\");\n        setRotationAngle(east_r1, -0.0436F, 1.5708F, 0.0F);\n        setRotationAngle(north_r1, -0.0873F, 3.1416F, 0.0F);\n        setRotationAngle(west_r1, -0.0436F, -1.5708F, 0.0F);\n        setRotationAngle(south_r1, -0.0873F, 0.0F, 0.0F);\n    }\n\n    public static TexturedModelData getTexturedModelData() {\n        ModelData modelData = new ModelData();\n        ModelPartData modelPartData = modelData.getRoot();\n        ModelPartData modelPartData1 = modelPartData.addChild(\"head\", ModelPartBuilder.create().uv(0, 7).cuboid(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, new Dilation(-4.0f)), ModelTransform.pivot(0.0F, 0.0F, 0.0F));\n        ModelPartData modelPartData2 = modelPartData1.addChild(\"tiara\", ModelPartBuilder.create().uv(0, 4).cuboid(-4.0F, -8.0F, -4.0F, 8.0F, 4.0F, 8.0F, new Dilation(-0.5F)).uv(0, 0), ModelTransform.pivot(0.0F, -4.0F, 0.0F));\n        modelPartData2.addChild(\"west_r1\", ModelPartBuilder.create().uv(6, 39).cuboid(-5.1F, -6.1F, 3.03F, 10.0F, 8.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.0F, -6.0F, 0.0F));\n        modelPartData2.addChild(\"north_r1\", ModelPartBuilder.create().uv(8, 17).cuboid(0.0F, -4.3F, 3.2F, 6.0F, 6.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(3.0F, -6.0F, 0.0F));\n        modelPartData2.addChild(\"east_r1\", ModelPartBuilder.create().uv(6, 23).cuboid(-4.9F, -6.1F, 3.03F, 10.0F, 8.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.0F, -6.0F, 0.0F));\n        modelPartData2.addChild(\"south_r1\", ModelPartBuilder.create().uv(7, 32).cuboid(-4.0F, -6.3F, 3.2F, 8.0F, 8.0F, 1.0F, new Dilation(-0.75f)), ModelTransform.pivot(0.0F, -6.0F, 0.0F));\n        return TexturedModelData.of(modelData, 32, 48);\n    }\n\n    @Override\n    public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {\n        head.render(matrixStack, buffer, packedLight, packedOverlay);\n    }\n\n    public void setRotationAngle(ModelPart bone, float x, float y, float z) {\n        bone.pitch = x;\n        bone.yaw = y;\n        bone.roll = z;\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/entity/model/hat/VoidheartTiaraModel.java",
    "content": "package ladysnake.illuminations.client.render.entity.model.hat;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport net.minecraft.client.model.*;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.render.entity.EntityRendererFactory;\nimport net.minecraft.client.render.entity.model.EntityModelLayer;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.util.Identifier;\n\npublic class VoidheartTiaraModel extends OverheadModel {\n    public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier(Illuminations.MODID, \"voidheart_tiara\"), \"main\");\n\n    public VoidheartTiaraModel(EntityRendererFactory.Context ctx) {\n        super(ctx, MODEL_LAYER);\n\n        ModelPart crown = this.head.getChild(\"crown\");\n        ModelPart south_r1 = crown.getChild(\"south_r1\");\n        ModelPart east_r1 = crown.getChild(\"east_r1\");\n        ModelPart north_r1 = crown.getChild(\"north_r1\");\n        ModelPart west_r1 = crown.getChild(\"west_r1\");\n        setRotationAngle(east_r1, -0.2618F, 1.5708F, 0.0F);\n        setRotationAngle(north_r1, -0.2618F, 3.1416F, 0.0F);\n        setRotationAngle(west_r1, -0.2618F, -1.5708F, 0.0F);\n        setRotationAngle(south_r1, -0.2618F, 0.0F, 0.0F);\n    }\n\n    public static TexturedModelData getTexturedModelData() {\n        ModelData modelData = new ModelData();\n        ModelPartData modelPartData = modelData.getRoot();\n        ModelPartData modelPartData1 = modelPartData.addChild(\"head\", ModelPartBuilder.create().uv(0, 7).cuboid(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, new Dilation(-4.0f)), ModelTransform.pivot(0.0F, 0.0F, 0.0F));\n        ModelPartData modelPartData2 = modelPartData1.addChild(\"crown\", ModelPartBuilder.create().uv(0, 0).cuboid(-4.0F, -13.0F, -4.0F, 8.0F, 8.0F, 8.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.0F, -4.0F, 0.0F));\n        modelPartData2.addChild(\"west_r1\", ModelPartBuilder.create().uv(0, 36).cuboid(-7.0F, -11.0F, 3.0F, 11.0F, 11.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.0F, -7.0F, 0.0F));\n        modelPartData2.addChild(\"north_r1\", ModelPartBuilder.create().uv(0, 16).cuboid(-4.0F, -8.0F, 3.0F, 9.0F, 8.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.5F, -7.0F, 0.0F));\n        modelPartData2.addChild(\"east_r1\", ModelPartBuilder.create().uv(0, 25).cuboid(-5.0F, -11.0F, 3.0F, 10.0F, 11.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.0F, -6.0F, 1.0F));\n        modelPartData2.addChild(\"south_r1\", ModelPartBuilder.create().uv(12, 39).cuboid(-5.0F, -8.0F, 3.0F, 9.0F, 8.0F, 1.0F, new Dilation(-0.5F)), ModelTransform.pivot(0.5F, -7.0F, 0.0F));\n        return TexturedModelData.of(modelData, 48, 48);\n    }\n\n    @Override\n    public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {\n        head.render(matrixStack, buffer, packedLight, packedOverlay);\n    }\n\n    public void setRotationAngle(ModelPart bone, float x, float y, float z) {\n        bone.pitch = x;\n        bone.yaw = y;\n        bone.roll = z;\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/entity/model/hat/WreathModel.java",
    "content": "package ladysnake.illuminations.client.render.entity.model.hat;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport net.minecraft.client.model.*;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.render.entity.EntityRendererFactory;\nimport net.minecraft.client.render.entity.model.EntityModelLayer;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.util.Identifier;\n\npublic class WreathModel extends OverheadModel {\n    public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier(Illuminations.MODID, \"wreath\"), \"main\");\n\n    public WreathModel(EntityRendererFactory.Context ctx) {\n        super(ctx, MODEL_LAYER);\n    }\n\n    public static TexturedModelData getTexturedModelData() {\n        ModelData modelData = new ModelData();\n        ModelPartData modelPartData = modelData.getRoot();\n        ModelPartData modelPartData1 = modelPartData.addChild(\"head\", ModelPartBuilder.create().uv(0, 7).cuboid(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, new Dilation(-4.0f)), ModelTransform.pivot(0.0F, 0.0F, 0.0F));\n        modelPartData1.addChild(\"wreath\", ModelPartBuilder.create().uv(0, 0).cuboid(-5.0F, -34.5F, -5.0F, 10.0F, 5.0F, 8.0F, new Dilation(0.5f)), ModelTransform.pivot(0.0F, 24.0F, 0.0F));\n        return TexturedModelData.of(modelData, 48, 16);\n    }\n\n    @Override\n    public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {\n        head.render(matrixStack, buffer, packedLight, packedOverlay);\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/entity/model/pet/LanternModel.java",
    "content": "/// Made with Model Converter by Globox_Z\n/// Generate all required imports\n/// Made with Blockbench 3.8.4\n/// Exported for Minecraft version 1.15\n/// Paste this class into your mod and generate all required imports\npackage ladysnake.illuminations.client.render.entity.model.pet;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.render.GlowyRenderLayer;\nimport net.minecraft.client.model.*;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.render.entity.model.EntityModelLayer;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.util.Identifier;\n\npublic class LanternModel extends Model {\n    public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier(Illuminations.MODID, \"lantern\"), \"main\");\n\n    private final ModelPart lantern;\n\n    public LanternModel(ModelPart root) {\n        super(GlowyRenderLayer::get);\n        this.lantern = root.getChild(\"lantern\");\n    }\n\n    public static TexturedModelData getTexturedModelData() {\n        ModelData modelData = new ModelData();\n        ModelPartData modelPartData = modelData.getRoot();\n\n        modelPartData.addChild(\"lantern\", ModelPartBuilder.create()\n                        .uv(0, 0)\n                        .cuboid(-3.0F, -3.0F, -3.0F, 6.0F, 7.0F, 6.0F)\n                        .uv(0, 13)\n                        .cuboid(-2.0F, -5.0F, -2.0F, 4.0F, 2.0F, 4.0F)\n                        .uv(16, 13)\n                        .cuboid(-2.5F, -8.0F, 0.0F, 5.0F, 4.0F, 0.0F),\n                ModelTransform.pivot(0.0F, 16.0F, 0.0F)\n        );\n        return TexturedModelData.of(modelData, 32, 32);\n    }\n\n    @Override\n    public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {\n        lantern.render(matrixStack, buffer, packedLight, packedOverlay);\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/entity/model/pet/PrideHeartModel.java",
    "content": "/// Made with Model Converter by Globox_Z\n/// Generate all required imports\n/// Made with Blockbench 3.8.4\n/// Exported for Minecraft version 1.15\n/// Paste this class into your mod and generate all required imports\npackage ladysnake.illuminations.client.render.entity.model.pet;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.render.GlowyRenderLayer;\nimport net.minecraft.client.model.*;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.render.entity.model.EntityModelLayer;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.util.Identifier;\n\npublic class PrideHeartModel extends Model {\n    public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier(Illuminations.MODID, \"pride_heart\"), \"main\");\n\n    private final ModelPart heart;\n\n    public PrideHeartModel(ModelPart root) {\n        super(GlowyRenderLayer::get);\n        this.heart = root.getChild(\"heart\");\n    }\n\n    public static TexturedModelData getTexturedModelData() {\n        ModelData modelData = new ModelData();\n        ModelPartData modelPartData = modelData.getRoot();\n\n        modelPartData.addChild(\"heart\", ModelPartBuilder.create(),\n                ModelTransform.pivot(0.0F, 16.0F, 0.0F)\n        );\n\n        modelPartData.getChild(\"heart\").addChild(\"cube1\", ModelPartBuilder.create()\n                        .uv(22, 0)\n                        .cuboid(1.0F, -4.0F, -1.5F, 0.0F, 3.0F, 3.0F),\n                ModelTransform.rotation(0.0F, 0.0F, -0.7854F));\n\n        modelPartData.getChild(\"heart\").addChild(\"cube2\", ModelPartBuilder.create()\n                        .uv(22, 0)\n                        .cuboid(-1.0F, -4.0F, -1.5F, 0.0F, 3.0F, 3.0F)\n                        .uv(0, 0)\n                        .cuboid(-4.0F, -4.0F, -1.5F, 8.0F, 8.0F, 3.0F),\n                ModelTransform.rotation(0.0F, 0.0F, 0.7854F));\n\n        return TexturedModelData.of(modelData, 32, 32);\n    }\n\n    @Override\n    public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {\n        heart.render(matrixStack, buffer, packedLight, packedOverlay);\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/client/render/entity/model/pet/WillOWispModel.java",
    "content": "/// Made with Model Converter by Globox_Z\n/// Generate all required imports\n/// Made with Blockbench 3.8.4\n/// Exported for Minecraft version 1.15\n/// Paste this class into your mod and generate all required imports\npackage ladysnake.illuminations.client.render.entity.model.pet;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.render.GlowyRenderLayer;\nimport net.minecraft.client.model.*;\nimport net.minecraft.client.render.VertexConsumer;\nimport net.minecraft.client.render.entity.model.EntityModelLayer;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.util.Identifier;\n\npublic class WillOWispModel extends Model {\n    public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier(Illuminations.MODID, \"will_o_wisp\"), \"main\");\n\n    private final ModelPart skull;\n\n    public WillOWispModel(ModelPart root) {\n        super(GlowyRenderLayer::get);\n        this.skull = root.getChild(\"skull\");\n    }\n\n    public static TexturedModelData getTexturedModelData() {\n        ModelData modelData = new ModelData();\n        ModelPartData modelPartData = modelData.getRoot();\n        modelPartData.addChild(\"skull\", ModelPartBuilder.create()\n                        .uv(0, 0)\n                        .cuboid(-3.0F, -3.0F, -3.0F, 6.0F, 6.0F, 6.0F)\n                        .uv(0, 16)\n                        .cuboid(-3.0F, -3.0F, -3.0F, 6.0F, 7.0F, 6.0F, new Dilation(0.25F)),\n                ModelTransform.pivot(0.0F, 16.0F, 0.0F)\n        );\n        return TexturedModelData.of(modelData, 32, 32);\n    }\n\n    @Override\n    public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) {\n        skull.render(matrixStack, buffer, packedLight, packedOverlay);\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/BlockMixin.java",
    "content": "package ladysnake.illuminations.mixin;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport net.minecraft.block.Block;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.block.Blocks;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.world.World;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.Shadow;\nimport org.spongepowered.asm.mixin.injection.At;\nimport org.spongepowered.asm.mixin.injection.Inject;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfo;\n\nimport java.util.Random;\n\n@Mixin(Block.class)\npublic abstract class BlockMixin {\n    @Shadow\n    public abstract BlockState getDefaultState();\n\n    @Inject(method = \"randomDisplayTick\", at = @At(\"RETURN\"))\n    protected void illuminations$randomDisplayTick(BlockState state, World world, BlockPos pos, Random random, CallbackInfo ci) {\n        if (this.getDefaultState().getBlock() == Blocks.SEA_LANTERN) {\n            for (int i = 0; i < 10; i++) {\n                BlockPos blockPos = new BlockPos(pos.getX() + 0.5 + random.nextGaussian() * 15, pos.getY() + 0.5 + random.nextGaussian() * 15, pos.getZ() + 0.5 + random.nextGaussian() * 15);\n\n                if (world.getBlockState(blockPos).getBlock() == Blocks.WATER && random.nextInt(1 + world.getLightLevel(blockPos)) == 0) {\n                    world.addParticle(Illuminations.PRISMARINE_CRYSTAL, true, blockPos.getX(), blockPos.getY(), blockPos.getZ(), 0f, 0f, 0f);\n                }\n            }\n        }\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/CarvedPumpkinBlockMixin.java",
    "content": "package ladysnake.illuminations.mixin;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport ladysnake.illuminations.client.enums.HalloweenFeatures;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.block.Blocks;\nimport net.minecraft.block.CarvedPumpkinBlock;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.world.World;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfo;\n\nimport java.time.LocalDate;\nimport java.time.Month;\nimport java.util.Random;\n\n@Mixin(CarvedPumpkinBlock.class)\npublic abstract class CarvedPumpkinBlockMixin extends BlockMixin {\n    @Override\n    protected void illuminations$randomDisplayTick(BlockState state, World world, BlockPos pos, Random random, CallbackInfo ci) {\n        if (state.getBlock() == Blocks.JACK_O_LANTERN && Illuminations.isNightTime(world) && random.nextInt(100) == 0 && ((Config.getHalloweenFeatures() == HalloweenFeatures.ENABLE && LocalDate.now().getMonth() == Month.OCTOBER) || Config.getHalloweenFeatures() == HalloweenFeatures.ALWAYS)) {\n            world.addParticle(Illuminations.PUMPKIN_SPIRIT, true, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, 0f, 0f, 0f);\n        }\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/ChorusFlowerBlockMixin.java",
    "content": "package ladysnake.illuminations.mixin;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.block.ChorusFlowerBlock;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.world.World;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfo;\n\nimport java.util.Random;\n\n@Mixin(ChorusFlowerBlock.class)\npublic abstract class ChorusFlowerBlockMixin extends BlockMixin {\n    @Override\n    protected void illuminations$randomDisplayTick(BlockState state, World world, BlockPos pos, Random random, CallbackInfo ci) {\n        for (int i = 0; i < (6 - state.get(ChorusFlowerBlock.AGE)) * Config.getChorusPetalsSpawnMultiplier(); i++) {\n            world.addParticle(Illuminations.CHORUS_PETAL, true, pos.getX() + 0.5 + random.nextGaussian() * 5, pos.getY() + 0.5 + random.nextGaussian() * 5, pos.getZ() + 0.5 + random.nextGaussian() * 5, 0f, 0f, 0f);\n        }\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/ClientWorldMixin.java",
    "content": "package ladysnake.illuminations.mixin;\n\nimport com.google.common.collect.ImmutableSet;\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport ladysnake.illuminations.client.data.IlluminationData;\nimport ladysnake.illuminations.client.enums.BiomeCategory;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.network.AbstractClientPlayerEntity;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.util.Identifier;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.util.profiler.Profiler;\nimport net.minecraft.util.registry.Registry;\nimport net.minecraft.util.registry.RegistryKey;\nimport net.minecraft.world.MutableWorldProperties;\nimport net.minecraft.world.World;\nimport net.minecraft.world.biome.Biome;\nimport net.minecraft.world.dimension.DimensionType;\nimport org.spongepowered.asm.mixin.Final;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.Shadow;\nimport org.spongepowered.asm.mixin.injection.At;\nimport org.spongepowered.asm.mixin.injection.Coerce;\nimport org.spongepowered.asm.mixin.injection.Inject;\nimport org.spongepowered.asm.mixin.injection.Slice;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfo;\n\nimport java.util.Random;\nimport java.util.function.Supplier;\n\n@Mixin(ClientWorld.class)\npublic abstract class ClientWorldMixin extends World {\n    @Shadow\n    @Final\n    private MinecraftClient client;\n\n    protected ClientWorldMixin(MutableWorldProperties properties, RegistryKey<World> registryKey, DimensionType dimensionType, Supplier<Profiler> supplier, boolean bl, boolean bl2, long l) {\n        super(properties, registryKey, dimensionType, supplier, bl, bl2, l);\n    }\n\n    @SuppressWarnings(\"InvalidInjectorMethodSignature\")\n    @Inject(method = \"randomBlockDisplayTick\", slice = @Slice(from = @At(value = \"INVOKE\", target = \"Lnet/minecraft/world/biome/Biome;getParticleConfig()Ljava/util/Optional;\")),\n            at = @At(value = \"INVOKE\", target = \"Ljava/util/Optional;ifPresent(Ljava/util/function/Consumer;)V\", ordinal = 0, shift = At.Shift.AFTER))\n    private void randomBlockDisplayTick(int centerX, int centerY, int centerZ, int radius, Random random, @Coerce Object blockParticle, BlockPos.Mutable blockPos, CallbackInfo ci) {\n        BlockPos.Mutable pos = blockPos.add(this.random.nextGaussian() * 50, this.random.nextGaussian() * 25, this.random.nextGaussian() * 50).mutableCopy();\n\n        Biome b = this.getBiome(pos);\n        Identifier biome = this.getRegistryManager().get(Registry.BIOME_KEY).getId(b);\n\n        // Main biome settings\n        BiomeCategory biomeCategory = BiomeCategory.find(biome, b.getCategory()); // Returns OTHER if no association for this biome was found.\n        spawnParticles(pos, Illuminations.ILLUMINATIONS_BIOME_CATEGORIES.get(biomeCategory));\n\n        // Other miscellaneous biome settings\n        if (Illuminations.ILLUMINATIONS_BIOMES.containsKey(biome)) {\n            ImmutableSet<IlluminationData> illuminationDataSet = Illuminations.ILLUMINATIONS_BIOMES.get(biome);\n            spawnParticles(pos, illuminationDataSet);\n        }\n\n        // spooky eyes\n        if (Illuminations.EYES_LOCATION_PREDICATE.test(this, pos)\n                && random.nextFloat() <= Config.getEyesInTheDarkSpawnRate().spawnRate) {\n            this.addParticle(Illuminations.EYES, (double) pos.getX() + 0.5, (double) pos.getY() + 0.5, (double) pos.getZ() + 0.5, 0.0D, 0.0D, 0.0D);\n        }\n    }\n\n    private void spawnParticles(BlockPos.Mutable pos, ImmutableSet<IlluminationData> illuminationDataSet) {\n        for (IlluminationData illuminationData : illuminationDataSet) {\n            if (illuminationData.locationSpawnPredicate().test(this, pos)\n                    && illuminationData.shouldAddParticle(this.random)) {\n                this.addParticle(illuminationData.illuminationType(), (double) pos.getX(), (double) pos.getY(), (double) pos.getZ(), 0.0D, 0.0D, 0.0D);\n            }\n        }\n    }\n\n    @Inject(method = \"addPlayer\", at = @At(value = \"RETURN\"))\n    public void addPlayer(int id, AbstractClientPlayerEntity player, CallbackInfo ci) {\n        Illuminations.loadPlayerCosmetics();\n    }\n\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/LanternBlockMixin.java",
    "content": "package ladysnake.illuminations.mixin;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.block.Blocks;\nimport net.minecraft.block.LanternBlock;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.world.World;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfo;\n\nimport java.util.Random;\n\n@Mixin(LanternBlock.class)\npublic abstract class LanternBlockMixin extends BlockMixin {\n    @Override\n    protected void illuminations$randomDisplayTick(BlockState state, World world, BlockPos pos, Random random, CallbackInfo ci) {\n        if (state.getBlock() == Blocks.SOUL_LANTERN && random.nextInt(100) == 0) {\n            world.addParticle(Illuminations.WILL_O_WISP, true, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, 0f, 0f, 0f);\n        }\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/LivingEntityMixin.java",
    "content": "package ladysnake.illuminations.mixin;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport ladysnake.illuminations.client.enums.HalloweenFeatures;\nimport net.minecraft.entity.Entity;\nimport net.minecraft.entity.EntityType;\nimport net.minecraft.entity.LivingEntity;\nimport net.minecraft.entity.damage.DamageSource;\nimport net.minecraft.sound.SoundCategory;\nimport net.minecraft.sound.SoundEvents;\nimport net.minecraft.world.World;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.Shadow;\nimport org.spongepowered.asm.mixin.injection.At;\nimport org.spongepowered.asm.mixin.injection.Inject;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfo;\n\nimport java.time.LocalDate;\nimport java.time.Month;\n\n@Mixin(LivingEntity.class)\npublic abstract class LivingEntityMixin extends Entity {\n    public LivingEntityMixin(EntityType<?> type, World world) {\n        super(type, world);\n    }\n\n    @Shadow\n    public abstract boolean isUndead();\n\n    @Inject(method = \"onDeath\", at = @At(\"RETURN\"))\n    public void onDeath(DamageSource source, CallbackInfo callbackInfo) {\n        if (this.isUndead() && random.nextInt(5) == 0 && Illuminations.isNightTime(world) && ((Config.getHalloweenFeatures() == HalloweenFeatures.ENABLE && LocalDate.now().getMonth() == Month.OCTOBER) || Config.getHalloweenFeatures() == HalloweenFeatures.ALWAYS)) {\n            this.world.playSound(null, this.getBlockPos(), SoundEvents.ENTITY_VEX_CHARGE, SoundCategory.AMBIENT, 1.0f, 0.8f);\n\n            world.addParticle(Illuminations.POLTERGEIST, true, this.getX() + 0.5, this.getEyeY(), this.getZ(), 0f, 0f, 0f);\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/ParticleManagerMixin.java",
    "content": "package ladysnake.illuminations.mixin;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.block.Blocks;\nimport net.minecraft.block.ChorusFlowerBlock;\nimport net.minecraft.client.particle.Particle;\nimport net.minecraft.client.particle.ParticleManager;\nimport net.minecraft.client.world.ClientWorld;\nimport net.minecraft.particle.ParticleEffect;\nimport net.minecraft.util.math.BlockPos;\nimport org.spongepowered.asm.mixin.Final;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.Shadow;\nimport org.spongepowered.asm.mixin.injection.At;\nimport org.spongepowered.asm.mixin.injection.Inject;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfo;\n\nimport java.util.Random;\n\n@Mixin(ParticleManager.class)\npublic abstract class ParticleManagerMixin {\n    @Shadow\n    protected ClientWorld world;\n    @Shadow\n    @Final\n    private Random random;\n\n    @Shadow\n    public abstract Particle addParticle(ParticleEffect parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ);\n\n    @Inject(method = \"addBlockBreakParticles\", at = @At(value = \"RETURN\"))\n    public void addBlockBreakParticles(BlockPos pos, BlockState state, CallbackInfo ci) {\n        if (state.getBlock() == Blocks.CHORUS_FLOWER) {\n            for (int i = 0; i < (6 - state.get(ChorusFlowerBlock.AGE)) * 10 * Config.getChorusPetalsSpawnMultiplier(); i++) {\n                this.addParticle(Illuminations.CHORUS_PETAL, (double) pos.getX() + 0.5, (double) pos.getY() + 0.5, (double) pos.getZ() + 0.5, random.nextGaussian() / 10f, random.nextGaussian() / 10f, random.nextGaussian() / 10f);\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/PlayerEntityMixin.java",
    "content": "package ladysnake.illuminations.mixin;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport ladysnake.illuminations.client.data.AuraData;\nimport ladysnake.illuminations.client.data.PlayerCosmeticData;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.entity.EntityType;\nimport net.minecraft.entity.LivingEntity;\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.particle.DefaultParticleType;\nimport net.minecraft.world.World;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.injection.At;\nimport org.spongepowered.asm.mixin.injection.Inject;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfo;\n\n@Mixin(PlayerEntity.class)\npublic abstract class PlayerEntityMixin extends LivingEntity {\n    protected PlayerEntityMixin(EntityType<? extends LivingEntity> entityType, World world) {\n        super(entityType, world);\n    }\n\n    @Inject(method = \"tick\", at = @At(\"RETURN\"))\n    public void tick(CallbackInfo callbackInfo) {\n        PlayerCosmeticData cosmeticData = Illuminations.getCosmeticData((PlayerEntity) (Object) this);\n        // if player has cosmetics\n        if (cosmeticData != null) {\n            // player aura\n            String playerAura = cosmeticData.getAura();\n            if (playerAura != null && Illuminations.AURAS_DATA.containsKey(playerAura)) {\n                // do not render in first person or if the player is invisible\n                // noinspection ConstantConditions\n                if (((Config.getViewAurasFP() || MinecraftClient.getInstance().gameRenderer.getCamera().isThirdPerson()) || MinecraftClient.getInstance().player != (Object) this) && !this.isInvisible()) {\n                    if (Illuminations.AURAS_DATA.containsKey(playerAura)) {\n                        AuraData aura = Illuminations.AURAS_DATA.get(playerAura);\n                        if (Illuminations.AURAS_DATA.get(playerAura).shouldAddParticle(this.random, this.age)) {\n                            world.addParticle(aura.particle(), this.getX(), this.getY(), this.getZ(), 0, 0, 0);\n                        }\n                    }\n                }\n            }\n\n            // player pet\n            String playerPet = cosmeticData.getPet();\n            if (playerPet != null && Illuminations.PETS_DATA.containsKey(playerPet)) {\n                // do not render in first person or if the player is invisible\n                //noinspection ConstantConditions\n                if (((Config.getViewAurasFP() || MinecraftClient.getInstance().gameRenderer.getCamera().isThirdPerson()) || MinecraftClient.getInstance().player != (Object) this) && !this.isInvisible()) {\n                    if (Illuminations.PETS_DATA.containsKey(playerPet)) {\n                        DefaultParticleType overhead = Illuminations.PETS_DATA.get(playerPet);\n                        if (this.age % 20 == 0) {\n                            world.addParticle(overhead, this.getX() + Math.cos(this.bodyYaw / 50) * 0.5, this.getY() + this.getHeight() + 0.5f + Math.sin(this.age / 12f) / 12f, this.getZ() - Math.cos(this.bodyYaw / 50) * 0.5, 0, 0, 0);\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/RenderLayerAccessor.java",
    "content": "package ladysnake.illuminations.mixin;\n\nimport net.minecraft.client.render.RenderLayer;\nimport net.minecraft.client.render.VertexFormat;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.gen.Invoker;\n\n@Mixin(RenderLayer.class)\npublic interface RenderLayerAccessor {\n    @Invoker\n    static RenderLayer.MultiPhase invokeOf(String name, VertexFormat vertexFormat, VertexFormat.DrawMode drawMode, int expectedBufferSize, boolean hasCrumbling, boolean translucent, RenderLayer.MultiPhaseParameters phases) {\n        throw new IllegalStateException(\" yo wtf i'm drunk \");\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/SkullBlockMixin.java",
    "content": "package ladysnake.illuminations.mixin;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport ladysnake.illuminations.client.enums.HalloweenFeatures;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.block.Blocks;\nimport net.minecraft.block.SkullBlock;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.world.World;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfo;\n\nimport java.time.LocalDate;\nimport java.time.Month;\nimport java.util.Random;\n\n@Mixin(SkullBlock.class)\npublic abstract class SkullBlockMixin extends BlockMixin {\n    @Override\n    protected void illuminations$randomDisplayTick(BlockState state, World world, BlockPos pos, Random random, CallbackInfo ci) {\n        if ((state.getBlock() == Blocks.SKELETON_SKULL || state.getBlock() == Blocks.SKELETON_WALL_SKULL) && Illuminations.isNightTime(world) && random.nextInt(100) == 0 && ((Config.getHalloweenFeatures() == HalloweenFeatures.ENABLE && LocalDate.now().getMonth() == Month.OCTOBER) || Config.getHalloweenFeatures() == HalloweenFeatures.ALWAYS)) {\n            world.addParticle(Illuminations.POLTERGEIST, true, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, 0f, 0f, 0f);\n        }\n    }\n}"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/TitleScreenMixin.java",
    "content": "package ladysnake.illuminations.mixin;\n\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport ladysnake.illuminations.client.data.PlayerCosmeticData;\nimport ladysnake.illuminations.client.gui.AutoUpdateGreetingScreen;\nimport ladysnake.illuminations.client.gui.DonateToast;\nimport ladysnake.illuminations.client.gui.UpdateToast;\nimport ladysnake.illuminations.updater.IlluminationsUpdater;\nimport net.minecraft.client.MinecraftClient;\nimport net.minecraft.client.gui.screen.TitleScreen;\nimport net.minecraft.client.util.math.MatrixStack;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.injection.At;\nimport org.spongepowered.asm.mixin.injection.Inject;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfo;\n\n@Mixin(TitleScreen.class)\npublic abstract class TitleScreenMixin {\n    @Inject(at = @At(value = \"RETURN\"), method = \"render\")\n    protected void render(MatrixStack matrices, int mouseX, int mouseY, float delta, CallbackInfo ci) {\n        if (Config.isDisplayGreetingScreen()) {\n            MinecraftClient.getInstance().setScreen(new AutoUpdateGreetingScreen((TitleScreen) (Object) this));\n        } else {\n            if (IlluminationsUpdater.NEW_UPDATE) {\n                UpdateToast.add();\n            } else {\n                PlayerCosmeticData playerCosmeticData = Illuminations.getCosmeticData(MinecraftClient.getInstance().getSession().getProfile().getId());\n                if (Config.isDisplayDonationToast() && (playerCosmeticData == null || playerCosmeticData.getAura() == null || playerCosmeticData.getOverhead() == null || playerCosmeticData.getPet() == null)) {\n                    DonateToast.add();\n                }\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/jeb/FeatureRendererMixin.java",
    "content": "package ladysnake.illuminations.mixin.jeb;\n\nimport ladysnake.illuminations.client.Rainbowlluminations;\nimport net.minecraft.client.render.RenderLayer;\nimport net.minecraft.client.render.VertexConsumerProvider;\nimport net.minecraft.client.render.entity.feature.FeatureRenderer;\nimport net.minecraft.client.render.entity.model.EntityModel;\nimport net.minecraft.client.util.math.MatrixStack;\nimport net.minecraft.entity.LivingEntity;\nimport net.minecraft.entity.passive.SheepEntity;\nimport net.minecraft.util.Identifier;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.Unique;\nimport org.spongepowered.asm.mixin.injection.At;\nimport org.spongepowered.asm.mixin.injection.Inject;\nimport org.spongepowered.asm.mixin.injection.ModifyArg;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfo;\n\n@Mixin(FeatureRenderer.class)\npublic abstract class FeatureRendererMixin {\n    @Unique\n    private static boolean isRgb;\n\n    @Inject(method = \"renderModel\", at = @At(\"HEAD\"))\n    private static <T extends LivingEntity> void captureEntity(EntityModel<T> model, Identifier texture, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, T entity, float red, float green, float blue, CallbackInfo ci) {\n        isRgb = !(entity instanceof SheepEntity) && entity.hasCustomName() && \"jeb_\".equals(entity.getName().asString());\n    }\n\n    @ModifyArg(method = \"renderModel\", at = @At(value = \"INVOKE\", target = \"Lnet/minecraft/client/render/VertexConsumerProvider;getBuffer(Lnet/minecraft/client/render/RenderLayer;)Lnet/minecraft/client/render/VertexConsumer;\"))\n    private static RenderLayer replaceRenderLayer(RenderLayer base) {\n        if (isRgb) {\n            return Rainbowlluminations.RAINBOW_SHADER.getRenderLayer(base);\n        }\n\n        return base;\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/mixin/jeb/LivingEntityRendererMixin.java",
    "content": "package ladysnake.illuminations.mixin.jeb;\n\nimport ladysnake.illuminations.client.Rainbowlluminations;\nimport net.minecraft.client.render.RenderLayer;\nimport net.minecraft.client.render.entity.LivingEntityRenderer;\nimport net.minecraft.entity.LivingEntity;\nimport net.minecraft.entity.passive.SheepEntity;\nimport org.jetbrains.annotations.Nullable;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.injection.At;\nimport org.spongepowered.asm.mixin.injection.Inject;\nimport org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;\n\n@Mixin(LivingEntityRenderer.class)\npublic class LivingEntityRendererMixin {\n    @Nullable\n    @Inject(method = \"getRenderLayer\", at = @At(\"RETURN\"), cancellable = true)\n    protected void getRenderLayer(LivingEntity entity, boolean showBody, boolean translucent, boolean showOutline, CallbackInfoReturnable<RenderLayer> cir) {\n        if (!(entity instanceof SheepEntity)) {\n            RenderLayer baseLayer = cir.getReturnValue();\n            if (entity.hasCustomName() && \"jeb_\".equals(entity.getName().asString())) {\n                cir.setReturnValue(baseLayer == null ? null : Rainbowlluminations.RAINBOW_SHADER.getRenderLayer(baseLayer));\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "src/main/java/ladysnake/illuminations/updater/IlluminationsUpdater.java",
    "content": "package ladysnake.illuminations.updater;\n\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonParser;\nimport ladysnake.illuminations.client.Illuminations;\nimport ladysnake.illuminations.client.config.Config;\nimport net.fabricmc.loader.api.FabricLoader;\nimport net.fabricmc.loader.api.ModContainer;\nimport net.fabricmc.loader.api.SemanticVersion;\nimport net.fabricmc.loader.api.VersionParsingException;\nimport net.minecraft.SharedConstants;\nimport net.minecraft.client.MinecraftClient;\nimport org.apache.logging.log4j.Level;\n\nimport java.io.*;\nimport java.net.*;\nimport java.nio.channels.Channels;\nimport java.nio.channels.ReadableByteChannel;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.nio.file.Paths;\nimport java.nio.file.StandardCopyOption;\nimport java.util.ArrayList;\nimport java.util.concurrent.CompletableFuture;\nimport java.util.regex.Pattern;\n\npublic class IlluminationsUpdater {\n    static final ArrayList<String> UNINSTALLER_PARAMS = new ArrayList<>();\n    private static final String UPDATES_URL = \"https://illuminations.uuid.gg/latest?version=\";\n    private static final String UNINSTALLER = \"illuminations-uninstaller.jar\";\n    public static boolean NEW_UPDATE = false;\n\n    public static void init() {\n        // delete uninstaller\n        if (Files.exists(Paths.get(\"mods/\" + UNINSTALLER))) {\n            try {\n                Files.delete(Paths.get(\"mods/\" + UNINSTALLER));\n            } catch (IOException e) {\n                Illuminations.logger.log(Level.WARN, \"Could not remove uninstaller because of I/O Error: \" + e.getMessage());\n            }\n        }\n\n        if (Config.isAutoUpdate()) {\n            // .future file\n            Pattern pattern = Pattern.compile(\"^illuminations.+\\\\.future$\");\n            try {\n                Files.list(Path.of(\"mods\")).filter(mod -> pattern.matcher(mod.getFileName().toString()).find()).forEach(path -> {\n                    try {\n                        Files.delete(path);\n                    } catch (IOException e) {\n                        Illuminations.logger.error(\"Failed to delete old mod file {}\", path, e);\n                    }\n                });\n            } catch (IOException e) {\n                Illuminations.logger.error(\"Failed to delete old mod files\", e);\n            }\n\n            if (!FabricLoader.getInstance().isDevelopmentEnvironment()) {\n                Illuminations.logger.info(\"Looking for updates for Illuminations\");\n\n                String minecraftVersion = SharedConstants.getGameVersion().getName();\n                String modVersion = FabricLoader.getInstance().getModContainer(Illuminations.MODID).orElseThrow().getMetadata().getVersion().getFriendlyString();\n                CompletableFuture.supplyAsync(() -> {\n                    try (Reader reader = new InputStreamReader(new URL(UPDATES_URL + minecraftVersion).openStream())) {\n                        JsonParser jp = new JsonParser();\n                        JsonElement jsonElement = jp.parse(reader);\n                        return jsonElement.getAsJsonObject();\n                    } catch (MalformedURLException e) {\n                        Illuminations.logger.error(\"Could not get update information because of malformed URL\", e);\n                    } catch (IOException e) {\n                        Illuminations.logger.error(\"Could not get update information because of I/O Error\", e);\n                    }\n\n                    return null;\n                }).thenAcceptAsync(latestVersionJson -> {\n                    if (latestVersionJson != null) {\n                        String latestVersion = latestVersionJson.get(\"version\").getAsString();\n                        String latestFileName = latestVersionJson.get(\"filename\").getAsString() + \".future\";\n                        // if not the latest version, update toast\n                        try {\n                            if (SemanticVersion.parse(latestVersion).compareTo(SemanticVersion.parse(modVersion)) > 0) {\n                                Illuminations.logger.log(Level.INFO, \"Currently present version of Illuminations is \" + modVersion + \" while the latest version is \" + latestVersion + \"; downloading update\");\n\n                                try {\n                                    // download new jar\n                                    URL website = new URL(latestVersionJson.get(\"download\").getAsString());\n                                    ReadableByteChannel rbc = Channels.newChannel(website.openStream());\n                                    FileOutputStream fos = new FileOutputStream(\"mods/\" + latestFileName);\n                                    fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);\n                                    Illuminations.logger.log(Level.INFO, latestFileName + \" downloaded\");\n\n                                    ModContainer mod = FabricLoader.getInstance().getModContainer(Illuminations.MODID).orElseThrow();\n                                    URL rootUrl = mod.getRootPath().toUri().toURL();\n                                    URLConnection connection = rootUrl.openConnection();\n                                    if (connection instanceof JarURLConnection) {\n                                        URI uri = ((JarURLConnection) connection).getJarFileURL().toURI();\n                                        if (uri.getScheme().equals(\"file\")) {\n                                            // add the old jar to uninstaller params\n                                            String oldFilePath = Paths.get(uri).toString();\n                                            String oldFile = Paths.get(oldFilePath).getFileName().toString();\n                                            UNINSTALLER_PARAMS.add(oldFile);\n\n                                            // add the new jar to uninstaller params\n                                            UNINSTALLER_PARAMS.add(latestFileName);\n\n                                            NEW_UPDATE = true;\n                                        }\n                                    }\n                                } catch (MalformedURLException e) {\n                                    Illuminations.logger.log(Level.ERROR, \"Could not download update because of malformed URL: \" + e.getMessage());\n                                } catch (IOException e) {\n                                    Illuminations.logger.log(Level.ERROR, \"Could not download update because of I/O Error: \" + e.getMessage());\n                                } catch (URISyntaxException e) {\n                                    Illuminations.logger.log(Level.ERROR, \"Could not download update because of URI Syntax Error: \" + e.getMessage());\n                                }\n                            }\n                        } catch (VersionParsingException e) {\n                            e.printStackTrace();\n                        }\n                    } else {\n                        Illuminations.logger.log(Level.WARN, \"Update information could not be retrieved, auto-update will not be available\");\n                    }\n                }, MinecraftClient.getInstance());\n            }\n\n            Illuminations.logger.log(Level.INFO, \"Adding shutdown hook for uninstaller to update Illuminations\");\n\n            // extract the uninstaller and add a shutdown hook to uninstall old files and install new ones\n            InputStream in = Illuminations.class.getResourceAsStream(\"/\" + UNINSTALLER);\n            try {\n                Files.copy(in, Paths.get(\"mods/\" + UNINSTALLER), StandardCopyOption.REPLACE_EXISTING);\n            } catch (IOException e) {\n                e.printStackTrace();\n            }\n\n            Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n                try {\n                    Illuminations.logger.log(Level.INFO, \"Minecraft instance shutting down, starting the Illuminations uninstaller\");\n\n                    StringBuilder commandParams = new StringBuilder();\n                    for (String uninstallerParam : UNINSTALLER_PARAMS) {\n                        commandParams.append(\" \").append(uninstallerParam);\n                    }\n\n                    Runtime.getRuntime().exec(\"java -jar mods/\" + UNINSTALLER + commandParams);\n                } catch (IOException e) {\n                    Illuminations.logger.log(Level.ERROR, \"Could not run uninstaller\");\n                    e.printStackTrace();\n                }\n            }));\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/resources/assets/illuminations/lang/de_de.json",
    "content": "{\r\n  \"title.illuminations.config\": \"Illuminations Config\",\r\n  \"title.illuminations.autoUpdater\": \"Illuminations Auto-Updater\",\r\n  \"description.illuminations.autoUpdater1\": \"Illuminations besitzt einen Auto-Updater, welcher dir es ermöglicht\",\r\n  \"description.illuminations.autoUpdater2\": \"Illuminations ohne jegliche Sorgen auf dem neusten Stand zu halten.\",\r\n  \"description.illuminations.autoUpdater3\": \"Er ist gerade deaktiviert, jedoch kannst du ihn hier aktivieren.\",\r\n  \"description.illuminations.autoUpdater4\": \"Berücksichtige dies bitte, da es den Mod-Autor unterstützt\",\r\n  \"description.illuminations.autoUpdater5\": \"und gleichzeitig deinen Mod immer automatisch updatet.\",\r\n  \"description.illuminations.autoUpdater6\": \"Diese Nachricht wird nur ein Mal erscheinen und dich danach nicht mehr stören.\",\r\n  \"description.illuminations.autoUpdater7\": \"Wenn du den Auto-Updater danach aktivieren oder deaktivieren möchtest\",\r\n  \"description.illuminations.autoUpdater8\": \"kannst du dies jederzeit tun, indem du die Illuminations Config bearbeitest.\",\r\n  \"option.illuminations.enable\": \"Aktivieren\",\r\n  \"option.illuminations.disable\": \"Deaktiviert lassen\",\r\n  \"category.illuminations.general\": \"Generell\",\r\n  \"option.illuminations.eyesInTheDark\": \"Augen im Dunkeln\",\r\n  \"option.tooltip.illuminations.eyesInTheDark\": \"Gruselige glühende Augen sind in dunklen Umgebungen zu finden.\",\r\n  \"option.tooltip.illuminations.eyesInTheDark.default\": \"Standard auf ENABLE gesetzt.\",\r\n  \"option.tooltip.illuminations.eyesInTheDark.enable\": \"ENABLE: Augen sind im Oktober zu sehen\",\r\n  \"option.tooltip.illuminations.eyesInTheDark.disable\": \"DISABLE: Augen sind nie zu sehen\",\r\n  \"option.tooltip.illuminations.eyesInTheDark.always\": \"ALWAYS: Augen sind immer zu sehen\",\r\n  \"option.illuminations.density\": \"Spawn Dichte\",\r\n  \"option.tooltip.illuminations.density\": \"Der Spawnraten-Multiplikator. Beeinflusst nicht die Augen im Dunkeln.\",\r\n  \"option.tooltip.illuminations.density.lowest\": \"0%: Deaktiviert Beleuchtungen\",\r\n  \"option.tooltip.illuminations.density.highest\": \"1000%: Multipliziert die Anzahl der Beleuchtungen mit 10\",\r\n  \"option.illuminations.autoUpdate\": \"Auto-Update\",\r\n  \"option.tooltip.illuminations.autoUpdate\": \"Lade und installiere automatisch neue Versionen direkt nach ihrem Release.\",\r\n  \"option.illuminations.fireflyWhiteAlpha\": \"Glühwürmchen Weiß Alpha\",\r\n  \"option.tooltip.illuminations.fireflyWhiteAlpha\": \"Der Alpha-Wert des glühenden Lichts der Glühwürmchen in Prozent\",\r\n  \"option.illuminations.viewAurasFP\": \"Mache die Cosmetics in First-Person sichtbar\",\r\n  \"option.tooltip.illuminations.viewAurasFP\": \"Ob deine eigenen Auras und Pets in First-Person gerendert werden sollen.\"\r\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/lang/en_us.json",
    "content": "{\n  \"title.illuminations.config\": \"Illuminations Config\",\n  \"title.illuminations.autoUpdater\": \"Illuminations Auto-Updater\",\n  \"description.illuminations.autoUpdater1\": \"Illuminations possess an auto-updater that can allow you to always keep\",\n  \"description.illuminations.autoUpdater2\": \"Illuminations up-to-date without needing you to worry about anything.\",\n  \"description.illuminations.autoUpdater3\": \"It is disabled by default, but you can choose to enable it right here.\",\n  \"description.illuminations.autoUpdater4\": \"Please consider it as it helps support the mod author\",\n  \"description.illuminations.autoUpdater5\": \"as well as always keeping you up to date with the latest update.\",\n  \"description.illuminations.autoUpdater6\": \"This screen will only appear once and won't bother you again.\",\n  \"description.illuminations.autoUpdater7\": \"If you wish to enable or disable the auto-updater after that point,\",\n  \"description.illuminations.autoUpdater8\": \"you can do that at any time by modifying the Illuminations config.\",\n  \"option.illuminations.enable\": \"Enable\",\n  \"option.illuminations.disable\": \"Keep disabled\",\n  \"category.illuminations.general\": \"General\",\n  \"category.illuminations.general.description\": \"General settings\",\n  \"category.illuminations.overworld\": \"Overworld\",\n  \"category.illuminations.overworld.description\": \"Settings for overworld biomes\",\n  \"category.illuminations.theNether\": \"The Nether\",\n  \"category.illuminations.theNether.description\": \"Settings for nether biomes\",\n  \"category.illuminations.theEnd\": \"The End\",\n  \"category.illuminations.theEnd.description\": \"Settings for end biomes\",\n  \"category.illuminations.other\": \"Other\",\n  \"category.illuminations.other.description\": \"Settings for all other biomes not defined in other settings\",\n  \"category.illuminations.auraSettings\": \"Aura Settings\",\n  \"option.illuminations.halloweenFeatures\": \"Halloween Features\",\n  \"option.tooltip.illuminations.halloweenFeatures\": \"Halloween features like spooky glowing eyes, pumpkin spirits and poltergeists.\",\n  \"option.tooltip.illuminations.halloweenFeatures.default\": \"Set on ENABLE by default.\",\n  \"option.tooltip.illuminations.halloweenFeatures.enable\": \"ENABLE: Halloween features will appear during October\",\n  \"option.tooltip.illuminations.halloweenFeatures.disable\": \"DISABLE: Halloween features will never appear\",\n  \"option.tooltip.illuminations.halloweenFeatures.always\": \"ALWAYS: Halloween features will appear no matter the date\",\n  \"option.illuminations.eyesInTheDarkSpawnRate\": \"Eyes in the Dark Spawn Rate\",\n  \"option.tooltip.illuminations.eyesInTheDarkSpawnRate\": \"The spawn rate of eyes in the dark.\",\n  \"option.tooltip.illuminations.eyesInTheDarkSpawnRate.default\": \"Set on MEDIUM by default.\",\n  \"option.tooltip.illuminations.eyesInTheDarkSpawnRate.low\": \"LOW: Eyes will appear in low quantities\",\n  \"option.tooltip.illuminations.eyesInTheDarkSpawnRate.medium\": \"MEDIUM: Eyes will appear in medium quantities\",\n  \"option.tooltip.illuminations.eyesInTheDarkSpawnRate.high\": \"HIGH: Eyes will appear in high quantities\",\n  \"option.illuminations.willOWispsSpawnRate\": \"Will O' Wisps Spawn Rate\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate\": \"The spawn rate of will o' wisps.\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate.default\": \"Set on MEDIUM by default.\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate.disable\": \"DISABLE: Will O' Wisps don't appear\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate.low\": \"LOW: Will O' Wisps appear in low quantities\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate.medium\": \"MEDIUM: Will O' Wisps appear in medium quantities\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate.high\": \"HIGH: Will O' Wisps appear in high quantities\",\n  \"option.illuminations.chorusPetalsSpawnMultiplier\": \"Chorus Petals Spawn Multiplier\",\n  \"option.tooltip.illuminations.chorusPetalsSpawnMultiplier\": \"The spawn rate multiplier of chorus petals.\",\n  \"option.tooltip.illuminations.chorusPetalsSpawnMultiplier.lowest\": \"0x: Disables chorus petals\",\n  \"option.tooltip.illuminations.chorusPetalsSpawnMultiplier.highest\": \"10x: Multiplies the amount of chorus petals appearing by 10\",\n  \"option.illuminations.density\": \"Spawn Density\",\n  \"option.tooltip.illuminations.density\": \"The spawn rate percentage multiplier. Does not affect eyes in the dark.\",\n  \"option.tooltip.illuminations.density.lowest\": \"0%: Disables illuminations\",\n  \"option.tooltip.illuminations.density.highest\": \"1000%: Multiplies the amount of illuminations appearing by 10\",\n  \"option.illuminations.fireflySpawnAlways\": \"Fireflies Spawn Always\",\n  \"option.tooltip.illuminations.fireflySpawnAlways\": \"Fireflies spawn every time of day.\",\n  \"option.illuminations.fireflySpawnUnderground\": \"Fireflies Spawn Underground\",\n  \"option.tooltip.illuminations.fireflySpawnUnderground\": \"Fireflies spawn underground.\",\n  \"option.illuminations.autoUpdate\": \"Auto-Update\",\n  \"option.tooltip.illuminations.autoUpdate\": \"Automatically download and install new versions when they come out.\",\n  \"option.illuminations.debugMode\": \"Log Debug Mode\",\n  \"option.tooltip.illuminations.debugMode\": \"Enable debug mode logs to troubleshoot issues with cosmetics loading.\",\n  \"option.illuminations.fireflyWhiteAlpha\": \"Firefly White Alpha\",\n  \"option.tooltip.illuminations.fireflyWhiteAlpha\": \"The alpha value of the firefly center glow, in percentage.\",\n  \"option.illuminations.fireflyRainbow\": \"Firefly §c§oR§6§oA§e§oI§a§oN§9§oB§b§oO§5§oW §rMode\",\n  \"option.illuminations.viewAurasFP\": \"See Cosmetics in First Person\",\n  \"option.tooltip.illuminations.viewAurasFP\": \"Whether your own auras and pets should render while in first person.\",\n  \"option.illuminations.displayDonationToast\": \"Display donation toast\",\n  \"option.tooltip.illuminations.displayDonationToast\": \"If you already donated or don't want to donate, set this option to false.\",\n  \"option.illuminations.fireflySpawnRate\": \"Firefly Spawn Rate\",\n  \"option.tooltip.illuminations.fireflySpawnRate\": \"The spawn rate of fireflies.\",\n  \"option.tooltip.illuminations.fireflySpawnRate.disable\": \"DISABLE: Fireflies don't appear\",\n  \"option.tooltip.illuminations.fireflySpawnRate.low\": \"LOW: Fireflies appear in low quantities\",\n  \"option.tooltip.illuminations.fireflySpawnRate.medium\": \"MEDIUM: Fireflies appear in medium quantities\",\n  \"option.tooltip.illuminations.fireflySpawnRate.high\": \"HIGH: Fireflies appear in high quantities\",\n  \"option.illuminations.fireflyColor\": \"Firefly Color\",\n  \"option.tooltip.illuminations.fireflyColor\": \"The color of fireflies.\",\n  \"option.illuminations.glowwormSpawnRate\": \"Glowworm Spawn Rate\",\n  \"option.tooltip.illuminations.glowwormSpawnRate.disable\": \"DISABLE: Glowworms don't appear\",\n  \"option.tooltip.illuminations.glowwormSpawnRate.low\": \"LOW: Glowworms appear in low quantities\",\n  \"option.tooltip.illuminations.glowwormSpawnRate.medium\": \"MEDIUM: Glowworms appear in medium quantities\",\n  \"option.tooltip.illuminations.glowwormSpawnRate.high\": \"HIGH: Glowworms appear in high quantities\",\n  \"option.tooltip.illuminations.glowwormSpawnRate\": \"The spawn rate of glowworms.\",\n  \"option.illuminations.planktonSpawnRate\": \"Plankton Spawn Rate\",\n  \"option.tooltip.illuminations.planktonSpawnRate\": \"The spawn rate of plankton.\",\n  \"option.tooltip.illuminations.planktonSpawnRate.disable\": \"DISABLE: Plankton doesn't appear\",\n  \"option.tooltip.illuminations.planktonSpawnRate.low\": \"LOW: Plankton appears in low quantities\",\n  \"option.tooltip.illuminations.planktonSpawnRate.medium\": \"MEDIUM: Plankton appears in medium quantities\",\n  \"option.tooltip.illuminations.planktonSpawnRate.high\": \"HIGH: Plankton appears in high quantities\",\n  \"option.illuminations.biome.forest\": \"Forest\",\n  \"option.illuminations.biome.taiga\": \"Taiga\",\n  \"option.illuminations.biome.snowy\": \"Snowy\",\n  \"option.illuminations.biome.plains\": \"Plains\",\n  \"option.illuminations.biome.desert\": \"Desert\",\n  \"option.illuminations.biome.savanna\": \"Savanna\",\n  \"option.illuminations.biome.jungle\": \"Jungle\",\n  \"option.illuminations.biome.beach\": \"Beach\",\n  \"option.illuminations.biome.swamp\": \"Swamp\",\n  \"option.illuminations.biome.river\": \"River\",\n  \"option.illuminations.biome.ocean\": \"Ocean\",\n  \"option.illuminations.biome.warmOcean\": \"Warm Ocean\",\n  \"option.illuminations.biome.badlands\": \"Badlands\",\n  \"option.illuminations.biome.mountains\": \"Mountains\",\n  \"option.illuminations.biome.dripstoneCaves\": \"Dripstone Caves\",\n  \"option.illuminations.biome.lushCaves\": \"Lush Caves\",\n  \"option.illuminations.biome.mushroom\": \"Mushroom\",\n  \"option.illuminations.biome.theVoid\": \"The Void\",\n  \"option.illuminations.biome.netherWastes\": \"Nether Wastes\",\n  \"option.illuminations.biome.crimsonForest\": \"Crimson Forest\",\n  \"option.illuminations.biome.warpedForest\": \"Warped Forest\",\n  \"option.illuminations.biome.soulSandValley\": \"Soul Sand Valley\",\n  \"option.illuminations.biome.basaltDeltas\": \"Basalt Deltas\",\n  \"option.illuminations.biome.theEnd\": \"The End\",\n  \"option.illuminations.biome.smallEndIslands\": \"Small End Islands\",\n  \"option.illuminations.biome.endMidlands\": \"End Midlands\",\n  \"option.illuminations.biome.endHighlands\": \"End Highlands\",\n  \"option.illuminations.biome.endBarrens\": \"End Barrens\",\n  \"option.illuminations.biome.other\": \"Other\",\n  \"option.tooltip.illuminations.biome\": \"Biomes in this category:\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/lang/id_id.json",
    "content": "{\n  \"title.illuminations.config\": \"Konfigurasi Illuminations\",\n  \"title.illuminations.autoUpdater\": \"Illuminations Pembaruan-Otomatis\",\n  \"description.illuminations.autoUpdater1\": \"Illuminations memiliki pembaruan-otomatis yang memungkinkan versi kamu selalu terbaru\",\n  \"description.illuminations.autoUpdater2\": \"Menjaga Illuminations tetap up-to-date tanpa perlu kamu khawatir.\",\n  \"description.illuminations.autoUpdater3\": \"Saat ini nonaktif dari bawaan, tapi kamu bisa mengaktifkannya disini.\",\n  \"description.illuminations.autoUpdater4\": \"Harap pertimbangkan karena ini dapat membantu mendukung pembuat mod\",\n  \"description.illuminations.autoUpdater5\": \"serta selalu menjagamu tetap up-to-date dengan pembaruan terbaru.\",\n  \"description.illuminations.autoUpdater6\": \"Layar ini hanya akan muncul sekali dan tidak akan mengganggumu lagi.\",\n  \"description.illuminations.autoUpdater7\": \"Jika kamu ingin mengaktifkan atau menonaktifkan pembaruan-otomatis setelah point itu,\",\n  \"description.illuminations.autoUpdater8\": \"kamu dapat melakukan itu kapan saja dengan mengubah konfigurasi Illuminations.\",\n  \"option.illuminations.enable\": \"Aktifkan\",\n  \"option.illuminations.disable\": \"Tetap nonaktifkan\",\n  \"category.illuminations.general\": \"Umum\",\n  \"option.illuminations.eyesInTheDark\": \"Mata dalam Kegelapan\",\n  \"option.tooltip.illuminations.eyesInTheDark\": \"Mata bersinar yang seram muncul dalam lingkungan bercahaya redup.\",\n  \"option.tooltip.illuminations.eyesInTheDark.default\": \"Setel diaktifkan dari bawaan.\",\n  \"option.tooltip.illuminations.eyesInTheDark.enable\": \"AKTIFKAN: Mata akan muncul selama Oktober\",\n  \"option.tooltip.illuminations.eyesInTheDark.disable\": \"NONAKTIFKAN: Mata tidak akan pernah muncul\",\n  \"option.tooltip.illuminations.eyesInTheDark.always\": \"SELALU: Mata selalu bisa dilihat\",\n  \"option.illuminations.density\": \"Kepadatan Muncul\",\n  \"option.tooltip.illuminations.density\": \"Pengganda persentase tingkat kemunculan. Tidak mempengaruhi Mata dalam Kegelapan.\",\n  \"option.tooltip.illuminations.density.lowest\": \"0%: Nonaktifkan illuminations\",\n  \"option.tooltip.illuminations.density.highest\": \"1000%: Menggandakan 10x jumlah dari kemunculan illuminations\",\n  \"option.illuminations.autoUpdate\": \"Pembaruan-Otomatis\",\n  \"option.tooltip.illuminations.autoUpdate\": \"Otomatis unduh dan memasang versi terbaru ketika keluar.\",\n  \"option.illuminations.fireflyWhiteAlpha\": \"Kunang-kunang Putih Alpha\",\n  \"option.tooltip.illuminations.fireflyWhiteAlpha\": \"Jumlah alpha sinar ditengah kunang-kunang, dalam persentase.\",\n  \"option.illuminations.viewAurasFP\": \"Lihat Cosmetics dalam First Person\",\n  \"option.tooltip.illuminations.viewAurasFP\": \"Apakah aura dan peliharaan kamu harus ditampilkan ketika dalam first person\"\n}\n"
  },
  {
    "path": "src/main/resources/assets/illuminations/lang/ru_ru.json",
    "content": "{\n  \"title.illuminations.config\": \"Настройки Illuminations\",\n  \"title.illuminations.autoUpdater\": \"Автоматическое обновление Illuminations\",\n  \"description.illuminations.autoUpdater1\": \"Illuminations имеет автоматическое обновление, которое позволяет поддерживать\",\n  \"description.illuminations.autoUpdater2\": \"Illuminations актуальным, не беспокоя вас об этом.\",\n  \"description.illuminations.autoUpdater3\": \"Оно отключено по умолчанию, но вы можете включить его здесь.\",\n  \"description.illuminations.autoUpdater4\": \"Пожалуйста, примите это во внимание, так как это помогает поддержать автора мода,\",\n  \"description.illuminations.autoUpdater5\": \"а также всегда держать вас в курсе последних обновлений.\",\n  \"description.illuminations.autoUpdater6\": \"Этот экран появится только один раз и больше вас не побеспокоит.\",\n  \"description.illuminations.autoUpdater7\": \"Если вы хотите включить или отключить автоматическое обновление после этого,\",\n  \"description.illuminations.autoUpdater8\": \"вы можете сделать это в любое время, изменив конфигурацию Illuminations.\",\n  \"option.illuminations.enable\": \"Включить\",\n  \"option.illuminations.disable\": \"Оставить выключенным\",\n  \"category.illuminations.general\": \"Основное\",\n  \"category.illuminations.general.description\": \"Главные настройки\",\n  \"category.illuminations.overworld\": \"Верхний мир\",\n  \"category.illuminations.overworld.description\": \"Настройки для биомов верхнего мира\",\n  \"category.illuminations.theNether\": \"Незер\",\n  \"category.illuminations.theNether.description\": \"Настройки для биомов Незера\",\n  \"category.illuminations.theEnd\": \"Энд\",\n  \"category.illuminations.theEnd.description\": \"Настройки биомов энда\",\n  \"category.illuminations.other\": \"Другое\",\n  \"category.illuminations.other.description\": \"Настройки для биомов, не указанных в остальных настройках\",\n  \"category.illuminations.auraSettings\": \"Настройки ауры\",\n  \"option.illuminations.halloweenFeatures\": \"Хэллоуинские особенности\",\n  \"option.tooltip.illuminations.halloweenFeatures\": \"Хэллоуинские особенности, такие как жуткие светящиеся глаза, духи тыкв и полтергейсты.\",\n  \"option.tooltip.illuminations.halloweenFeatures.default\": \"Установить ВКЛЮЧЕНО по умолчанию.\",\n  \"option.tooltip.illuminations.halloweenFeatures.enable\": \"ВКЛЮЧЕНО: Хэллоуинские особенности будут появляться в течение октября\",\n  \"option.tooltip.illuminations.halloweenFeatures.disable\": \"ВЫКЛЮЧЕНО: Хэллоуинские особенности не будут появляться вообще\",\n  \"option.tooltip.illuminations.halloweenFeatures.always\": \"ВСЕГДА: Хэллоуинские особенности будут появляться всегда\",\n  \"option.illuminations.eyesInTheDarkSpawnRate\": \"Частота появления Глаз в темноте\",\n  \"option.tooltip.illuminations.eyesInTheDarkSpawnRate\": \"Шанс появления Глаз в темноте.\",\n  \"option.tooltip.illuminations.eyesInTheDarkSpawnRate.default\": \"Установить СРЕДНИЙ по умолчанию.\",\n  \"option.tooltip.illuminations.eyesInTheDarkSpawnRate.low\": \"НИЗКИЙ: Глаза будут появляться крайне редко\",\n  \"option.tooltip.illuminations.eyesInTheDarkSpawnRate.medium\": \"СРЕДНИЙ: Глаза будут появляться со средней частотой\",\n  \"option.tooltip.illuminations.eyesInTheDarkSpawnRate.high\": \"ВЫСОКИЙ: Глаза будут появляться очень часто\",\n  \"option.illuminations.willOWispsSpawnRate\": \"Частота появления блуждающих огоньков\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate\": \"Частота появления блуждающих огоньков\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate.default\": \"Установить СРЕДНИЙ по умолчанию.\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate.disable\": \"ОТКЛЮЧИТЬ: Блуждающие огоньки не будут появляться\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate.low\": \"НИЗКИЙ: Блуждающие огоньки будут появляться крайне редко\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate.medium\": \"СРЕДНИЙ: Блуждающие огоньки будут появляться со средней частотой\",\n  \"option.tooltip.illuminations.willOWispsSpawnRate.high\": \"ВЫСОКИЙ: Блуждающие огоньки будут появляться очень часто\",\n  \"option.illuminations.chorusPetalsSpawnMultiplier\": \"Количество лепестков хоруса\",\n  \"option.tooltip.illuminations.chorusPetalsSpawnMultiplier\": \"Множитель частоты появления лепестков хоруса.\",\n  \"option.tooltip.illuminations.chorusPetalsSpawnMultiplier.lowest\": \"0x: Отключить лепестки хоруса\",\n  \"option.tooltip.illuminations.chorusPetalsSpawnMultiplier.highest\": \"10x: умножает частоту появления лепестков хоруса на 10\",\n  \"option.illuminations.density\": \"Плотность появления\",\n  \"option.tooltip.illuminations.density\": \"Множитель частоты появления. Не влияет на глаза во тьме.\",\n  \"option.tooltip.illuminations.density.lowest\": \"0%: Отключить иллюминации\",\n  \"option.tooltip.illuminations.density.highest\": \"1000%: Частота иллюминаций умножится на 10\",\n  \"option.illuminations.fireflySpawnAlways\": \"Светлячки появляются всегда\",\n  \"option.tooltip.illuminations.fireflySpawnAlways\": \"Светлячки появляются в любое время дня.\",\n  \"option.illuminations.fireflySpawnUnderground\": \"Светлячки появляются под землей\",\n  \"option.tooltip.illuminations.fireflySpawnUnderground\": \"Светлячки появляются под землей.\",\n  \"option.illuminations.autoUpdate\": \"Авто-обновление\",\n  \"option.tooltip.illuminations.autoUpdate\": \"Автоматически скачивать и устанавливать новые версии.\",\n  \"option.illuminations.debugMode\": \"Режим отладки логов\",\n  \"option.tooltip.illuminations.debugMode\": \"Включите журналы режима отладки для устранения проблем с загрузкой косметических средств..\",\n  \"option.illuminations.fireflyWhiteAlpha\": \"Белая прозрачность светлячков\",\n  \"option.tooltip.illuminations.fireflyWhiteAlpha\": \"Прозрачность центрального свечения светлячков.\",\n  \"option.illuminations.fireflyRainbow\": \"§c§oР§6§oА§e§oД§a§oУ§9§oЖ§b§oН§5§oЫЙ §rРежим Светлячков\",\n  \"option.illuminations.viewAurasFP\": \"Видеть косметику от первого лица\",\n  \"option.tooltip.illuminations.viewAurasFP\": \"Должны ли ваши собственные ауры и питомцы отображаться от первого лица.\",\n  \"option.illuminations.displayDonationToast\": \"Показать сообщение о пожертвовании\",\n  \"option.tooltip.illuminations.displayDonationToast\": \"Если вы уже пожертвовали или не хотите пожертвовать, установите для этого параметра значение false..\",\n  \"option.illuminations.fireflySpawnRate\": \"Частота появления светлячков\",\n  \"option.tooltip.illuminations.fireflySpawnRate\": \"Частота появления светлячков.\",\n  \"option.tooltip.illuminations.fireflySpawnRate.disable\": \"ОТКЛЮЧЕНА: Светлячки не появляются\",\n  \"option.tooltip.illuminations.fireflySpawnRate.low\": \"НИЗКАЯ: Светлячки появляются крайне редко\",\n  \"option.tooltip.illuminations.fireflySpawnRate.medium\": \"СРЕДНЯЯ: Светлячки появляются со средней частотой\",\n  \"option.tooltip.illuminations.fireflySpawnRate.high\": \"ВЫСОКАЯ: Светлячки появляются очень часто\",\n  \"option.illuminations.fireflyColor\": \"Цвет светлячков\",\n  \"option.tooltip.illuminations.fireflyColor\": \"Цвет светлячков.\",\n  \"option.illuminations.glowwormSpawnRate\": \"Частота появления светящихся червей.\",\n  \"option.tooltip.illuminations.glowwormSpawnRate.disable\": \"ОТКЛЮЧЕНА: Светящиеся черви не появляются\",\n  \"option.tooltip.illuminations.glowwormSpawnRate.low\": \"НИЗКАЯ: Светящиеся черви появляются крайне редко\",\n  \"option.tooltip.illuminations.glowwormSpawnRate.medium\": \"СРЕДНЯЯ: Светящиеся черви появляются со средней частотой\",\n  \"option.tooltip.illuminations.glowwormSpawnRate.high\": \"ВЫСОКАЯ: Светящиеся черви появляются очень часто\",\n  \"option.tooltip.illuminations.glowwormSpawnRate\": \"Частота появления светящихся червей.\",\n  \"option.illuminations.planktonSpawnRate\": \"Частота появления планктона\",\n  \"option.tooltip.illuminations.planktonSpawnRate\": \"Частота появления планктона.\",\n  \"option.tooltip.illuminations.planktonSpawnRate.disable\": \"ОТКЛЮЧЕНА: Планктон появляется\",\n  \"option.tooltip.illuminations.planktonSpawnRate.low\": \"НИЗКАЯ: Планктон появляется крайне редко\",\n  \"option.tooltip.illuminations.planktonSpawnRate.medium\": \"СРЕДНЯЯ: Планктон появляется со средней частотой\",\n  \"option.tooltip.illuminations.planktonSpawnRate.high\": \"ВЫСОКАЯ: Планктон появляется очень часто\",\n  \"option.illuminations.biome.forest\": \"Лес\",\n  \"option.illuminations.biome.taiga\": \"Тайга\",\n  \"option.illuminations.biome.snowy\": \"Снежный\",\n  \"option.illuminations.biome.plains\": \"Равнины\",\n  \"option.illuminations.biome.desert\": \"Пустыня\",\n  \"option.illuminations.biome.savanna\": \"Саванна\",\n  \"option.illuminations.biome.jungle\": \"Джунгли\",\n  \"option.illuminations.biome.beach\": \"Пляж\",\n  \"option.illuminations.biome.swamp\": \"Болота\",\n  \"option.illuminations.biome.river\": \"Река\",\n  \"option.illuminations.biome.ocean\": \"Океан\",\n  \"option.illuminations.biome.warmOcean\": \"Тёплый океан\",\n  \"option.illuminations.biome.badlands\": \"Меза\",\n  \"option.illuminations.biome.mountains\": \"Горы\",\n  \"option.illuminations.biome.dripstoneCaves\": \"Карстовые пещеры\",\n  \"option.illuminations.biome.lushCaves\": \"Пышные пещеры\",\n  \"option.illuminations.biome.mushroom\": \"Грибной остров\",\n  \"option.illuminations.biome.theVoid\": \"Пустота\",\n  \"option.illuminations.biome.netherWastes\": \"Nether Wastes\",\n  \"option.illuminations.biome.crimsonForest\": \"Багровый лес\",\n  \"option.illuminations.biome.warpedForest\": \"Искажённый лес\",\n  \"option.illuminations.biome.soulSandValley\": \"Долины песка душ\",\n  \"option.illuminations.biome.basaltDeltas\": \"Базальтовые дельты\",\n  \"option.illuminations.biome.theEnd\": \"Энд\",\n  \"option.illuminations.biome.smallEndIslands\": \"Маленькие острова Энда\",\n  \"option.illuminations.biome.endMidlands\": \"End Midlands\",\n  \"option.illuminations.biome.endHighlands\": \"Горы Энда\",\n  \"option.illuminations.biome.endBarrens\": \"Степи Энда\",\n  \"option.illuminations.biome.other\": \"Другой\",\n  \"option.tooltip.illuminations.biome\": \"Биомы в этой категории:\"\n}\n"
  },
  {
    "path": "src/main/resources/assets/illuminations/lang/zh_cn.json",
    "content": "{\n  \"title.illuminations.config\": \"Illuminations 配置\",\n  \"category.illuminations.general\": \"通用\",\n  \"option.illuminations.eyesInTheDark\": \"暗处的眼睛\",\n  \"option.tooltip.illuminations.eyesInTheDark\": \"光照强度较低的环境中出现的可怖眼睛\",\n  \"option.tooltip.illuminations.eyesInTheDark.default\": \"默认为 ENABLE。\",\n  \"option.tooltip.illuminations.eyesInTheDark.enable\": \"ENABLE：仅在十月出现。\",\n  \"option.tooltip.illuminations.eyesInTheDark.disable\": \"DISABLE：从不出现。\",\n  \"option.tooltip.illuminations.eyesInTheDark.always\": \"ALWAYS：全年出现。\",\n  \"option.illuminations.density\": \"生成密度\",\n  \"option.tooltip.illuminations.density\": \"在等体积下的生成率（百分比）。不影响暗处的眼睛。\",\n  \"option.tooltip.illuminations.density.lowest\": \"0%：禁用。\",\n  \"option.tooltip.illuminations.density.highest\": \"1000%：十倍于默认值。\",\n  \"option.illuminations.autoUpdate\": \"自动更新\",\n  \"option.tooltip.illuminations.autoUpdate\": \"自动下载及安装新版本。\",\n  \"option.illuminations.fireflyWhiteAlpha\": \"萤火虫透明度\",\n  \"option.tooltip.illuminations.fireflyWhiteAlpha\": \"萤火虫中心的透明度（百分比）。\"\n}\n"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/entity/will_o_wisp.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/ace_pride_pet.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/autumn_leaves.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/bi_pride_pet.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/chorus_aura.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/chorus_petal.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/confetti.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/dissolution_wisp_pet.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/eyes.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/firefly.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/ghostly_aura.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/glowworm.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/goldenrod_aura.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/intersex_pride_pet.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/jacko_pet.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/lesbian_pride_pet.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/nb_pride_pet.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/plankton.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/pride_pet.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/prismarine_aura.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/prismarine_crystal.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/prismatic_confetti.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/sculk_tendril.json",
    "content": "{\n  \"material\": \"canvas:emissive_transform\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/shadowbringer_aura.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/trans_pride_pet.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/twilight_aura.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/materialmaps/particle/wisp_trail.json",
    "content": "{\n  \"material\": \"canvas:emissive_no_diffuse\"\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/ace_pride_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/agender_pride_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/aro_pride_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/autumn_leaves.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:autumn_leaf_0\",\n    \"illuminations:autumn_leaf_1\",\n    \"illuminations:autumn_leaf_2\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/bi_pride_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/chorus_aura.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:chorus_petal_0\",\n    \"illuminations:chorus_petal_1\",\n    \"illuminations:chorus_petal_2\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/chorus_petal.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:chorus_petal_0\",\n    \"illuminations:chorus_petal_1\",\n    \"illuminations:chorus_petal_2\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/confetti.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:confetti\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/crying_lantern_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/dissolution_wisp_pet.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:dissolution_wisp\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/ember.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:ember\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/ember_trail.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:ember\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/eyes.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:eyes_0\",\n    \"illuminations:eyes_1\",\n    \"illuminations:eyes_2\",\n    \"illuminations:eyes_3\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/firefly.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:firefly\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/founding_skull_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/gay_pride_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/ghostly.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:ghostly_0\",\n    \"illuminations:ghostly_1\",\n    \"illuminations:ghostly_2\",\n    \"illuminations:ghostly_3\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/ghostly_aura.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:ghostly_0\",\n    \"illuminations:ghostly_1\",\n    \"illuminations:ghostly_2\",\n    \"illuminations:ghostly_3\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/glowworm.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:firefly\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/golden_will_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/goldenrod_aura.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:rune1\",\n    \"illuminations:rune2\",\n    \"illuminations:rune3\",\n    \"illuminations:rune4\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/intersex_pride_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/jacko_pet.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:jacko\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/lantern_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/lesbian_pride_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/nb_pride_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/pan_pride_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/plankton.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:firefly\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/poltergeist.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/poltergeist_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/pride_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/prismarine_aura.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:prismarine_crystal_0\",\n    \"illuminations:prismarine_crystal_1\",\n    \"illuminations:prismarine_crystal_2\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/prismarine_crystal.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:prismarine_crystal_0\",\n    \"illuminations:prismarine_crystal_1\",\n    \"illuminations:prismarine_crystal_2\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/prismatic_confetti.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:confetti\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/pumpkin_spirit.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/pumpkin_spirit_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/sculk_tendril.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:tendril_active\",\n    \"illuminations:tendril_inactive\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/shadowbringer_aura.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:shade_0\",\n    \"illuminations:shade_1\",\n    \"illuminations:shade_2\",\n    \"illuminations:shade_3\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/soothing_lantern_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/soul_lantern_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/trans_pride_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/twilight_aura.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:firefly\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/will_o_wisp.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/will_o_wisp_pet.json",
    "content": "{\n  \"textures\": [\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/particles/wisp_trail.json",
    "content": "{\n  \"textures\": [\n    \"illuminations:wisp_trail\"\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/shaders/core/jeb.fsh",
    "content": "#version 150\n\nuniform sampler2D Sampler0;\nuniform sampler2D Sampler1;\nuniform sampler2D Sampler2;\n\nin vec4 vertexColor;\nin vec2 texCoord0;\nin vec2 texCoord1;\nin vec2 texCoord2;\nin vec4 normal;\n\nout vec4 fragColor;\n\nuniform float Time;\nuniform vec2 WobbleAmount;\n\nvec3 rgb2hsv(vec3 c)\n{\n    vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);\n    vec4 p = c.g < c.b ? vec4(c.bg, K.wz) : vec4(c.gb, K.xy);\n    vec4 q = c.r < p.x ? vec4(p.xyw, c.r) : vec4(c.r, p.yzx);\n\n    float d = q.x - min(q.w, q.y);\n    float e = 1.0e-10;\n    return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x);\n}\n\nvec3 hsv2rgb(vec3 c)\n{\n    vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\n    vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\n    return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);\n}\n\nvoid main() {\n    vec4 rgb = texture(Sampler0, texCoord0);\n    if (rgb.a == 0) discard;\n    vec3 hsv = rgb2hsv(rgb.rgb);\n    hsv.x = fract(hsv.x + Time/5.0);\n    fragColor = vec4(hsv2rgb(hsv), 1.0);\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/shaders/core/jeb.json",
    "content": "{\n  \"blend\": {\n    \"func\": \"add\",\n    \"srcrgb\": \"srcalpha\",\n    \"dstrgb\": \"1-srcalpha\"\n  },\n  \"vertex\": \"illuminations:jeb\",\n  \"fragment\": \"illuminations:jeb\",\n  \"attributes\": [\n    \"Position\",\n    \"Color\",\n    \"UV0\",\n    \"UV1\",\n    \"UV2\",\n    \"Normal\"\n  ],\n  \"samplers\": [\n    {\n      \"name\": \"Sampler0\"\n    },\n    {\n      \"name\": \"Sampler1\"\n    },\n    {\n      \"name\": \"Sampler2\"\n    }\n  ],\n  \"uniforms\": [\n    {\n      \"name\": \"ModelViewMat\",\n      \"type\": \"matrix4x4\",\n      \"count\": 16,\n      \"values\": [\n        1.0,\n        0.0,\n        0.0,\n        0.0,\n        0.0,\n        1.0,\n        0.0,\n        0.0,\n        0.0,\n        0.0,\n        1.0,\n        0.0,\n        0.0,\n        0.0,\n        0.0,\n        1.0\n      ]\n    },\n    {\n      \"name\": \"ProjMat\",\n      \"type\": \"matrix4x4\",\n      \"count\": 16,\n      \"values\": [\n        1.0,\n        0.0,\n        0.0,\n        0.0,\n        0.0,\n        1.0,\n        0.0,\n        0.0,\n        0.0,\n        0.0,\n        1.0,\n        0.0,\n        0.0,\n        0.0,\n        0.0,\n        1.0\n      ]\n    },\n    {\n      \"name\": \"Time\",\n      \"type\": \"float\",\n      \"count\": 1,\n      \"values\": [\n        0.0\n      ]\n    }\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/illuminations/shaders/core/jeb.vsh",
    "content": "#version 150\n\nin vec3 Position;\nin vec4 Color;\nin vec2 UV0;\nin vec2 UV1;\nin vec2 UV2;\nin vec3 Normal;\n\nuniform mat4 ModelViewMat;\nuniform mat4 ProjMat;\n\nout vec4 vertexColor;\nout vec2 texCoord0;\nout vec2 texCoord1;\nout vec2 texCoord2;\nout vec4 normal;\n\nvoid main() {\n    gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0);\n\n    vertexColor = Color;\n    texCoord0 = UV0;\n    texCoord1 = UV1;\n    texCoord2 = UV2;\n    normal = ProjMat * ModelViewMat * vec4(Normal, 0.0);\n}\n"
  },
  {
    "path": "src/main/resources/assets/illuminations/textures/particle/dissolution_wisp.png.mcmeta",
    "content": "{\n    \"animation\": {\n        \"frametime\": 1\n    }\n}\n"
  },
  {
    "path": "src/main/resources/assets/illuminations/textures/particle/tendril_active.png.mcmeta",
    "content": "{\n    \"animation\": {\n        \"frametime\": 1\n    }\n}\n"
  },
  {
    "path": "src/main/resources/assets/illuminations/textures/particle/tendril_inactive.png.mcmeta",
    "content": "{\n    \"animation\": {\n        \"frametime\": 2\n    }\n}\n"
  },
  {
    "path": "src/main/resources/assets/minecraft/materialmaps/entity/player.json",
    "content": "{\n  \"map\": [\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/frost_crown.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/solar_crown.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/chorus_crown.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/bloodfiend_crown.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/dreadlich_crown.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/mooncult_crown.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/glowsquid_cult_crown.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/timeaspect_cult_crown.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/voidheart_tiara.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/summerbreeze_wreath.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/springfae_horns.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/deepsculk_horns.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/worldweaver_halo.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/drip_color.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    },\n    {\n      \"predicate\": {\n        \"materialPredicate\": {\n          \"texture\": \"illuminations:textures/entity/pyro_crown.png\"\n        }\n      },\n      \"material\": \"canvas:emissive_transform\"\n    }\n  ]\n}"
  },
  {
    "path": "src/main/resources/assets/minecraft/shaders/core/particle.fsh",
    "content": "#version 150\n\n#moj_import <fog.glsl>\n\nuniform sampler2D Sampler0;\n\nuniform vec4 ColorModulator;\nuniform float FogStart;\nuniform float FogEnd;\nuniform vec4 FogColor;\n\nin float vertexDistance;\nin vec2 texCoord0;\nin vec4 vertexColor;\n\nout vec4 fragColor;\n\nvoid main() {\n    vec4 color = texture(Sampler0, texCoord0) * vertexColor * ColorModulator;\n    //    Mojang stole my fucking smooth fading. I opened my mod an no more fading. Can't have shit in Minecraft.\n    if (color.a < 0.000001) {\n        discard;\n    }\n    fragColor = linear_fog(color, vertexDistance, FogStart, FogEnd, FogColor);\n}\n"
  },
  {
    "path": "src/main/resources/fabric.mod.json",
    "content": "{\n  \"schemaVersion\": 1,\n  \"id\": \"illuminations\",\n  \"version\": \"${version}\",\n  \"name\": \"Illuminations\",\n  \"description\": \"Fireflies, other illuminations to make your world more enjoyable in darkness and player cosmetics.\",\n  \"authors\": [\n    \"doctor4t\"\n  ],\n  \"contact\": {\n    \"homepage\": \"https://illuminations.uuid.gg/\",\n    \"sources\": \"https://github.com/Ladysnake/Illuminations\",\n    \"issues\": \"https://github.com/Ladysnake/Illuminations/issues\"\n  },\n  \"license\": \"Code: GNU GPLv3; Art: ARR\",\n  \"icon\": \"assets/illuminations/illuminations.png\",\n  \"environment\": \"client\",\n  \"entrypoints\": {\n    \"client\": [\n      \"ladysnake.illuminations.client.Illuminations\"\n    ],\n    \"modmenu\": [\n      \"ladysnake.illuminations.client.IlluminationsModMenuIntegration\"\n    ]\n  },\n  \"mixins\": [\n    \"illuminations.mixins.json\"\n  ],\n  \"accessWidener\": \"illuminations.accesswidener\",\n  \"depends\": {\n    \"fabricloader\": \">=0.4.0\",\n    \"fabric\": \"*\"\n  }\n}\n"
  },
  {
    "path": "src/main/resources/illuminations.accesswidener",
    "content": "accessWidener\tv1\tnamed\n\naccessible  class   net/minecraft/client/render/RenderLayer$MultiPhase\naccessible  class   net/minecraft/client/render/RenderLayer$MultiPhaseParameters\n"
  },
  {
    "path": "src/main/resources/illuminations.mixins.json",
    "content": "{\n  \"required\": true,\n  \"package\": \"ladysnake.illuminations.mixin\",\n  \"compatibilityLevel\": \"JAVA_8\",\n  \"client\": [\n    \"BlockMixin\",\n    \"CarvedPumpkinBlockMixin\",\n    \"ChorusFlowerBlockMixin\",\n    \"ClientWorldMixin\",\n    \"LanternBlockMixin\",\n    \"LivingEntityMixin\",\n    \"ParticleManagerMixin\",\n    \"PlayerEntityMixin\",\n    \"RenderLayerAccessor\",\n    \"SkullBlockMixin\",\n    \"TitleScreenMixin\",\n    \"jeb.FeatureRendererMixin\",\n    \"jeb.LivingEntityRendererMixin\"\n  ],\n  \"plugin\": \"ladysnake.illuminations.IlluminationsMixinConfigPlugin\",\n  \"injectors\": {\n    \"defaultRequire\": 1\n  }\n}"
  },
  {
    "path": "src/main/resources/pack.mcmeta",
    "content": "{\n    \"pack\": {\n        \"description\": \"Illuminations resources\",\n        \"pack_format\": 3,\n        \"_comment\": \"\"\n    }\n}\n"
  }
]