Skip to content

Commit 94e74a3

Browse files
committed
feat: add block of ingot, fix missing tools on nether ore
Signed-off-by: AlasDiablo <25723276+AlasDiablo@users.noreply.github.com>
1 parent 8ae6204 commit 94e74a3

23 files changed

+263
-70
lines changed

.github/workflows/gradle.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Run build
55

66
on:
77
push:
8-
branches: [ 1.17-v6 ]
8+
branches: [ '1.18' ]
99
pull_request:
10-
branches: [ 1.17-v6 ]
10+
branches: [ '1.18' ]
1111

1212
jobs:
1313
build:
@@ -16,10 +16,10 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19-
- name: Set up JDK 16
19+
- name: Set up JDK 17
2020
uses: actions/setup-java@v2
2121
with:
22-
java-version: '16'
22+
java-version: '17'
2323
distribution: 'adopt'
2424
- name: Grant execute permission for gradlew
2525
run: chmod +x gradlew

build.gradle

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
11
buildscript {
22
repositories {
33
maven { url = 'https://maven.minecraftforge.net' }
4+
maven { url = 'https://repo.spongepowered.org/maven' }
5+
maven { url = 'https://maven.parchmentmc.org' }
46
mavenCentral()
57
}
68
dependencies {
79
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
10+
classpath 'org.parchmentmc:librarian:1.+'
11+
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
812
}
913
}
1014

1115
apply plugin: 'net.minecraftforge.gradle'
16+
apply plugin: 'org.parchmentmc.librarian.forgegradle'
1217
apply plugin: 'eclipse'
1318
apply plugin: 'maven-publish'
19+
apply plugin: 'org.spongepowered.mixin'
1420

1521
// ***************************************** //
1622
// //
1723
// Standard versioning system //
1824
// //
1925
// ***************************************** //
20-
def majorVersion = 8
26+
def majorVersion = 9
2127
def minorVersion = 2
22-
def buildVersion = 78
28+
def buildVersion = 79
2329
def isExperimental = false
2430
version = "${majorVersion}.${minorVersion}.${buildVersion}"
2531
if (isExperimental) {
@@ -57,7 +63,7 @@ java.toolchain.languageVersion = JavaLanguageVersion.of(17)
5763
def deobfSourceClassifier
5864

5965
minecraft {
60-
mappings channel: 'official', version: '1.18.1'
66+
mappings channel: 'parchment', version: '2021.12.19-1.18.1'
6167
deobfSourceClassifier = getMappings().get()
6268
runs {
6369
client {
@@ -98,16 +104,21 @@ minecraft {
98104
sourceSets.main.resources { srcDir 'src/generated/resources' }
99105

100106
repositories {
101-
maven { url = 'https://www.cursemaven.com/' }
107+
maven {
108+
url 'https://cursemaven.com'
109+
content {
110+
includeGroup 'curse.maven'
111+
}
112+
}
102113
}
103114

104115
dependencies {
105-
minecraft 'net.minecraftforge:forge:1.18.1-39.0.17'
116+
minecraft 'net.minecraftforge:forge:1.18.1-39.0.40'
106117
implementation fileTree(dir:'lib', include:'*.jar')
107-
// implementation 'curse.maven:diabololib-422014:3574175' // DiaboloLib
108118
implementation fg.deobf('curse.maven:catalogue-459701:3559402') // Catalogue
109119
implementation fg.deobf('curse.maven:jei-238222:3569553') // JEI
110-
implementation 'curse.maven:jer-240630:3575594' // JER
120+
implementation fg.deobf('curse.maven:jer-240630:3575594') // JER
121+
annotationProcessor 'org.spongepowered:mixin:0.8.4:processor'
111122
}
112123

113124
jar {

changelog.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
<details><summary><b>1.18.1</b></summary>
66

7+
+ [6.9.2.79](#68278)
78
+ [6.8.2.78](#68278)
89
+ [6.7.2.77-experimental](#67277-experimental)
910

@@ -112,6 +113,24 @@
112113

113114
</details>
114115

116+
### 6.9.2.79
117+
118+
#### Fix
119+
120+
+ Lapis ore with the wrong harvest level
121+
+ Nether ore without a specified requirement tools (making ore un minable)
122+
+ Add missing ore in the ores tags
123+
124+
#### Add
125+
126+
+ Block of each ingot
127+
+ Metal rods (iron, etc.)
128+
+ Gear (wood, iron, etc.)
129+
130+
##### Technical only
131+
132+
+ Use parchment as mapping
133+
115134
### 6.8.2.78
116135

117136
#### Add
291 KB
Binary file not shown.

lib/DiaboloLib-3.2.22-sources-official_1.18.1.jar renamed to lib/DiaboloLib-3.3.24-sources-parchment_2021.12.19-1.18.1.jar

29 KB
Binary file not shown.

src/main/java/fr/alasdiablo/janoeo/foundation/Registries.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ public class Registries {
6969
/* * * * * * * * * * * * * * * Other * * * * * * * * * * * * * */
7070
public static final String SCRAP = "scrap";
7171

72+
/* * * * * * * * * * * * * * * Storage Blocks * * * * * * * * * * * * * */
73+
public static final String ALUMINIUM_BLOCK = "aluminium_block";
74+
public static final String LEAD_BLOCK = "lead_block";
75+
public static final String NICKEL_BLOCK = "nickel_block";
76+
public static final String SILVER_BLOCK = "silver_block";
77+
public static final String TIN_BLOCK = "tin_block";
78+
public static final String URANIUM_BLOCK = "uranium_block";
79+
7280
/* * * * * * * * * * * * * * * Ore * * * * * * * * * * * * * */
7381
public static final String BAUXITE_ORE = "bauxite_ore";
7482
public static final String LEAD_ORE = "lead_ore";

src/main/java/fr/alasdiablo/janoeo/foundation/data/language/EnglishProvider.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ protected void addTranslations() {
137137
this.add(NETHER_TIN_ORE, "Nether Tin Ore");
138138
this.add(NETHER_URANIUM_ORE, "Nether Uranium Ore");
139139

140+
this.add(ALUMINIUM_BLOCK, "Block of Aluminium");
141+
this.add(LEAD_BLOCK, "Block of Lead");
142+
this.add(NICKEL_BLOCK, "Block of Nickel");
143+
this.add(SILVER_BLOCK, "Block of Silver");
144+
this.add(TIN_BLOCK, "Block of Tin");
145+
this.add(URANIUM_BLOCK, "Block of Uranium");
146+
140147
this.add(
141148
((TranslatableComponent) Foundation.ORES_ITEMS_GROUP.getDisplayName()).getKey(),
142149
"Janoeo Foundation - Items"

src/main/java/fr/alasdiablo/janoeo/foundation/data/language/FrenchProvider.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,21 @@ protected void addTranslations() {
137137
this.add(NETHER_TIN_ORE, SimpleUnicode.encodeOf("Minerai d'étain du Nether"));
138138
this.add(NETHER_URANIUM_ORE, SimpleUnicode.encodeOf("Minerai d'uranium du Nether"));
139139

140+
this.add(ALUMINIUM_BLOCK, SimpleUnicode.encodeOf("Block of Aluminium"));
141+
this.add(LEAD_BLOCK, SimpleUnicode.encodeOf("Block of Lead"));
142+
this.add(NICKEL_BLOCK, SimpleUnicode.encodeOf("Block of Nickel"));
143+
this.add(SILVER_BLOCK, SimpleUnicode.encodeOf("Block of Silver"));
144+
this.add(TIN_BLOCK, SimpleUnicode.encodeOf("Block of Tin"));
145+
this.add(URANIUM_BLOCK, SimpleUnicode.encodeOf("Block of Uranium"));
146+
140147
this.add(
141148
((TranslatableComponent) Foundation.ORES_ITEMS_GROUP.getDisplayName()).getKey(),
142149
"Janoeo Foundation - Objets"
143150
);
151+
this.add(
152+
((TranslatableComponent) Foundation.GEAR_ITEMS_GROUP.getDisplayName()).getKey(),
153+
"Janoeo Foundation - Gear"
154+
);
144155
this.add(
145156
((TranslatableComponent) Foundation.ORES_BLOCKS_GROUP.getDisplayName()).getKey(),
146157
"Janoeo Foundation - Blocs"

src/main/java/fr/alasdiablo/janoeo/foundation/data/language/SpanishProvider.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,21 @@ protected void addTranslations() {
137137
this.add(NETHER_TIN_ORE, SimpleUnicode.encodeOf("Mena de estaño del Nether"));
138138
this.add(NETHER_URANIUM_ORE, SimpleUnicode.encodeOf("Mena de uranio del Nether"));
139139

140+
this.add(ALUMINIUM_BLOCK, SimpleUnicode.encodeOf("Block of Aluminium"));
141+
this.add(LEAD_BLOCK, SimpleUnicode.encodeOf("Block of Lead"));
142+
this.add(NICKEL_BLOCK, SimpleUnicode.encodeOf("Block of Nickel"));
143+
this.add(SILVER_BLOCK, SimpleUnicode.encodeOf("Block of Silver"));
144+
this.add(TIN_BLOCK, SimpleUnicode.encodeOf("Block of Tin"));
145+
this.add(URANIUM_BLOCK, SimpleUnicode.encodeOf("Block of Uranium"));
146+
140147
this.add(
141148
((TranslatableComponent) Foundation.ORES_ITEMS_GROUP.getDisplayName()).getKey(),
142149
"Janoeo Foundation - Objetos"
143150
);
151+
this.add(
152+
((TranslatableComponent) Foundation.GEAR_ITEMS_GROUP.getDisplayName()).getKey(),
153+
"Janoeo Foundation - Gear"
154+
);
144155
this.add(
145156
((TranslatableComponent) Foundation.ORES_BLOCKS_GROUP.getDisplayName()).getKey(),
146157
"Janoeo Foundation - Bloques"

src/main/java/fr/alasdiablo/janoeo/foundation/data/model/FoundationBlockModelProvider.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ protected void registerModels() {
3737
);
3838

3939
tinyOres.forEach(block -> cubeAll(block, Folder.TINY_ORE));
40+
41+
42+
List<String> storageBlock = List.of(
43+
ALUMINIUM_BLOCK, LEAD_BLOCK, NICKEL_BLOCK, SILVER_BLOCK, TIN_BLOCK, URANIUM_BLOCK
44+
);
45+
46+
storageBlock.forEach(block -> cubeAll(block, Folder.DEFAULT));
4047
}
4148

4249
private void cubeAll(String blockNameIn, @NotNull Folder folder) {

0 commit comments

Comments
 (0)