-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
034e4c8
commit e1eb0d7
Showing
11 changed files
with
166 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
### 6.0.3 | ||
### 6.1.0 | ||
|
||
- Add lang keys | ||
- 1.21.1 & Bee Compact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
plugins { | ||
id 'groovy-gradle-plugin' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
plugins { | ||
id 'java-library' | ||
id 'maven-publish' | ||
id 'dev.nanite.mlp' | ||
} | ||
|
||
java.toolchain.languageVersion = JavaLanguageVersion.of(21) | ||
|
||
def isASnapshot = providers.environmentVariable("SNAPSHOT").map {it == "true"}.getOrElse(false) | ||
version = "${mod_version}+mc${minecraft_version}${isASnapshot ? '-SNAPSHOT' : ''}" | ||
setArchivesBaseName("${mod_name}-${project.name}".toLowerCase()) | ||
group = "${maven_group}" | ||
|
||
idea { | ||
module { | ||
downloadSources = true | ||
downloadJavadoc = true | ||
} | ||
} | ||
|
||
base { | ||
archivesName = "${project.property("mod_name")}-${project.name}".toLowerCase() | ||
} | ||
|
||
repositories { | ||
repositories { | ||
maven { | ||
name = "NeoForge" | ||
url = "https://maven.neoforged.net/" | ||
} | ||
maven { | ||
name = "Fabric" | ||
url = "https://maven.fabricmc.net/" | ||
} | ||
maven { | ||
name = "Nanite" | ||
url = "https://maven.nanite.dev/releases" | ||
} | ||
maven { | ||
name = "Mek" | ||
url = 'https://modmaven.dev/' | ||
} | ||
maven { | ||
name = "Curse Maven" | ||
url = "https://cursemaven.com" | ||
} | ||
} | ||
} | ||
|
||
tasks.withType(ProcessResources).configureEach { | ||
outputs.upToDateWhen { false } | ||
} | ||
|
||
test { | ||
enabled = false | ||
} | ||
|
||
publishing { | ||
repositories { | ||
if (providers.environmentVariable("NANITE_TOKEN").isPresent()) { | ||
maven { | ||
def isSnapshot = providers.environmentVariable("SNAPSHOT").map {it == "true"}.getOrElse(false) | ||
url "https://maven.nanite.dev/${isSnapshot ? 'snapshots' : 'releases'}" | ||
credentials { | ||
username = "nanite" | ||
password = providers.environmentVariable("NANITE_TOKEN").get() | ||
} | ||
} | ||
} | ||
} | ||
publications { | ||
register("mavenJava", MavenPublication) { | ||
groupId project.group | ||
artifactId project.getArchivesBaseName() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
plugins { | ||
id 'multiloader' | ||
} | ||
|
||
multiLoader.common() | ||
|
||
publishing.publications.mavenJava.from components.java | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
plugins { | ||
id 'multiloader' | ||
} | ||
|
||
multiLoader.fabric() { | ||
fabricLoaderVersion.set("${fabric_loader_version}") | ||
fabricApiVersion.set("${fabric_version}") | ||
} | ||
|
||
publishing.publications.mavenJava.from components.java | ||
|
||
dependencies { | ||
modImplementation("com.unrealdinnerbone:trenzalore-fabric:${project.property("trenzalore_version")}+mc${project.property("minecraft_version")}") | ||
} | ||
|
||
|
||
publishing.publications.mavenJava.from components.java | ||
|
||
remapJar { | ||
setArchivesBaseName("${project.property("mod_name")}-${project.name}".toLowerCase()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
plugins { | ||
id 'multiloader' | ||
} | ||
|
||
multiLoader.neo() { | ||
neoVersion.set("${neo_version}") | ||
} | ||
|
||
publishing.publications.mavenJava.from components.java | ||
|
||
sourceSets.main.resources { srcDir project(":common").file('src/generated/resources') } | ||
|
||
|
||
dependencies { | ||
implementation("com.unrealdinnerbone:trenzalore-neo:${project.property("trenzalore_version")}+mc${project.property("minecraft_version")}") | ||
|
||
api "mekanism:Mekanism:${mekanism_version}" | ||
api "curse.maven:productivebees-377897:5611632" | ||
// api "blusunrize.immersiveengineering:ImmersiveEngineering:${immersive_engineering_version}" | ||
} | ||
|
||
publishing.publications.mavenJava.from components.java | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
neo/src/main/java/com/unrealdinnerbone/jamd/neo/compact/PBCompact.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.unrealdinnerbone.jamd.neo.compact; | ||
|
||
import com.unrealdinnerbone.jamd.OresCodec; | ||
import com.unrealdinnerbone.jamd.api.IFeatureTypeCompact; | ||
import net.minecraft.world.level.levelgen.VerticalAnchor; | ||
import net.minecraft.world.level.levelgen.feature.configurations.ReplaceBlockConfiguration; | ||
import net.minecraft.world.level.levelgen.placement.BiomeFilter; | ||
import net.minecraft.world.level.levelgen.placement.CountPlacement; | ||
import net.minecraft.world.level.levelgen.placement.HeightRangePlacement; | ||
import net.minecraft.world.level.levelgen.placement.InSquarePlacement; | ||
import net.minecraft.world.level.levelgen.placement.PlacementModifier; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class PBCompact implements IFeatureTypeCompact<ReplaceBlockConfiguration> { | ||
|
||
@Override | ||
public OresCodec parse(ReplaceBlockConfiguration value, List<PlacementModifier> placementModifiers) { | ||
List<PlacementModifier> newPlacementModifiers = new ArrayList<>(placementModifiers); | ||
newPlacementModifiers.add(CountPlacement.of(2)); | ||
newPlacementModifiers.add(HeightRangePlacement.uniform(VerticalAnchor.absolute(0), VerticalAnchor.absolute(60))); | ||
newPlacementModifiers.add(InSquarePlacement.spread()); | ||
newPlacementModifiers.add(BiomeFilter.biome()); | ||
return new OresCodec(4, 0, newPlacementModifiers, value.targetStates); | ||
} | ||
} |