* 1.20.5 recipes: null over -1 * add 1.21 * 1.21 (#26) * update classname * update moved class * updated to equivelant method since gettranslatekey removed * added isCursed list as bandaid alternative for now since isCursed() removed * added isTreasure list as bandaid alternative for now since isTreasure() removed * found alternative method to canCombine() since removed * modified getEnchantmentTarget name to handle registryEntryList since getApplicableItems dosnt return tagKey anymore * bandaid list solution for "tradeable" property since isTradeable removed and no alternative in mappings * bandaid solution for discoverable property since removed and no alternative to isAvailiableForRandomSelection in 1.21 mappings * removed .toPath since apparently it dosnt exist * no longer outputs in tagkey format * fixed not adding enchantcategories for items properly * added SuperGamerTron tag solution * Update build.yml --------- Co-authored-by: Madlykeanu <96554689+Madlykeanu@users.noreply.github.com> Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
48 lines
946 B
Groovy
48 lines
946 B
Groovy
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
|
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
|
|
|
plugins {
|
|
id 'xyz.wagyourtail.unimined'
|
|
}
|
|
|
|
unimined.minecraft {
|
|
version "1.21"
|
|
|
|
mappings {
|
|
intermediary()
|
|
yarn(1)
|
|
|
|
devFallbackNamespace "intermediary"
|
|
}
|
|
|
|
runs.config("server") {
|
|
javaVersion = JavaVersion.VERSION_21
|
|
}
|
|
|
|
customPatcher(new CustomOfficialFabricMinecraftTransformer(project, delegate as MinecraftProvider)) {
|
|
it.loader libs.versions.fabric.loader.get()
|
|
}
|
|
|
|
defaultRemapJar = true
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(":common")
|
|
}
|
|
|
|
processResources {
|
|
filteringCharset "UTF-8"
|
|
|
|
filesMatching("fabric.mod.json") {
|
|
expand "version": project.version
|
|
}
|
|
}
|
|
|
|
tasks.withType(RemapJarTask).configureEach {
|
|
onlyIf { false}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
it.options.encoding = "UTF-8"
|
|
}
|