Skip to content

Commit a0a6dfb

Browse files
authored
Merge pull request #202 from Frontiers-PackForge/main-1.21.X-Neoforged
Whoops i was using the wrong 1.21 branch
2 parents d79c8dd + 27c3518 commit a0a6dfb

1,025 files changed

Lines changed: 35209 additions & 16110 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/pull_request_template.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## What
2+
_What does this PR do, and why? A clear, concise description. Linking an issue can replace the description._
3+
4+
5+
## AI Usage
6+
_Disclosure is required when AI tools were used. See the [AI Policy](https://github.com/Frontiers-PackForge/CosmicCore/blob/main-1.20.1-forge/AI_POLICY.md). There is no penalty for using AI, only for hiding it. You are responsible for understanding and reviewing all AI-assisted code before opening this PR._
7+
8+
- [ ] No AI tools were used for this pull request.
9+
- [ ] AI tools were used for this pull request.
10+
11+
_If you checked yes, fill in:_
12+
13+
#### Tool(s) used
14+
_Example: Claude Code (Opus 4.8), Cursor, GitHub Copilot_
15+
16+
#### How it was used
17+
_Briefly: what the tool did and to what extent. Machine-assisted code is fine, but you must have reviewed all of it yourself._
18+
19+
20+
## How Was This Tested
21+
_Screenshots, snippets, or a description of how you verified this in code or in game._
22+
23+
24+
## Additional Information
25+
_Anything else reviewers should know: GUI or render changes, compatibility notes, API or recipe changes._
26+
27+
_Please remove unused sections and these italic explanations before submitting._

AI_POLICY.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# AI Usage Policy
2+
3+
CosmicCore is built with AI assisted tooling, and that is welcome here. The lead
4+
developer and contributors use AI assisted tools (Claude Code, Cursor, Copilot,
5+
and others) as a normal part of the workflow. This policy is not anti-AI. It
6+
exists so that AI is used honestly and well and to give credit to the human
7+
efforts that go into maintaining working user facing experiences.
8+
9+
The rules are simple:
10+
11+
* **Disclose AI usage.** If AI tools helped produce a contribution, say so:
12+
name the tool (for example Claude Code, Cursor, Copilot) and the extent it was
13+
used. Disclosure can be a note in the pull request or a `Co-authored-by:`
14+
trailer on the commit. There is no penalty for using AI. There **is** a problem
15+
with hiding it.
16+
17+
* **You must fully understand your own code.** If you cannot explain what a
18+
change does and how it fits the rest of the system without the AI holding your
19+
hand, do not contribute it. The human who opens the pull request owns the code
20+
in it. If you do not understand it, take the time to learn it and be capable
21+
of organizing and tracing it without the usage of AI. Ghostipedia (The lead dev)
22+
pre-acknowledges their own stupidity, and will try to learn from anything they
23+
may not understand.
24+
25+
* **Human-review and trim AI text.** Issues, discussions, and pull request
26+
descriptions may be AI-assisted, but a human must read, edit, and cut them down
27+
before posting. AI tends toward verbose filler. Do the work of trimming it to
28+
the point, same case with code if your agent spews duplicated code everywhere
29+
like a pet owner, clean up after your robot.
30+
31+
* **No AI-generated media.** Art, textures, models, animations, audio, and
32+
video must be human-made. Code and text are the only acceptable AI-assisted
33+
content. CosmicCore's original art is part of its identity and is not open
34+
season for generators.
35+
36+
* **Low-effort AI slop will not be accepted.** Disclosed or not, a contribution
37+
that is clearly unreviewed machine output, and that puts the burden of
38+
validation on someone else, will be closed. If you want to learn the codebase
39+
the slow human way, say so and you will get help from many devs, including myself.
40+
Note: this only applies to contributors, Ghostipedia themselves is fully
41+
responsible for inspecting and checking their code works before deployment.
42+
43+
## There are Humans Here
44+
45+
This project is maintained by humans. Every issue and pull request is a point
46+
where people interact with each other and with the work. Approaching that
47+
boundary with low-effort, unverified output is rude, because it pushes the cost
48+
of checking it onto someone else I recommend you stand behind honest, even if crude
49+
work.
50+
51+
## AI is Welcome Here
52+
53+
To be clear, because the rules above are strict and absolute for incoming contributors
54+
AI is apart of the workflow of Cosmiccore, and most likely will remain that way.
55+
Tedious busy work is one of the many ways it has saved myself and others mental energy
56+
and time. The strict rules are to help set firm boundaries on usage in a time where
57+
it is uncertain what the next new thing in AI will look like, let alone the
58+
discussions surrounding it. So keep it respectful, to me, and to other contributors.
59+
60+
## Credits
61+
62+
This policy is adapted from the
63+
[GregTech CEu Modern AI Usage Policy](https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/AI_POLICY.md),
64+
which is itself adapted from the
65+
[Ghostty Project](https://github.com/ghostty-org/ghostty/blob/main/AI_POLICY.md).

_shelved/src/main/java/com/ghostipedia/cosmiccore/common/machine/multiblock/part/EmberHatchPartMachine.java

Lines changed: 0 additions & 73 deletions
This file was deleted.

_shelved/src/main/java/com/ghostipedia/cosmiccore/ember/blockentity/CosmicEmberEmitterBlockEntity.java

Lines changed: 0 additions & 106 deletions
This file was deleted.

build.gradle

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,37 @@ sourceSets {
4242
}
4343
}
4444

45+
// --- Sodium 0.8.x (dev-only render testing) --------------------------------------------------------------
46+
// Sodium 0.8 ships on caffeinemc maven as a 3-artifact set (-api / -mod / the production "shell"). The shell
47+
// claims modId "sodium", which on a dev classpath would shadow the real sodium-neoforge-mod and make the game
48+
// report "sodium is not installed". So we strip the shell down to a plain LIBRARY (drop its mod metadata) and
49+
// load sodium-neoforge-mod as the actual mod, plus Sinytra's Forgified Fabric API shims for the FRAPI paths 0.8
50+
// needs. Pattern from SrRapero720/chloride (1.21.1-neo), adapted from NeoGradle to ModDevGradle.
51+
// Defined here (before the dependency/repository applies) so dependencies.gradle can use the config + task.
52+
ext.sodiumNeoVersion = "0.8.12-beta.1+mc1.21.1"
53+
54+
configurations {
55+
sodiumShell { transitive = false }
56+
}
57+
58+
tasks.register('stripSodiumShell', Jar) {
59+
archiveBaseName = 'cc-sodium-neoforge-shell-lib'
60+
archiveVersion = (sodiumNeoVersion as String).replace('+', '-')
61+
destinationDirectory = layout.buildDirectory.dir('sodium-shell-lib')
62+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
63+
from { configurations.sodiumShell.collect { zipTree(it) } }
64+
exclude 'META-INF/MANIFEST.MF'
65+
exclude 'META-INF/neoforge.mods.toml'
66+
exclude 'META-INF/jarjar/**'
67+
exclude 'META-INF/services/net.neoforged.neoforgespi.locating.IModFileCandidateLocator'
68+
manifest {
69+
attributes(
70+
'FMLModType': 'LIBRARY',
71+
'Automatic-Module-Name': 'sodium_service'
72+
)
73+
}
74+
}
75+
4576
apply from: "$rootDir/gradle/scripts/jars.gradle"
4677
apply from: "$rootDir/gradle/scripts/moddevgradle.gradle"
4778
apply from: "$rootDir/gradle/scripts/repositories.gradle"

0 commit comments

Comments
 (0)