Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to 1.20.6 #11

Merged
merged 3 commits into from
Jun 5, 2024
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/crowdin_download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
crowdin:
uses: TheMCBrothers/.github/.github/workflows/crowdin_download.yml@main
with:
pull_request_base_branch_name: '1.20.4'
pull_request_base_branch_name: '1.20.6'
secrets:
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/crowdin_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Crowdin Upload
on:
push:
paths: [ 'src/generated/resources/assets/*/lang/**' ]
branches: [ '1.20.4' ]
branches: [ '1.20.6' ]
workflow_dispatch:

jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/java_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ permissions:
jobs:
ci:
uses: TheMCBrothers/.github/.github/workflows/mod_ci.yml@main
with:
java_version: '21'
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ permissions:
jobs:
publish:
uses: TheMCBrothers/.github/.github/workflows/mod_publish_unified.yml@main
with:
java_version: '21'
secrets:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'net.neoforged.gradle.userdev' version '7.0.96'
id 'net.neoforged.gradle.userdev' version '7.0.105'
id 'me.shedaniel.unified-publishing' version '0.1.+'
}

Expand All @@ -19,8 +19,8 @@ base {
archivesName = archive_base
}

// Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17.
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
// Mojang ships Java 21 to end users in 1.20.5+, so your mod should target Java 21.
java.toolchain.languageVersion = JavaLanguageVersion.of(21)

minecraft.accessTransformers.file rootProject.file('src/main/resources/META-INF/accesstransformer.cfg')

Expand Down Expand Up @@ -80,7 +80,7 @@ tasks.withType(ProcessResources).configureEach {
]
inputs.properties replaceProperties

filesMatching(['META-INF/mods.toml']) {
filesMatching(['META-INF/neoforge.mods.toml']) {
expand replaceProperties + [project: project]
}
}
Expand Down Expand Up @@ -149,7 +149,7 @@ unifiedPublishing {
token = curseforgeToken
id = curse_project
changelog = changes
gameVersions.addAll 'Java 17'
gameVersions.addAll 'Java 21'
}
}

Expand Down
13 changes: 1 addition & 12 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
## 1.3.0
- Added block loot tables
- Added translations

## 1.2.0
- Added recipes for materials

## 1.1.0
- Added dummy hammer item

## 1.0.0
- Migration to NeoForge
- Updated to 1.20.4
- Updated to 1.20.6

20 changes: 10 additions & 10 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ org.gradle.debug=false
mod_id=usefulfoundation
mod_name=Useful Foundation
mod_license=MIT License
mod_version=1.3.0
mod_version=1.0.0
mod_group_id=net.themcbrothers
mod_authors=TheMCBrothers
mod_description=It adds a lot of new materials and ores.

# Minecraft
minecraft_version=1.20.4
minecraft_version_range=[1.20.4,1.21)
minecraft_version=1.20.6
minecraft_version_range=[1.20.6,1.21)

# NeoForge
neo_version=20.4.167
neo_version_range=[20.4,)
loader_version_range=[2,)
neo_version=20.6.18-beta
neo_version_range=[20.6,)
loader_version_range=[3,)

## Mappings
neogradle.subsystems.parchment.minecraftVersion=1.20.3
neogradle.subsystems.parchment.mappingsVersion=2023.12.31
neogradle.subsystems.parchment.minecraftVersion=1.20.6
neogradle.subsystems.parchment.mappingsVersion=2024.05.01

# Dependencies
lib_version=1.20.4-6.1.0
lib_version_range=[1.20.4-6.1.0,)
lib_version=1.20.6-7.0.0-SNAPSHOT
lib_version_range=[1.20.5-7.0.0,)

# Publishing
archive_base=useful-foundation
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
11 changes: 11 additions & 0 deletions src/generated/resources/data/c/tags/blocks/ores.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"values": [
"#c:ores/aluminum",
"#c:ores/lead",
"#c:ores/nickel",
"#c:ores/platinum",
"#c:ores/silver",
"#c:ores/tin",
"#c:ores/uranium"
]
}
24 changes: 24 additions & 0 deletions src/generated/resources/data/c/tags/blocks/storage_blocks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"values": [
"#c:storage_blocks/aluminum",
"#c:storage_blocks/bronze",
"#c:storage_blocks/electrum",
"#c:storage_blocks/enderium",
"#c:storage_blocks/invar",
"#c:storage_blocks/lead",
"#c:storage_blocks/nickel",
"#c:storage_blocks/platinum",
"#c:storage_blocks/signalum",
"#c:storage_blocks/silver",
"#c:storage_blocks/steel",
"#c:storage_blocks/tin",
"#c:storage_blocks/uranium",
"#c:storage_blocks/raw_aluminum",
"#c:storage_blocks/raw_lead",
"#c:storage_blocks/raw_nickel",
"#c:storage_blocks/raw_platinum",
"#c:storage_blocks/raw_silver",
"#c:storage_blocks/raw_tin",
"#c:storage_blocks/raw_uranium"
]
}
21 changes: 21 additions & 0 deletions src/generated/resources/data/c/tags/items/dusts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"values": [
"#c:dusts/aluminum",
"#c:dusts/bronze",
"#c:dusts/copper",
"#c:dusts/diamond",
"#c:dusts/electrum",
"#c:dusts/enderium",
"#c:dusts/gold",
"#c:dusts/invar",
"#c:dusts/iron",
"#c:dusts/lead",
"#c:dusts/nickel",
"#c:dusts/platinum",
"#c:dusts/signalum",
"#c:dusts/silver",
"#c:dusts/steel",
"#c:dusts/tin",
"#c:dusts/uranium"
]
}
21 changes: 21 additions & 0 deletions src/generated/resources/data/c/tags/items/gears.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"values": [
"#c:gears/aluminum",
"#c:gears/bronze",
"#c:gears/copper",
"#c:gears/diamond",
"#c:gears/electrum",
"#c:gears/enderium",
"#c:gears/gold",
"#c:gears/invar",
"#c:gears/iron",
"#c:gears/lead",
"#c:gears/nickel",
"#c:gears/platinum",
"#c:gears/signalum",
"#c:gears/silver",
"#c:gears/steel",
"#c:gears/tin",
"#c:gears/uranium"
]
}
17 changes: 17 additions & 0 deletions src/generated/resources/data/c/tags/items/ingots.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"values": [
"#c:ingots/aluminum",
"#c:ingots/bronze",
"#c:ingots/electrum",
"#c:ingots/enderium",
"#c:ingots/invar",
"#c:ingots/lead",
"#c:ingots/nickel",
"#c:ingots/platinum",
"#c:ingots/signalum",
"#c:ingots/silver",
"#c:ingots/steel",
"#c:ingots/tin",
"#c:ingots/uranium"
]
}
18 changes: 18 additions & 0 deletions src/generated/resources/data/c/tags/items/nuggets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"values": [
"#c:nuggets/aluminum",
"#c:nuggets/bronze",
"#c:nuggets/copper",
"#c:nuggets/electrum",
"#c:nuggets/enderium",
"#c:nuggets/invar",
"#c:nuggets/lead",
"#c:nuggets/nickel",
"#c:nuggets/platinum",
"#c:nuggets/signalum",
"#c:nuggets/silver",
"#c:nuggets/steel",
"#c:nuggets/tin",
"#c:nuggets/uranium"
]
}
11 changes: 11 additions & 0 deletions src/generated/resources/data/c/tags/items/ores.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"values": [
"#c:ores/aluminum",
"#c:ores/lead",
"#c:ores/nickel",
"#c:ores/platinum",
"#c:ores/silver",
"#c:ores/tin",
"#c:ores/uranium"
]
}
21 changes: 21 additions & 0 deletions src/generated/resources/data/c/tags/items/plates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"values": [
"#c:plates/aluminum",
"#c:plates/bronze",
"#c:plates/copper",
"#c:plates/diamond",
"#c:plates/electrum",
"#c:plates/enderium",
"#c:plates/gold",
"#c:plates/invar",
"#c:plates/iron",
"#c:plates/lead",
"#c:plates/nickel",
"#c:plates/platinum",
"#c:plates/signalum",
"#c:plates/silver",
"#c:plates/steel",
"#c:plates/tin",
"#c:plates/uranium"
]
}
11 changes: 11 additions & 0 deletions src/generated/resources/data/c/tags/items/raw_materials.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"values": [
"#c:raw_materials/aluminum",
"#c:raw_materials/lead",
"#c:raw_materials/nickel",
"#c:raw_materials/platinum",
"#c:raw_materials/silver",
"#c:raw_materials/tin",
"#c:raw_materials/uranium"
]
}
24 changes: 24 additions & 0 deletions src/generated/resources/data/c/tags/items/storage_blocks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"values": [
"#c:storage_blocks/aluminum",
"#c:storage_blocks/bronze",
"#c:storage_blocks/electrum",
"#c:storage_blocks/enderium",
"#c:storage_blocks/invar",
"#c:storage_blocks/lead",
"#c:storage_blocks/nickel",
"#c:storage_blocks/platinum",
"#c:storage_blocks/signalum",
"#c:storage_blocks/silver",
"#c:storage_blocks/steel",
"#c:storage_blocks/tin",
"#c:storage_blocks/uranium",
"#c:storage_blocks/raw_aluminum",
"#c:storage_blocks/raw_lead",
"#c:storage_blocks/raw_nickel",
"#c:storage_blocks/raw_platinum",
"#c:storage_blocks/raw_silver",
"#c:storage_blocks/raw_tin",
"#c:storage_blocks/raw_uranium"
]
}
11 changes: 0 additions & 11 deletions src/generated/resources/data/forge/tags/blocks/ores.json

This file was deleted.

24 changes: 0 additions & 24 deletions src/generated/resources/data/forge/tags/blocks/storage_blocks.json

This file was deleted.

21 changes: 0 additions & 21 deletions src/generated/resources/data/forge/tags/items/dusts.json

This file was deleted.

Loading
Loading