
## PRIVATE-USE & CONTRIBUTION LICENSE (ALL RIGHTS RESERVED)

**© All rights reserved by HoYoverse. Other properties belong to their respective owners.**

**THIS PROJECT IS NOT AFFILIATED WITH NEITHER HOYOVERSE NOR GENSHIN IMPACT.**

**Copyright © 2025 xrickastley (_xRickAstley). All Rights Reserved.**

This license governs only the original code and modifications created by xrickastley (_xRickAstley). Materials owned by HoYoverse and Mojang remain under their respective rights.

<hr>

### 1. Definitions

For purposes of this License, the following definitions apply:

1.1 **"Software"** means the source code, compiled code, assets not owned by HoYoverse or Mojang, and related files of this project.

1.2 **"Modification"** means any change, edit, or addition made to existing files of the Software.

1.3 **"Independent Module"** means a new file or system created by a Contributor that:
* does not directly replace or modify existing files in the Software, and
* is functionally distinct such that it can be identified as an original creation of the Contributor.

1.4 **"Pull Request (PR)"** means a submission of proposed changes through the official repository's contribution system (e.g., GitHub).

1.5 **"Contributor"** means any individual or entity that submits a Pull Request to the official repository.

1.6 **"Maintainer"** means the owner of this repository and copyright holder of the Software, identified as xrickastley (_xRickAstley).

<hr>

### 2. Private Use

You may download and use this software for personal, non-commercial purposes only. Redistribution, public sharing, modification, reverse engineering, or commercial use is prohibited unless expressly permitted by xrickastley in writing, except as provided in Section 3, Section 9 and Section 10 below.

For clarity, viewing and studying the source code as published in the official repository does not constitute reverse engineering.

You may make modifications to the Software for **purely private, non-distributed use**. Such private modifications must not be shared, redistributed, in any form except by submitting them as a Pull Request in accordance with Section 3.

<hr>

### 3. Limited Modification for Pull Requests

You are granted limited permission to make modifications to the Software **solely for the purpose of submitting changes via a pull request to the official repository at** https://github.com/xrickastley/SevenElements.

1. Any modifications to the existing codebase, once submitted, shall become the property of xrickastley .
2. If your contribution is accepted, you grant xrickastley full rights to integrate, use, reproduce, modify, adapt, publish, translate, distribute, display in whole or in part, in any form, medium, or technology now known or later developed, modify, and maintain those changes as part of the project.
3. By submitting a Pull Request, you grant xrickastley a **perpetual, worldwide, royalty-free license** to **review, test, and evaluate** the contribution, regardless of whether the Pull Request is merged.
4. If the contribution is merged, the additional rights described in Sections 3–7 shall apply.
Independent Modules remain the property of the Contributor, but the Contributor may not impose licensing terms on such Modules that conflict with the rights granted to the Maintainer under this License.

<hr>

### 4. Independent Modules by Contributors

An **Independent Module** means a set of files, classes, or substantial code segments that:

1. Are not based on, derived from, or substantially similar to any portion of the existing codebase; and
2. Can function independently of the existing code, except for integration hooks necessary to operate within the project.

If your pull request introduces an Independent Module:

1. You retain copyright to that module.
2. You grant xrickastley a **perpetual, irrevocable, worldwide, royalty-free license** to use, reproduce, modify, adapt, publish, translate, distribute and display such modules, in whole or in part, in any form, medium, or technology now known or later developed **solely as part of this project**.
3. If the Pull Request is merged, you must ensure that any external license you apply to that module is updated to explicitly allow the rights granted in this License, and cannot conflict with them.
4. You waive any right to bring legal action against xrickastley or the project's maintainers for such use.
5. You acknowledge that the module may remain in the codebase indefinitely, even if you later request its removal.

<hr>

### 5. Mixed Contributions

If your pull request contains both:

* Modifications to existing code; and
* An Independent Module;
then:
* All modified portions of the existing code become the property of xrickastley.
* The Independent Module remains yours but is subject to the license grant in Section 4.

<hr>

### 6. Reclassification of Misrepresented Modules

If an Independent Module is found to be substantially based on or adapted from the existing codebase, it shall be reclassified as a modification under Section 3, and ownership shall transfer to xrickastley accordingly.

**6.1 Final Determination of Classification**

After a pull request is merged, xrickastley shall have the sole authority to determine whether any part of the contribution qualifies as an Independent Module or constitutes a modification to existing code. This determination shall be final and binding, and the contributor agrees to accept this classification as a condition of merging.
If no explicit classification is posted in accordance with Section 6.2, the fallback rules described therein shall apply automatically.

**6.2 Documentation in Pull Request Discussion**

The classification will be documented in the pull request discussion on the project's official repository before the pull request is closed, using the following format:

```
**Contribution Classification:**
- Independent Modules: [list files/features]
- Modifications to Existing Code: [list files/features]

As per project license, Independent Modules remain under contributor copyright
but are licensed to the project for perpetual use. Modifications become part
of the main codebase.
```

The classification must be posted by xrickastley **within one (1) week after merging and prior to closing the pull request**, and shall serve as the official record of ownership and licensing status for the contribution. Failure to post such classification within the timeframe will result in **all modifications to existing files automatically deemed to be non-Independent Modules (and therefore property of xrickastley), while any newly added files shall automatically be deemed Independent Modules subject to Section 4.**

<hr>

### 7. Contributor License Agreement (CLA)

By submitting any pull request to the repository, you agree that:

1. You have the legal right to contribute the code.
2. Your contribution does not infringe on any third-party rights.
3. You grant xrickastley a **perpetual, irrevocable, worldwide, royalty-free license** to use, reproduce, modify, adapt, publish, translate, distribute and display such modules, in whole or in part, in any form, medium, or technology now known or later developed **solely as part of this project**.
4. If the contribution is merged, you grant the additional rights described in Sections 2–5, and you must update any license you apply to Independent Modules so that it expressly permits the rights granted under this License.
5. All modifications to existing files become the property of the Maintainer.
4. You will comply with the attribution requirement for modifications to existing code.
5. You understand that no compensation will be provided for contributions.
6. **Any license you may later apply to the same contribution outside this project shall not affect the rights granted under this agreement.**
7. **You acknowledge and accept the fallback classification rule in Section 6.2, whereby failure by xrickastley to post a classification within the specified timeframe results in automatic classification as defined by Section 6.2.**

<hr>

### 8. Disclaimer of Warranty & Liability

This software, including all contributions, is provided "AS IS" without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, and noninfringement.
In no event shall the authors or contributors be liable for any claim, damages, or other liability, whether in contract, tort, or otherwise, arising from, out of, or in connection with the software or its use.

<hr>

### 9. Commercial Use in Content Creation

You are permitted to use this project in **promotional or commercial content**, including but not limited to YouTube videos, livestreams, tutorials, reviews, articles, or social media posts, provided that:

1. Such use clearly attributes the project by including a **visible, clickable link** to the official repository and/or official project pages (e.g., GitHub, Modrinth, CurseForge).
2. The project is not represented as being officially affiliated with, endorsed by, or sponsored by xrickastley or any related rights holder, unless you have received prior written permission.
3. This permission applies only to content creation; all other forms of commercial exploitation of the code or derivative works remain prohibited unless expressly authorized by xrickastley.
4. xrickastley **reserves the right to revoke this permission** for any specific content at any time and for any reason, including but not limited to misrepresentation, harmful association, or violation of this license. Upon receiving such a revocation request, the creator must comply by removing or altering the content within 7 days to meet the terms of the request.
6. Failure to comply with a valid revocation request constitutes a violation of this license, and xrickastley reserves the right to pursue enforcement actions, including but not limited to DMCA takedown requests or other legal remedies.

<hr>

### 10. Dependencies and Redistribution Restrictions

1. You are permitted to create and distribute separate projects that declare this Software as a dependency, provided that such projects do not bundle, rehost, or redistribute this Software in any form.
2. Redistribution of this Software is permitted only through its official release channels (e.g., GitHub Releases, Modrinth, CurseForge, or other platforms designated by xrickastley).
3. Any indirect distribution that includes this Software's files (such as bundling within a package, installer, or archive) is prohibited unless prior written permission is obtained from xrickastley.

### 10.1 Modpacks

Modpacks are permitted to declare this Software as a dependency, provided that:

1. The Software is not bundled with the modpack itself and must be downloaded separately from official release channels (e.g., GitHub, Modrinth, CurseForge, or other platforms designated by xrickastley).
2. The copy of the Software obtained by end users must remain unmodified.
3. Redistribution of the Software through third-party mirrors, caches, or proxy servers is not permitted, unless explicitly authorized by the Maintainer.
4. Attribution or credits within the modpack are not required, though they are appreciated.
