Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Docs Codespace",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"workspaceMount": "source=${localWorkspaceFolder},target=/modern,type=bind",
"workspaceFolder": "/modern/docs",
"features": {
"ghcr.io/devcontainers/features/python:1": {
"installTools": true,
"version": "3.11"
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [8000],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pip3 install --user -r requirements.txt",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"settings": {
"yaml.schemas": {
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
},
"yaml.customTags": [
"!ENV scalar",
"!ENV sequence",
"tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg",
"tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji",
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
],
"git.openRepositoryInParentFolders": "always",
"git.autofetch": "all",
"git.autoStash": true
},
"extensions": ["redhat.vscode-yaml"]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

20 changes: 20 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Auto detect text files and normalize to LF
* text=auto eol=lf

# Ensure these are always LF
*.java text eol=lf
*.kt text eol=lf
*.json text eol=lf
*.gradle text eol=lf
*.properties text eol=lf
*.xml text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.md text eol=lf
*.txt text eol=lf

# Binary files
*.png binary
*.jpg binary
*.jar binary
*.ogg binary
113 changes: 113 additions & 0 deletions .github/ISSUE_TEMPLATE/000-bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Bug Report / 错误报告
description: Report a bug where something is not working as expected. / 报告某物未按预期工作的错误。
labels: [ "type: bug" ]
body:
- type: checkboxes
id: existing-issue
attributes:
label: Checked for existing issues / 已检查现有问题
description: You have checked for existing reports of this issue, open or closed. / 您已检查过此问题的现有报告(开放或已关闭)。
options:
- label: "I have checked for existing issues, and have found none. / 我已检查现有问题,未发现相同报告。"
required: true
- type: checkboxes
id: tried-latest
attributes:
label: Tested latest version / 已测试最新版本
description: You have checked that this issue occurs on the latest version of Mekanism Extras. / 您已确认此问题在 Mekanism Extras 的最新版本中出现。
options:
- label: "I have checked that this occurs on the latest version. / 我已确认此问题在最新版本中出现。"
required: true
- type: input
id: mekanismextras-version
attributes:
label: SyncedData Version / SyncedData 版本
description: The version of SyncedData you were using when this bug was encountered. If you do not know where to find this, look for the mod jar file in the mods folder, or in the mods viewer in-game. / 遇到此错误时使用的 SyncedData 版本。如果不知道如何查找,请查看 mods 文件夹中的 mod jar 文件,或游戏内的模组查看器。
placeholder: "Example: v2.3.4 / 例如:v2.3.4"
validations:
required: true
- type: dropdown
id: mc-version
attributes:
label: Minecraft Version / Minecraft 版本
description: The version of Minecraft you were using when this bug was encountered. If you do not know where to find this, it is in the bottom left of the main menu. Any version not listed is not supported. / 遇到此错误时使用的 Minecraft 版本。如果不知道如何查找,它位于主菜单的左下角。未列出的任何版本均不受支持。
options:
- "26.1 NeoForge"
validations:
required: true
- type: dropdown
id: recipe-viewer
attributes:
label: Recipe Viewer Installed
description: The recipe viewer installed.
options:
- "JEI"
- "REI"
- "EMI"
validations:
required: false
- type: dropdown
id: environment
attributes:
label: Environment / 环境
description: How you were playing on the world. Hybrid servers are unsupported. / 您在世界中游玩的方式。不支持混合服务器。
options:
- "Singleplayer / 单人游戏"
- "Multiplayer - Open to LAN / 多人游戏 - 开放局域网"
- "Multiplayer - Dedicated Server / 多人游戏 - 专用服务器"
validations:
required: true
- type: dropdown
id: cross-mod
attributes:
label: Cross-Mod Interaction / 跨模组交互
description: Does this bug occur because of another mod installed alongside Mekanism Extras? / 此错误是否由于与 Mekanism Extras 同时安装的其他模组引起?
options:
- "Yes / 是"
- "No / 否"
- "Unsure / 不确定"
validations:
required: true
- type: textarea
id: other-mods
attributes:
label: Other Installed Mods / 其他已安装模组
description: Enter the name of the modpack you're playing, or list all mods you have installed here. / 输入您正在游玩的整合包名称,或在此处列出所有已安装的模组。
placeholder: "Example: Cosmic Frontiers, Monifactory, Embeddium, NuclearCraft Neoteric, AE2,... / 例如:Cosmic Frontiers, Monifactory, Embeddium, NuclearCraft Neoteric, AE2,..."
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected Behavior / 预期行为
description: What you expected to happen. Attach screenshots here as necessary. / 您期望发生什么。必要时在此处附加截图。
placeholder: "Example: Expected to produce X by consuming Y. / 例如:期望通过消耗 Y 来生产 X。"
validations:
required: true
- type: textarea
id: result
attributes:
label: Actual Behavior / 实际行为
description: What happened despite your expectations. Attach screenshots here as necessary. / 与您预期不符的实际发生情况。必要时在此处附加截图。
placeholder: "Example: Produced one X but Y was not consumed. / 例如:生产了一个 X 但 Y 未被消耗。"
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Steps to Reproduce / 重现步骤
description: How to reproduce the bug. / 如何重现此错误。
placeholder: "Example: 1) I did X... / 例如:1) 我做了 X..."
validations:
required: true
- type: textarea
id: additional-info
attributes:
label: Additional Information / 附加信息
description: Any additional information you wish to provide. Please add anything which did not fit into the other sections here. / 您希望提供的任何附加信息。请将不适合其他部分的内容添加在此处。
placeholder: "Example: This is likely caused by X because... / 例如:这很可能由 X 引起,因为..."
validations:
required: false
- type: markdown
attributes:
value: Thank you for taking the time to fill out this bug report. / 感谢您抽出时间填写此错误报告。
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/001-feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Feature Request / 功能请求
description: Request a new feature. / 请求新功能。
labels: [ "type: feature" ]
body:
- type: input
id: cross-mod
attributes:
label: Cross-mod Integration / 跨模组集成
description: "Does this feature involve integration with another mod? If so specify the mod(s). Otherwise, leave this blank. / 此功能是否涉及与其他模组的集成?如果是,请指定模组名称。否则留空。"
placeholder: "Example: Create Mod / 例如:Create Mod"
- type: dropdown
id: mc-version
attributes:
label: Minecraft Version / Minecraft 版本
description: The version of Minecraft you wish this feature was added for. / 您希望此功能添加到的 Minecraft 版本。
options:
- "Both"
- "26.1 NeoForge"
- type: textarea
id: description
attributes:
label: Feature Description / 功能描述
description: "What feature would you like to have? Please describe it here. / 您希望拥有什么功能?请在此描述。"
placeholder: "Example: I want to be able to do... / 例如:我希望能够做..."
validations:
required: true
- type: markdown
attributes:
value: Thank you for taking the time to fill out this feature request. / 感谢您抽出时间填写此功能请求。
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Discord / Discord 服务器
url: https://discord.gg/KqQx9DEJGm
about: Join us on Discord to chat, discuss the game, and more. For bug reports, please use GitHub issues. / 加入我们的 Discord 服务器来闲聊、讨论游戏等。错误报告请使用 GitHub issues。
32 changes: 32 additions & 0 deletions .github/actions/build_setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build Setup
description: Setup for standard Java builds

inputs:
update-cache:
description: If cache should be updated
required: false
default: 'false'
ref:
description: 'Ref to checkout'
required: false

runs:
using: 'composite'
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.ref }}
- name: Set up JDK
uses: actions/setup-java@v4
env:
REF: ${{ inputs.ref || github.ref }}
with:
distribution: temurin
java-version: 25

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-write-only: ${{ inputs.update-cache }}
cache-read-only: ${{ github.ref != 'refs/heads/26.1' }}
add-job-summary: 'on-failure'
35 changes: 35 additions & 0 deletions .github/json/config-latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"categories": [
{
"title": "### Added",
"labels": ["type: feature"]
},
{
"title": "### Fixed",
"labels": ["type: bugfix"]
},
{
"title": "### Changed",
"labels": ["type: refactor", "type: translation"]
}
],
"sort": "ASC",
"template": "## What's Changed since #{{FROM_TAG}}\n#{{CHANGELOG}}\n#{{UNCATEGORIZED}}\n#{{CHANGES}} lines changed - see the [full diff here](#{{RELEASE_DIFF}})",
"pr_template": "- #{{TITLE}} by @#{{AUTHOR}} in [##{{NUMBER}}](#{{URL}})",
"empty_template": "",
"ignore_labels": ["ignore changelog"],
"tag_resolver": {
"method": "semver",
"filter": {
"pattern": "^(?!v?[0-9\\.]+(-26\\.1)?$).+$",
"flags": "gu"
},
"transformer": {
"pattern": "v?([0-9\\.]+)(-[0-9\\.]+)?",
"target": "$1"
}
},
"max_pull_requests": 1000,
"max_back_track_time_days": 365,
"base_branches": ["1.20.1"]
}
45 changes: 45 additions & 0 deletions .github/json/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"categories": [
{
"title": "### Added",
"labels": ["type: feature"]
},
{
"title": "### Fixed",
"labels": ["type: bugfix"]
},
{
"title": "### Changed",
"labels": ["type: refactor", "type: translation"]
}
],
"sort": "ASC",
"template": "## Version [v#{{VERSION}}](#{{RELEASE_DIFF}})\n#{{CHANGELOG}} ",
"pr_template": "- #{{TITLE}} by @#{{AUTHOR}} in [##{{NUMBER}}](#{{URL}})",
"custom_placeholders": [
{
"name": "VERSION",
"source": "TO_TAG",
"transformer": {
"pattern": "v?([0-9\\.]+)(-[0-9\\.]+)?",
"target": "$1"
}
}
],
"empty_template": "",
"ignore_labels": ["ignore changelog"],
"tag_resolver": {
"method": "semver",
"filter": {
"pattern": "^(?!v?[0-9\\.]+(-26\\.1)?$).+$",
"flags": "gu"
},
"transformer": {
"pattern": "v?([0-9\\.]+)(-[0-9\\.]+)?",
"target": "$1"
}
},
"max_pull_requests": 1000,
"max_back_track_time_days": 365,
"base_branches": ["1.20.1"]
}
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://github.com/github/issue-labeler#usage
26.1:
- '/^26\.1 NeoForge$/m'
26 changes: 26 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## What / 目的
_This section describes what this PR is about. It should be a clear and concise description concerning what this PR is for, why this PR is needed, and why it should be accepted._
_Linking an issue can be used alternatively to writing a description._
_此部分描述该 PR 的内容。它应清晰简洁地说明该 PR 的目的、必要性以及为何应该被接受。_
_也可以通过链接相关 Issue 来替代描述。_

## Implementation Details / 实现细节
_Any implementations in this PR that should be carefully looked over, or that could/should have alternate solutions proposed._
_本 PR 中任何需要仔细审查的实现细节,或者可能/应该提出替代解决方案的部分。_

## Outcome / 结果
_A short description of what this PR added/fixed/changed/removed._
_For correct linking of issues please use any of the Closes/Fixes/Resolves keywords. Example: When a PR is fixing a bug use "Fixes: #number-of-bug"_
_简要描述此 PR 添加/修复/更改/删除了什么。_
_为了正确链接 Issue,请使用 Closes/Fixes/Resolves 等关键词。例如:当 PR 修复一个 bug 时,使用 "Fixes: #bug编号"_

## Additional Information / 附加信息
_This section is for screenshots to demonstrate any GUI or rendering changes, or any other additional information that reviewers should be aware of._
_此部分用于放置展示 GUI 或渲染更改的截图,或任何其他审阅者应了解的其他信息。_

## Potential Compatibility Issues / 潜在兼容性问题
_This section is for defining possible compatibility issues. It must be used when there are API changes, item/block/material/machine changes, or recipe changes._
_此部分用于定义可能的兼容性问题。当存在 API 更改、物品/方块/材料/机器更改或配方更改时,必须使用此部分。_

**Please fill in as much useful information as possible. Also, please remove all unused sections, including this and the other explanations.**
**请尽可能填写有用的信息。同时,请删除所有未使用的部分,包括此说明和其他解释。**
26 changes: 26 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
changelog:

exclude:
labels:
- "ignore changelog"

categories:
- title: New Features
labels:
- "type: feature"

- title: Bug Fixes
labels:
- "type: bug"

- title: Internal Changes
labels:
- "type: refactor"

- title: Translation Changes
labels:
- "type: translation"

- title: Other Changes
labels:
- "*"
Loading
Loading