Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 24d8fdc

Browse files
committed
- Added 2 more villager trading bookmark groups.
* The new groups are disabled by default and can be enabled in `Mod Settings` * You can also assign shortcuts in `Hotkeys` - Added support for **Easy Villagers**. * All forge versions now support the trading blocks of **Easy Villagers**
1 parent a283e86 commit 24d8fdc

28 files changed

Lines changed: 825 additions & 57 deletions

File tree

build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import org.anti_ad.mc.ipnext.buildsrc.loom_version
2323
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2424
import java.io.ByteArrayOutputStream
2525

26-
val versionObj = Version("1", "10", "5",
26+
val versionObj = Version("1", "10", "6",
2727
preRelease = (System.getenv("IPNEXT_RELEASE") == null))
2828

2929

@@ -81,11 +81,13 @@ tasks.named<KotlinCompile>("compileKotlin") {
8181
}
8282
}
8383

84+
//group = "org.anti-ad.mc"
85+
8486
evaluationDependsOnChildren()
8587

8688
allprojects {
8789
version = versionObj.toCleanString()
88-
group = "org.anti-ad.mc"
90+
// group = "org.anti-ad.mc"
8991
ext.set("mod_artefact_version", versionObj.toCleanString())
9092
ext.set("mod_artefact_is_release", versionObj.isRelease())
9193
ext.set("libIPN_version", "3.0.2")
@@ -135,6 +137,7 @@ tasks.register<Copy>("copyPlatformJars") {
135137
val isForge = it.name.startsWith("forge")
136138
isFabric || isForge
137139
}.forEach {
140+
//group = "org.anti-ad.mc.platforms"
138141
val isForge = !it.name.startsWith("fabric")
139142
val taskName = if (isForge) { "shadowJar" } else { "remapJar" }
140143
val jarTask = it.tasks.named<org.gradle.jvm.tasks.Jar>(taskName)

changelog.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
<!-- latest begin -->
2-
### 1.10.5
32

4-
- Fixed crash when the FTB Quest screen is opened from the inventory screen and closed.
5-
- Fixed game hanging when the inventory is full and fast trading is used.
6-
- Fixed villager trades data not being stored properly on servers.
7-
- Added workaround for Optifabric incompatibility introduced with the support for 1.20. Any future optifabric incompatibilities will be resolved with adding optifabric as incompatible mod in the mod description.
3+
### 1.10.6
4+
5+
- Added 2 more villager trading bookmark groups.
6+
* The new groups are disabled by default and can be enabled in `Mod Settings`
7+
* You can also assign shortcuts in `Hotkeys`
8+
- Added support for **Easy Villagers**.
9+
* All forge versions now support the trading blocks of **Easy Villagers**
10+
11+
### End of Life Notice
12+
13+
- This is the last version that supports `Minecraft 1.16` both Forge and Fabric
14+
- This is the last version that supports `Minecraft 1.19.4` both Forge and Fabric
15+
16+
**Bugs might get a fix depending on the severity.**
817

918
### WARNING
1019

@@ -26,6 +35,14 @@ Any problems that are not reproducible on Fabric will be addressed with very low
2635
<!-- latest end -->
2736
<!-- rest begin -->
2837

38+
### 1.10.5
39+
40+
- Fixed crash when the FTB Quest screen is opened from the inventory screen and closed.
41+
- Fixed game hanging when the inventory is full and fast trading is used.
42+
- Fixed villager trades data not being stored properly on servers.
43+
- Added workaround for Optifabric incompatibility introduced with the support for 1.20. Any future optifabric incompatibilities will be resolved with adding optifabric as incompatible mod in the mod description.
44+
45+
2946
### 1.10.4
3047

3148
- "Disable all input user for locked slots" now disables and swap buttons (1-9)

platforms/fabric-1.19.4/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,8 @@ loom {
145145
tasks.named<AntlrTask>("generateGrammarSource").configure {
146146
val pkg = "org.anti_ad.mc.common.gen"
147147
outputDirectory = file("build/generated-src/antlr/main/${pkg.replace('.', '/')}")
148-
arguments = listOf(
149-
"-visitor", "-package", pkg,
150-
"-Xexact-output-dir"
151-
)
148+
arguments = listOf("-visitor", "-package", pkg,
149+
"-Xexact-output-dir")
152150
}
153151

154152
afterEvaluate {

platforms/fabric-1.20/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ configure<CurseExtension> {
342342
changelog = file("../../description/out/pandoc-release_notes.md")
343343
releaseType = "release"
344344
supported_minecraft_versions.forEach {
345-
if (!it.toLowerCase().contains("pre")) {
345+
if (!it.toLowerCase().contains("pre") && !it.toLowerCase().contains("shanpshot")) {
346346
this.addGameVersion(it)
347347
}
348348
}

platforms/forge-1.16/build.gradle.kts

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ dependencies {
156156
//api( fg.deobf("curse.maven:tconcept-74072:3695126"))
157157
runtimeOnly( fg.deobf("curse.maven:ctm-267602:3137659"))
158158
implementation(fg.deobf("curse.maven:chipped-456956:3717506"))
159+
160+
implementation(fg.deobf("curse.maven:easy-villagers-400514:3637981"))
161+
162+
159163
}
160164

161165
tasks.named("compileKotlin") {
@@ -184,10 +188,8 @@ plugins.withId("idea") {
184188
tasks.named<AntlrTask>("generateGrammarSource").configure {
185189
val pkg = "org.anti_ad.mc.common.gen"
186190
outputDirectory = file("build/generated-src/antlr/main/${pkg.replace('.', '/')}")
187-
arguments = listOf(
188-
"-visitor", "-package", pkg,
189-
"-Xexact-output-dir"
190-
)
191+
arguments = listOf("-visitor", "-package", pkg,
192+
"-Xexact-output-dir")
191193
}
192194

193195
afterEvaluate {
@@ -377,7 +379,7 @@ configure<UserDevExtension> {
377379
"mixin.debug.dumpTargetOnFailure" to "true"
378380
))
379381
arg("-mixin.config=mixins.ipnext.json")
380-
args("--width=1280", "--height=720", "--username=DEV")
382+
args("--width=1280", "--height=720", "--username=DEV2")
381383
workingDirectory = project.file("run").canonicalPath
382384
source(sourceSets["main"])
383385
if (JavaVersion.current() >= JavaVersion.VERSION_11) {
@@ -390,8 +392,30 @@ configure<UserDevExtension> {
390392
sources(sourceSets.getByName("main"))
391393
}
392394
}
395+
393396
create("client", runConfig)
394-
create("server", runConfig)
397+
398+
val runConfigServer = Action<RunConfig> {
399+
properties(mapOf(
400+
//"forge.logging.markers" to "SCAN,REGISTRIES,REGISTRYDUMP",
401+
"forge.logging.console.level" to "debug",
402+
"mixin.env.remapRefMap" to "true",
403+
"mixin.env.refMapRemappingFile" to "${projectDir}/build/createSrgToMcp/output.srg",
404+
"mixin.debug.verbose" to "true",
405+
"mixin.debug.export" to "true",
406+
"mixin.debug.dumpTargetOnFailure" to "true",
407+
"bsl.debug" to "true"))
408+
arg("--mixin.config=mixins.ipnext.json")
409+
workingDirectory = project.file("run-server").canonicalPath
410+
source(FilteringSourceSet(sourceSets["main"], "InventoryProfilesNext-common", logger))
411+
412+
413+
jvmArg("--add-exports=java.base/sun.security.util=ALL-UNNAMED")
414+
jvmArg("--add-opens=java.base/java.util.jar=ALL-UNNAMED")
415+
//taskName = "plamenRunClient"
416+
this.forceExit = false
417+
}
418+
create("server", runConfigServer)
395419

396420
//create("data", runConfig)
397421
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../shared-integrations/easy-villagers-1.16

platforms/forge-1.16/src/main/resources/mixins.ipnext.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"MixinPlayerInventory",
1616
"MixinScreenHandler",
1717
"MixinMerchantScreen",
18-
"MixinPlayerInteractEntityC2SPacket"
18+
"MixinPlayerInteractEntityC2SPacket",
19+
"MixinTraderTileEntityBase"
1920
],
2021
"injectors": {
2122
"defaultRequire": 1

platforms/forge-1.18.2/build.gradle.kts

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ dependencies {
151151
runtimeOnly(fg.deobf("curse.maven:ctm-267602:3933537"))
152152
compileOnly(fg.deobf("curse.maven:chipped-456956:4293291"))
153153
}
154+
//needed for Easy Villagers
155+
run {
156+
implementation(fg.deobf("curse.maven:easy-villagers-400514:3887794"))
157+
}
158+
154159
}
155160

156161
tasks.named("compileKotlin") {
@@ -179,10 +184,8 @@ plugins.withId("idea") {
179184
tasks.named<AntlrTask>("generateGrammarSource").configure {
180185
val pkg = "org.anti_ad.mc.common.gen"
181186
outputDirectory = file("build/generated-src/antlr/main/${pkg.replace('.', '/')}")
182-
arguments = listOf(
183-
"-visitor", "-package", pkg,
184-
"-Xexact-output-dir"
185-
)
187+
arguments = listOf("-visitor", "-package", pkg,
188+
"-Xexact-output-dir")
186189
}
187190

188191
afterEvaluate {
@@ -390,7 +393,28 @@ configure<UserDevExtension> {
390393

391394
rcltName = action.taskName
392395

393-
create("server", runConfig)
396+
val runConfigServer = Action<RunConfig> {
397+
properties(mapOf(
398+
//"forge.logging.markers" to "SCAN,REGISTRIES,REGISTRYDUMP",
399+
"forge.logging.console.level" to "debug",
400+
"mixin.env.remapRefMap" to "true",
401+
"mixin.env.refMapRemappingFile" to "${projectDir}/build/createSrgToMcp/output.srg",
402+
"mixin.debug.verbose" to "true",
403+
"mixin.debug.export" to "true",
404+
"mixin.debug.dumpTargetOnFailure" to "true",
405+
"bsl.debug" to "true"))
406+
arg("--mixin.config=mixins.ipnext.json")
407+
workingDirectory = project.file("run-server").canonicalPath
408+
source(FilteringSourceSet(sourceSets["main"], "InventoryProfilesNext-common", logger))
409+
410+
411+
jvmArg("--add-exports=java.base/sun.security.util=ALL-UNNAMED")
412+
jvmArg("--add-opens=java.base/java.util.jar=ALL-UNNAMED")
413+
//taskName = "plamenRunClient"
414+
this.forceExit = false
415+
}
416+
417+
create("server", runConfigServer)
394418
//create("data", runConfig)
395419

396420
all {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../shared-integrations/easy-villagers

platforms/forge-1.18.2/src/main/resources/mixins.ipnext.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"MixinPlayerInventory",
1616
"MixinScreenHandler",
1717
"MixinServerBoundInteractPacket",
18-
"MixinMerchantScreen"
18+
"MixinMerchantScreen",
19+
"MixinTraderTileEntityBase"
1920
],
2021
"injectors": {
2122
"defaultRequire": 1

0 commit comments

Comments
 (0)