Skip to content

Commit

Permalink
Revert "Merge remote-tracking branch 'upstream/main' into 1.20.4-bloc…
Browse files Browse the repository at this point in the history
…k-texture-fixes"

This reverts commit 7d2ca77, reversing
changes made to 2611ae7.
  • Loading branch information
maxryan008 committed Sep 2, 2024
1 parent 7d2ca77 commit 4c5d2c2
Show file tree
Hide file tree
Showing 2,347 changed files with 22,491 additions and 29,020 deletions.
115 changes: 23 additions & 92 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,92 +1,23 @@
Contributing to Galacticraft
=

Thanks for your interest in contributing to Galacticraft!

## Testing and Bug Reports

### Builds
> [!IMPORTANT]
> Galacticraft 5 is still under development!\
> It is possible that saves will become corrupted and/or unloadable after updates.\
> It is strongly discouraged to use these builds for anything but testing.\
> No support will be provided regarding the use of these builds.
Pre-alpha builds are created after every commit to the `main` branch of this repository.\
They can be found on the [GitHub Actions][actions] tab (select a commit and look for "Artifacts" at the bottom).

### Bug Reports
* Before opening a new bug report, please check to see if your issue has already been reported.
* Please create a separate bug report for each bug that you find.
* This makes it easier to keep track of what is and is not fixed.
* Please include either the commit hash (e.g., `a17fe4784ed658a9c70ecebd2173af755299d0cb`)
or the GitHub actions build number (e.g., #253) in your report.
* Commit hashes are preferred, but the build number is acceptable too.
* This helps us figure out when a bug may have been introduced,
or if there are any commit(s) that may have already fixed this bug.

## Translations
Translations are submitted through [Crowdin][crowdin].
If your language is missing, or you're having trouble accessing the site,
please get in touch on our [Discord server][discord].

## Contributing Code

If you're planning on fixing an open bug,
please comment on the issue tracker to let people know that you're working on it.

If you're planning on contributing a larger feature,
please get in contact with us [on Discord][discord], so that we can avoid duplicating work.

Please try to keep pull requests focused on one feature or subsystem
to keep them small and ensure a quick review process.

### Code style
Mainly:
* Indent using four spaces
* Braces `{}` go on the same line

Overall, follow the style of the file you're in.
Feel free to use `var` for variables with obvious types.

### Managing resources
> [!IMPORTANT]
> Do not manually edit or add any files to [`src/main/generated`][generated] as they will be deleted.
#### Textures, Music and Complex Models
These (and other non-generatable) resources belong in the [`src/main/resources`] directory.

#### Simple Models, Loot Tables, and Tags
These (and other generatable) resources are programmatically created using Minecraft's datagen system.
See the [`dev.galacticraft.mod.data`](/src/main/java/dev/galacticraft/mod/data) package to see how these are generated.

### Before Committing Changes

#### Data Generation
If you've added, removed, or otherwise modified resource generation code,
you'll need to re-run the data generator to see your changes.

This can be found as the `Data Generation` configuration in your IDE, or run from Gradle:
```shell
./gradlew runDatagen
```

#### License Headers
If you've added any new classes, be sure to check that they have the standard [license header][license header] applied.

If any files are missing the header, you can add it by executing the following Gradle task:
```shell
./gradlew updateLicenses
```

#### Commit Message
We use [conventional commits][conventional commits] specification to write commit messages.
However, we tend to squash-merge pull requests, so you are not required to do this.


[actions]: https://github.com/TeamGalacticraft/Galacticraft/actions/workflows/build.yml?query=branch%3Amain+is%3Asuccess
[conventional commits]: https://www.conventionalcommits.org
[crowdin]: https://teamgalacticraft.crowdin.com/galacticraft
[discord]: https://discord.gg/n3QqhMYyFK
[generated]: /src/main/generated
[license header]: /LICENSE_HEADER.txt
Contributing
============

* Use appropriate formatting
* Java
* 4 Spaces (No tabs PLEASE)
* Brackets on the same line
* Space between all keywords, operators and values
* Long lines are OK - do not break long lines unless there is a logical, tabular break pattern (for example initialising elements in a long array) or if Vanilla does so
* Generally you should explicitly use `this`.
* Generally you should use braces { } following `if ()` and `for ()` statements, even if it is only one line.
* Interfaces - do not put the prefix 'I' on the file name (example `Rotatable`, not `IRotatable`)
* JSON
* 2 Spaces indent (NO TABS)
* Keep arrays on the same line (do not wrap)
* Spaces after `,` and `:`
* Commits
* Use the [Conventional Commits](https://www.conventionalcommits.org/) specification when creating commits.
* Pull Requests
* Pull request titles must use the [Conventional Commits](https://www.conventionalcommits.org/) specification, just like commit names.
* Name all variables correctly
* All PRs require at least one successful review from a team member to merge
* Please do not submit simple PRs like minor readme changes or spelling fixes, unless they are a part of larger changes such as a new feature or bugfix.
27 changes: 22 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bug Report (Generic)
name: Bug Report
description: File a bug report
labels:
- 'status: triage'
Expand All @@ -10,14 +10,26 @@ body:
- type: markdown
attributes:
value: >-
Please note that support for compiling the mod is not currently provided.
For help with Galacticraft 4 and below, please use [TeamGalacticraft/Galacticraft-Legacy](https://github.com/TeamGalacticraft/Galacticraft-Legacy).
For general Galacticraft help and support visit the [Galacticraft Central Discord](http://discord.galacticraftcentral.com/)
- type: dropdown
id: modloader
attributes:
label: Mod Loader
description: Which mod loader are you using?
options:
- Fabric
- Forge (NYI)
validations:
required: true
- type: input
id: version
attributes:
label: Version Information
description: What version (commit hash or actions build number) of Galacticraft are you using?
description: What version (commit hash or branch) of Galacticraft are you using?
placeholder: 4cb9a5d
validations:
required: true
Expand All @@ -26,15 +38,20 @@ body:
attributes:
label: Log or Crash Report
description: >-
If relevant, upload your log (latest.log or crash report) to [GitHub
Gist](https://gist.github.com/) or another paste site and link it here.
Please upload your log (latest.log or crash report) to [Github
Gist](https://gist.github.com/)
placeholder: 'https://gist.github.com/ghost/1a79a4d60de6718e8e5b326e338ae533'
validations:
required: true
- type: textarea
id: repro
attributes:
label: Reproduction steps
description: How do you trigger this bug? Please be as detailed as possible.
description: How do you trigger this bug? Please walk us through it step by step.
value: |
1. Do this
2. Do that
3. Crash!
...
validations:
required: true
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ contact_links:
about: Please use GitHub discussions for feature requests.
- name: Galacticraft Central Discord
url: http://discord.galacticraftcentral.com/
about: Please use this discord for general Galacticraft (4) help and support.
about: Please use this discord for general Galacticraft help and support.
- name: Galacticraft Development Discord
url: https://discord.gg/n3QqhMYyFK
about: Please use this discord to discuss the development of, and help develop Galacticraft.
42 changes: 0 additions & 42 deletions .github/ISSUE_TEMPLATE/crash_report.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/bug_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Bug Fix
about: Fix a bug
title: 'fix: ...'
labels: 'type: bug'
assignees: ''
---

## Pre checks
- [ ] I have read the [Contributing guidelines](https://github.com/TeamGalacticraft/Galacticraft/blob/main/.github/CONTRIBUTING.md).
- [ ] I have checked for existing pull requests committing the same bug fix.

## Changes:
1.
2.
3.
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Add Feature
about: Implement a feature in Galacticraft
title: 'feat: ...'
labels: 'type: feature'
assignees: ''
---

## Pre checks
- [ ] I have read the [Contributing guidelines](https://github.com/TeamGalacticraft/Galacticraft/blob/main/.github/CONTRIBUTING.md).
- [ ] I have checked for existing pull requests committing the same feature.

## Changes:
1.
2.
3.

## Screenshots:

6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
uses: actions/checkout@v4

- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
uses: gradle/actions/wrapper-validation@v3

- name: Setup JDK 21
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: 21
java-version: 17
distribution: temurin

- name: Cache Gradle
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
uses: actions/checkout@v4

- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
uses: gradle/actions/wrapper-validation@v3

- name: Setup JDK 21
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: 21
java-version: 17
distribution: temurin

- name: Restore Gradle cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crowdin_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v4

- name: Crowdin Push
uses: crowdin/github-action@v2
uses: crowdin/github-action@v1
with:
upload_sources: true
upload_translations: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crowdin_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: actions/checkout@v4

- name: Crowdin Sync
uses: crowdin/github-action@v2
uses: crowdin/github-action@v1
with:
upload_sources: false
upload_translations: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
uses: actions/checkout@v4

- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
uses: gradle/actions/wrapper-validation@v3

- name: Setup JDK 21
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: 21
java-version: 17
distribution: temurin

- name: Cache Gradle
Expand Down
31 changes: 11 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[![](https://img.shields.io/github/actions/workflow/status/TeamGalacticraft/Galacticraft/build.yml?style=flat-square&logo=github)][actions]
[![](https://img.shields.io/github/actions/workflow/status/TeamGalacticraft/Galacticraft/build.yml?style=flat-square&logo=github)](https://github.com/TeamGalacticraft/Galacticraft/actions/workflows/build.yml?query=branch%3Amain)
[![](https://img.shields.io/github/issues/TeamGalacticraft/Galacticraft?style=flat-square&logo=github)](https://github.com/TeamGalacticraft/Galacticraft/issues)
[![](https://img.shields.io/github/issues-pr/TeamGalacticraft/Galacticraft?logo=github&style=flat-square)](https://github.com/TeamGalacticraft/Galacticraft/pulls)
[![](https://img.shields.io/discord/775251052517523467.svg?colorB=5865F2&label=discord&style=flat-square&logo=discord&logoColor=azure)][discord]
[![](https://img.shields.io/twitch/status/galacticraftdev.svg?style=flat-square&logo=twitch&logoColor=azure)][twitch]
[![](https://img.shields.io/discord/775251052517523467.svg?colorB=5865F2&label=discord&style=flat-square&logo=discord&logoColor=azure)](https://discord.gg/n3QqhMYyFK)
[![](https://img.shields.io/twitch/status/galacticraftdev.svg?style=flat-square&logo=twitch&logoColor=azure)](https://twitch.tv/galacticraftdev)

# Galacticraft 5
The classic Minecraft space mod, rewritten from the ground up for modern versions of the game.

## Common Questions
Here we answer a few common questions we get regarding the release of the mod.\
More information can be found in the `#faq` channel in [our Discord][discord].
More information can be found in the `#faq` channel in [our Discord](https://discord.gg/n3QqhMYyFK).

**When will Galacticraft 5 be released?**\
**When will Galacticraft 5 for 1.20+ be released?**\
There is currently no ETA for a release.
Keep an eye out on [our Discord server][discord] for an alpha release announcement.
Keep an eye out on [our Discord server](https://discord.gg/n3QqhMYyFK) for an alpha release announcement.

**Will Galacticraft 5 be on Forge?**\
Yes, Forge development will start *after* we have a survival-playable alpha build out for Fabric.
Expand All @@ -22,21 +22,12 @@ Yes, Forge development will start *after* we have a survival-playable alpha buil
No, Galacticraft 5 is a complete rewrite, and does not have backwards compatibility with the old addon api.

## Pre-Alpha Builds
> [!IMPORTANT]
> Galacticraft 5 is still under development!\
> It is possible that saves will become corrupted and/or unloadable after updates.\
> It is strongly discouraged to use these builds for anything but testing.\
> No support will be provided regarding the use of these builds.
Pre-alpha builds are created after every commit to the `main` branch of this repository.\
They can be found on the [GitHub Actions][actions] tab (select a commit and look for "Artifacts" at the bottom).
Pre-alpha builds are available for each commit to the `main` branch of this repository in the [Actions tab](https://github.com/TeamGalacticraft/Galacticraft/actions/workflows/build.yml?query=branch%3Amain) on GitHub.
These builds are not production ready or survival playable, they exist solely for testing.\
Please note that ***NO SUPPORT*** will be provided for the use of these builds and asking for such may result in a ban or mute,
consider this your one and only warning.

## Contributing
We welcome and encourage community contributions,
but before you start please read our [contributing guidelines][contributing].\
but before you start please read our [contributing guidelines](https://github.com/TeamGalacticraft/Galacticraft/blob/main/.github/CONTRIBUTING.md).\
Pull requests require at least one team member's approving review, and a successful build before they will be merged.

[actions]: https://github.com/TeamGalacticraft/Galacticraft/actions/workflows/build.yml
[contributing]: https://github.com/TeamGalacticraft/Galacticraft/blob/main/.github/CONTRIBUTING.md
[discord]: https://discord.gg/n3QqhMYyFK
[twitch]: https://twitch.tv/galacticraftdev
Loading

0 comments on commit 4c5d2c2

Please sign in to comment.