forked from TerraformersMC/Terrestria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
90 lines (65 loc) · 3.7 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
plugins {
id 'fabric-loom' version '0.5-SNAPSHOT'
}
apply from: 'https://raw.githubusercontent.com/TerraformersMC/GradleScripts/2.0/ferry.gradle'
dependencies {
minecraft "com.mojang:minecraft:$project.minecraft_version"
mappings "net.fabricmc:yarn:$project.yarn_mappings:v2"
mod "fabric-loader", "net.fabricmc:fabric-loader:$project.loader_version"
// === Active modules: We use the APIs of these modules, and they need to be loaded. ===
// Adding our biomes to the overworld biome generator
includeFabricApiModule "fabric-biome-api-v1"
// FabricBlockSettings
includeFabricApiModule "fabric-object-builder-api-v1"
// Custom block render layer registration (such as for leaves)
includeFabricApiModule "fabric-blockrenderlayer-v1"
// FlammableBlockRegistry, FuelRegistry, etc
includeFabricApiModule "fabric-content-registries-v0"
// ToolTags.SHOVELS, ToolTags.HOES
includeFabricApiModule "fabric-tool-attribute-api-v1"
// FabricItemGroupBuilder
includeFabricApiModule "fabric-item-groups-v0"
// ColorProviderRegistry
includeFabricApiModule "fabric-rendering-v1"
// EntityRendererRegistry
includeFabricApiModule "fabric-renderer-registries-v1"
// API for adding structures to Minecraft. It's effectively LibStructure merged into Fabric API.
// However, it also includes an important fix to a vanilla bug:
// MC-149777 - java.util.ConcurrentModificationException when using Java 11 or above
includeFabricApiModule "fabric-structure-api-v1"
// === Dependency modules: Required by other modules to function ===
// Base module required by most other fabric api modules
includeFabricApiModule "fabric-api-base"
// Used by fabric-tool-attribute-api-v1
includeFabricApiModule "fabric-tag-extensions-v0"
// Used by terraform-wood-api-v1
includeFabricApiModule "fabric-networking-api-v1"
// Used by fabric-content-registries-v1
includeFabricApiModule "fabric-lifecycle-events-v1"
// === Passive modules: While we don't use the public APIs of these modules (if any), they provide important ===
// === functions just by being loaded in the first place. ===
// Important information in crash reports
includeFabricApiModule "fabric-crash-report-info-v1"
// Ensures consistency of registry content in multiplayer and when loading a saved game
// Very important, will result in data loss if removed!
includeFabricApiModule "fabric-registry-sync-v0"
// Loads the Terrestria asset pack and data pack.
includeFabricApiModule "fabric-resource-loader-v0"
includeMod "terraform-api", "com.terraformersmc.terraform-api:terraform-biome-builder-api-v1:${project.terraform_biome_builder_api_version}"
includeMod "terraform-api", "com.terraformersmc.terraform-api:terraform-config-api-v1:${project.terraform_config_api_version}"
includeMod "terraform-api", "com.terraformersmc.terraform-api:terraform-dirt-api-v1:${project.terraform_dirt_version}"
includeMod "terraform-api", "com.terraformersmc.terraform-api:terraform-overworld-biome-extensions-api-v1:${project.terraform_overworld_biome_extensions_version}"
includeMod "terraform-api", "com.terraformersmc.terraform-api:terraform-shapes-api-v1:${project.terraform_shapes_api_version}"
includeMod "terraform-api", "com.terraformersmc.terraform-api:terraform-surfaces-api-v1:${project.terraform_surfaces_api_version}"
includeMod "terraform-api", "com.terraformersmc.terraform-api:terraform-tree-api-v1:${project.terraform_tree_api_version}"
includeMod "terraform-api", "com.terraformersmc.terraform-api:terraform-wood-api-v1:${project.terraform_wood_api_version}"
}
repositories {
maven {
name = 'TerraformersMC'
url = 'https://maven.terraformersmc.com/'
}
}
def includeFabricApiModule(String moduleName) {
includeMod "fabric-api", fabricApi.module(moduleName, project.fabric_version)
}