Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
def11e7
mc1.21 gradle executions fixed and updated, code does not compile yet
Lothrazar Jun 29, 2024
571217e
neoforge 1.21.1 restart the update
Lothrazar Mar 31, 2026
debae94
neoforge package renames
Lothrazar Mar 31, 2026
9578fe9
update capabilities gui packets enchants resourcelocation transit
Lothrazar Apr 1, 2026
2bd2d19
partial work on utils. refactor portal wrapper and rename
Lothrazar Apr 1, 2026
26a0687
fix nbt providers
Lothrazar Apr 1, 2026
23c22a4
registries and datatags updated
Lothrazar Apr 1, 2026
c02edce
command module and attributes
Lothrazar Apr 1, 2026
7797414
update some render jank
Lothrazar Apr 1, 2026
2fe5506
more minor fixes
Lothrazar Apr 1, 2026
ede5197
at.cfg fix
Lothrazar Apr 1, 2026
e4ed05f
fix recipe cauldron factory
Lothrazar Apr 1, 2026
a0dfff3
fix isfluidequal
Lothrazar Apr 1, 2026
811f6c7
partial rendering fixes
Lothrazar Apr 1, 2026
14c144c
Better rendering fixes
Lothrazar Apr 1, 2026
f455c04
postpone find respawn position and fix another displayName
Lothrazar Apr 1, 2026
bfb9071
finally fixing gradle and template issues
Lothrazar Apr 1, 2026
7af2441
resolve oudated target main branch
Lothrazar Apr 2, 2026
4bcf9eb
improve modid use in toml, set snapshot version
Lothrazar Apr 2, 2026
5f2a430
fix player util gethome transition
Lothrazar Apr 2, 2026
f375f38
add deployLocal gradle task
Lothrazar Apr 2, 2026
ca73dba
refactor deploylocal to standalone file
Lothrazar Apr 2, 2026
8f3bfbf
optional dependencies test
Lothrazar Apr 2, 2026
bf84d91
refactor gradle to use mod.properties
Lothrazar Apr 2, 2026
bf7f6ed
refactor duplicate variable and cleanup readme
Lothrazar Apr 2, 2026
a45b759
clone script for 1.21 repos
Lothrazar Apr 3, 2026
963c961
config template no longer needed with neoforge
Lothrazar Apr 11, 2026
92b8112
rm outdated bashscripts
Lothrazar Apr 11, 2026
e85417a
clone script deploy properties template
Lothrazar Apr 11, 2026
b9781a6
silence mkdir clone errors. add isEdible to item util
Lothrazar Apr 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Disable autocrlf on generated files, they always generate with LF
# Add any extra files or paths here to make git stop saying they
# are changed when only line endings change.
src/generated/**/.cache/cache text eol=lf
src/generated/**/.cache/* text eol=lf
src/generated/**/*.json text eol=lf
6 changes: 3 additions & 3 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Use the libs folder in the repositories section of your build scripts as follows
```
And then use the blank keyword to add the version inside your dependencies block
```
implementation fg.deobf("blank:flib-${mc_version}:${flib_version}")
implementation "local.mods:flib:${minecraft_version}-${flib_version}"
```
And then your gradle.properties file will get the version number set that you are using
```
Expand All @@ -54,8 +54,8 @@ And then add a dependency at the bottom of your META-INF/mods.toml page
```
[[dependencies.examplemod]]
modId="flib"
mandatory=true
versionRange="[0.0.0,)"
type="required" # was mandatory=true
versionRange="[1.0.0,)"
ordering="NONE"
side="BOTH"
```
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ bin
*.launch
.settings
.metadata
.classpath
.cla*
.project

# idea
Expand All @@ -16,11 +16,10 @@ out
# gradle
build
.gradle
deploy.properties

# other
run
logs
libs

# Files from Forge MDK
forge*changelog.txt
repo
333 changes: 175 additions & 158 deletions build.gradle

Large diffs are not rendered by default.

36 changes: 17 additions & 19 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.configuration-cache=true

#read more on this at https://github.com/neoforged/NeoGradle/blob/NG_7.0/README.md#apply-parchment-mappings
# you can also find the latest versions at: https://parchmentmc.org/docs/getting-started
parchment_minecraft_version=1.21.1
parchment_mappings_version=2024.11.17

# your properties
# https://www.curseforge.com/minecraft/mc-mods/flib
mod_id=flib
curse_id=661261
mod_version=0.0.15

mc_version=1.20.1
neo_version=47.1.105


mod_name=flib
mod_group_id=com.lothrazar.flib


mod_license=SeeGithub
mod_authors=Lothrazar
mod_description=Future Library. Empowers many forge mods.
minecraft_version=1.21.1
neo_version=21.1.222

mapping_version=1.20.1
mapping_channel=official
loader_version_range=[1,)


# flib_version=1.0.0

#jei_version=15.0.0.23
#curios_version=5.7.2
patchouli_version=93
jei_version=19.27.0.340
curios_version=9.5.1
crafttweaker_version=21.0.38
47 changes: 47 additions & 0 deletions gradle/deploy.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// ---------------------------------------------------------------------------
// deployLocal — copies the built JAR to every folder listed in deploy.properties
// deploy.properties is gitignored; each developer maintains their own copy.
//
// Runs automatically after 'publish' via finalizedBy.
// Can also be run standalone with: gradlew deployLocal
// (depends only on 'jar' so it won't trigger a full publish cycle standalone)
// ---------------------------------------------------------------------------
def deployProps = new Properties()
def deployFile = rootProject.file('deploy.properties')
if (deployFile.exists()) {
deployFile.withInputStream { deployProps.load(it) }
}

tasks.register('deployLocal') {
description = 'Copies build jar to all destinations in deploy.properties'
group = 'distribution'
dependsOn 'jar'

def jarFile = layout.buildDirectory.file("libs/${base.archivesName.get()}-${version}.jar")

def destinations = deployProps.getProperty('destinations', '')
.split(',')
.collect { it.trim() }
.findAll { it }

onlyIf { !destinations.isEmpty() }

// doLast avoids configuration cache errors from project.copy() references
doLast {
def source = jarFile.get().asFile
destinations.each { dest ->
def destDir = new File(dest)
destDir.mkdirs()
java.nio.file.Files.copy(
source.toPath(),
new File(destDir, source.name).toPath(),
java.nio.file.StandardCopyOption.REPLACE_EXISTING
)
logger.lifecycle("Deployed ${source.name} -> ${dest}")
}
}
}

tasks.named('publish') {
finalizedBy 'deployLocal'
}
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.2.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
37 changes: 22 additions & 15 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 14 additions & 12 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions mod.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

mod_version=1.0.0-SNAPSHOT

mod_id=flib
mod_license=MIT
mod_authors=Lothrazar
mod_description=mod
mod_name=FutureLibrary
mod_group_id=com.lothrazar.library
curse_slug=flib
curse_id=661261
Loading
Loading