Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This is an updated version of ChemLib
Please, don't report issues of this project to the official one.
- Official mod: [Link](https://www.curseforge.com/minecraft/mc-mods/chemlib)

![!Alt Text](https://i.imgur.com/nRaok6G.png)

# ChemLib - Elements & Compounds Library

This library adds over 950+ items to Minecraft, with the intention of adding all known chemical elements, along with many compounds, metals, liquids, and gases that exists in the real world. The purpose of this library is to provide a shared source of items, blocks, and fluids for chemistry and tech mods. It was originally developed exclusively for the Alchemistry mod but can now be used by any mod!

### Chem Lib is a simple mod that adds plenty of chemistry related items including:

All 118 chemical elements found on the periodic table.
Ingots, nuggets, dusts, and plates for all elements that make sense (i.e. all except for gases, mercury, iron, gold, etc).
Dozens of chemical compounds, in solid, liquid, and gas forms.
Gases and liquids in bucket or block form (upside-down bucket is for gases, regular bucket is for liquids).
Redstone powered gas lamps and metal blocks for all elements that make sense.
An interactive periodic table of elements that players can craft.
179 changes: 0 additions & 179 deletions build.gradle

This file was deleted.

150 changes: 150 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
plugins {
id("java-library")
id("maven-publish")
id("net.neoforged.moddev") version "2.0.140"
id("idea")
}

val minecraftVersion: String by extra
val modVersion: String by extra
val neoVersion: String by extra
val parchmentMappingsVersion: String by extra
val parchmentMinecraftVersion: String by extra
val neoforgeVersionRange: String by extra
val jeiVersion: String by extra

val localRuntime: Configuration by configurations.creating

tasks.wrapper {
distributionType = Wrapper.DistributionType.BIN
}

version = modVersion
group = "com.smashingmods.chemlib"

repositories {
maven("https://maven.blamejared.com/")
}

base {
archivesName = "chemlib"
}

java.toolchain.languageVersion = JavaLanguageVersion.of(21)

neoForge {
version = neoVersion

parchment {
mappingsVersion = parchmentMappingsVersion
minecraftVersion = parchmentMinecraftVersion
}

runs {
create("client") {
client()
systemProperty("neoforge.enabledGameTestNamespaces", "chemlib")
}

create("server") {
server()
programArgument("--nogui")
systemProperty("neoforge.enabledGameTestNamespaces", "chemlib")
}

create("gameTestServer") {
type = "gameTestServer"
systemProperty("neoforge.enabledGameTestNamespaces", "chemlib")
}

create("data") {
data()
programArguments.addAll("--mod", "chemlib", "--all", "--output", file("src/generated/resources/").absolutePath, "--existing", file("src/main/resources/").absolutePath)
}

configureEach {
systemProperty("forge.logging.markers", "REGISTRIES")
logLevel = org.slf4j.event.Level.INFO
}
}

mods {
create("chemlib") {
sourceSet(sourceSets.main.get())
}
}
}

sourceSets.main.get().resources { srcDir("src/generated/resources") }

configurations {
runtimeClasspath.get().extendsFrom(localRuntime)
}

dependencies {
compileOnly("mezz.jei:jei-$minecraftVersion-common-api:${jeiVersion}")
compileOnly("mezz.jei:jei-$minecraftVersion-neoforge-api:${jeiVersion}")
localRuntime("mezz.jei:jei-$minecraftVersion-neoforge:${jeiVersion}")
}

tasks.processResources {
var replaceProperties = mapOf("minecraftVersion" to minecraftVersion, "neoVersion" to neoVersion,
"neoforgeVersionRange" to neoforgeVersionRange, "modVersion" to modVersion
)

inputs.properties(replaceProperties)

filesMatching(listOf("META-INF/neoforge.mods.toml")) {
expand(replaceProperties)
}
}

/*
publishing {
publications {
register("mavenJava", MavenPublication) {
from components.java
}
}
repositories {
maven {
url "file://${project.projectDir}/repo"
}
}
}
*/
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
}

idea {
module {
isDownloadSources = true
isDownloadJavadoc = true
}
}

/*
publishing {
publications {
mavenJava(MavenPublication) {
afterEvaluate {
artifact project.jar
artifact project.sourcesJar
artifact project.javadocJar
}
setGroupId "smashingmods"
setArtifactId "chemlib"
}
}
repositories {
maven {
url "https://maven.tamaized.com/releases"
credentials {
username secrets.getProperty("maven_username")
password secrets.getProperty("maven_password")
}
}
}
}
*/
29 changes: 14 additions & 15 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

minecraft_version=1.20.1
minecraft_version_range=[1.20,1.21)
forge_version=47.1.3
forge_version_range=[47,)
loader_version_range=[47,)
mapping_channel=parchment
mapping_version=2023.09.03
# Minecraft
minecraftVersion=1.21.1

mod_id=chemlib
mod_name=ChemLib
mod_license=LGPLv2.1
mod_version=2.0.19
mod_group_id=com.smashingmods.chemlib
mod_authors=DarkArcana
mod_description=ChemLib provides all of the elements of the periodic table and many compounds of those elements. It also includes some items based on the elements and compounds such as ingots and lamps.\nCredits:\n- Andrea Hazard, creator of 'Enhanced Bohr Model' images. Their work is shared under the Creative Commons Attribution-Share Alike 4.0 International license. Read more about the license here: https://creativecommons.org/licenses/by-sa/4.0/deed.en
# NeoForge
neoVersion=21.1.219
neoforgeVersionRange=[21,22)

jei_version=15.2.0.22
# Parchment
parchmentMinecraftVersion=1.21.1
parchmentMappingsVersion=2024.11.17

# Mod
modVersion=2.0.19

# Dependencies
jeiVersion=19.27.0.340
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading