Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
243 commits
Select commit Hold shift + click to select a range
b2b67db
Revert "Rotate textures of magic leaves; fix #2278"
Sleepy-Horse Oct 15, 2024
0191343
Rotate the textures of magic leaves using blockStates
Sleepy-Horse Oct 15, 2024
9049400
Use ConfiguredModel with SimpleBlock instead of getMultipartBuilder
Sleepy-Horse Oct 16, 2024
c8fdeef
Change the direction of timeLeaves to clockwise
Sleepy-Horse Oct 16, 2024
d527927
setup gradle for 1.21.2
GizmoTheMoonPig Oct 22, 2024
7aeb1af
blocks ported
GizmoTheMoonPig Oct 22, 2024
5d2d322
block entities and commands
GizmoTheMoonPig Oct 22, 2024
da781c8
screen things and uncrafting
GizmoTheMoonPig Oct 22, 2024
8026fe0
finish model porting, renderers still need to be done
GizmoTheMoonPig Oct 22, 2024
1a06f5c
get about half the renderers done
GizmoTheMoonPig Oct 23, 2024
5e6f530
Fix magic leaves rotation correctly
Sleepy-Horse Oct 23, 2024
cdf586c
Merge remote-tracking branch 'origin/1.21.x' into 1.21.x
Sleepy-Horse Oct 23, 2024
b244cb8
Revert "Fix magic leaves rotation correctly"
Sleepy-Horse Oct 23, 2024
120e277
Revert "Change the direction of timeLeaves to clockwise"
Sleepy-Horse Oct 23, 2024
7b1b796
Revert "Use ConfiguredModel with SimpleBlock instead of getMultipartB…
Sleepy-Horse Oct 23, 2024
34d415b
Revert "Rotate the textures of magic leaves using blockStates"
Sleepy-Horse Oct 23, 2024
29aa918
Reapply "Rotate textures of magic leaves; fix #2278"
Sleepy-Horse Oct 23, 2024
8aa7bf2
finish renderers
GizmoTheMoonPig Oct 23, 2024
b7dc96f
entity classes fixed
GizmoTheMoonPig Oct 24, 2024
3885e34
port sky code, fix ATs, fix asm generics, remove armor color asm
GizmoTheMoonPig Oct 24, 2024
e7240bf
fix weather renderer and baked models
GizmoTheMoonPig Oct 24, 2024
98747ed
port blocks, items, and recipe datagen (I LOVE REGEX)
GizmoTheMoonPig Oct 26, 2024
b1f2be2
some more porting stuff, 65 errors remain
GizmoTheMoonPig Oct 27, 2024
b5db117
correct damage sources, use hurtServer instead of hurt
GizmoTheMoonPig Oct 27, 2024
edebbbd
Shader fixes
Drullkus Oct 27, 2024
78d066e
Sure, fixed this too
Drullkus Oct 27, 2024
12ffb59
port layers
jodlodi Dec 1, 2024
27a8ec4
deferred egg items are no more
jodlodi Dec 1, 2024
5aabf65
port uncrafting recipe
jodlodi Dec 1, 2024
f71a215
maybe port block and chain?
jodlodi Dec 1, 2024
bb16f95
port uncraftingTable???? I hope shit is serverside
jodlodi Dec 1, 2024
d162b38
port MultiplayerBasedAdditionLootFunction
jodlodi Dec 1, 2024
b01047d
client level no longer has gamerules :(
jodlodi Dec 3, 2024
98f3d6b
other bus
jodlodi Dec 3, 2024
5c7eb9e
block behavior to supplier
jodlodi Dec 3, 2024
1d56be3
item properties to supplier
jodlodi Dec 3, 2024
362dfb1
correct entity egg
jodlodi Dec 3, 2024
dbb4ed7
what the fuck is a type token
jodlodi Dec 3, 2024
a4d451e
port quest ram model, fiery armor model and rising zombie model
jodlodi Dec 3, 2024
5a69777
Lazy evaluate compiler flags
Tamaized Dec 5, 2024
81cbe7e
Merge both JavaCompiler blocks
Tamaized Dec 5, 2024
362c442
`src/generated/** linguist-generated`
Tamaized Dec 10, 2024
ad1f972
Merge branch '1.21.1' into 1.21.x
GizmoTheMoonPig Jan 7, 2025
6df86e8
fix more things, maps and boat textures remain
GizmoTheMoonPig Jan 7, 2025
f970b09
fix last compile errors, get game to running state
GizmoTheMoonPig Jan 8, 2025
d753495
fix and run datagen
GizmoTheMoonPig Jan 8, 2025
58d93da
uh oh! 1.21.4 time!
GizmoTheMoonPig Jan 9, 2025
e58b40b
down to 23 errors
GizmoTheMoonPig Jan 9, 2025
e11d0c2
fix last compile errors, begin model rewrite
GizmoTheMoonPig Jan 18, 2025
123ccec
begin block models, fix some texture names for later
GizmoTheMoonPig Feb 3, 2025
c392669
Modify Giant Item attributes to use EquipmentSlotGroup.MAINHAND inste…
catboybinary Mar 20, 2025
1bf8966
New Crowdin updates (#2292)
Team-Twilight-Crowdin Mar 30, 2025
9a350c5
Merge branch '1.21.1' into 1.21.x
GizmoTheMoonPig Mar 31, 2025
8fb6a3a
fix remaining compile errors
GizmoTheMoonPig Mar 31, 2025
d875197
game now runs, run and fix some datagen
GizmoTheMoonPig Mar 31, 2025
1a08ad9
some block work
GizmoTheMoonPig Mar 31, 2025
0f01ca0
Port thorn block model generation
jodlodi Mar 31, 2025
ab872f3
Update Beanification
Tamaized Apr 1, 2025
3f2e061
Fix tests
Tamaized Apr 1, 2025
80ebe99
Split datagen source set, and a bunch of clinit classloading errors, …
Tamaized Apr 1, 2025
94b89a4
Oh we had the package wrong, everything works now
Tamaized Apr 1, 2025
aca47dc
Fix Jigsaw crash
Drullkus Apr 1, 2025
586fcf1
Convergent Evolution strikes again
Drullkus Apr 1, 2025
c59b6f0
+2 other changes for the last commit
Drullkus Apr 1, 2025
dbca7d9
Remove static accessors from StructureTemplateDefinitions
Drullkus Apr 1, 2025
fdbfe1e
StructureTemplateDefinitionsTest
Drullkus Apr 1, 2025
8f42ed5
Fix tests
Tamaized Apr 1, 2025
3a87cc3
finish splitting datagen
GizmoTheMoonPig Apr 1, 2025
5076be2
disable build announcements for now
GizmoTheMoonPig Apr 1, 2025
55cc5f0
special renderers and eggs done
GizmoTheMoonPig Apr 4, 2025
0d4cb0e
Pull gradle changes from 1.21.1
Tamaized Apr 4, 2025
68cfd60
fix animal crashes and variant issues
GizmoTheMoonPig Apr 4, 2025
9ea01b6
quick push of all item models ive done so far
GizmoTheMoonPig Apr 4, 2025
eeccbdb
god dammit
GizmoTheMoonPig Apr 4, 2025
bd23588
finish the equipment tab
GizmoTheMoonPig Apr 4, 2025
639c82c
datagen push
GizmoTheMoonPig Apr 4, 2025
abe22dc
items! (plus fix doors and darkwood)
GizmoTheMoonPig Apr 5, 2025
c2c566c
datagen push
GizmoTheMoonPig Apr 5, 2025
5f6a375
Thorn rose port
jodlodi Apr 5, 2025
1bdaa0c
gen
jodlodi Apr 5, 2025
3783c43
Naga stone wip
jodlodi Apr 5, 2025
76d8c5f
gen
jodlodi Apr 5, 2025
0a2a42f
Nagastone pillar and etched nagastone
jodlodi Apr 5, 2025
1b8d8a0
gen
jodlodi Apr 5, 2025
4e56d37
End of nagastone
jodlodi Apr 5, 2025
2583651
gen
jodlodi Apr 5, 2025
09b75d0
Spiral bricks, twisted stone, bold stone & pillar
jodlodi Apr 5, 2025
43520a1
gen
jodlodi Apr 5, 2025
8ed5cf7
exclude cache and flatten jsons on build, fix tests
GizmoTheMoonPig Apr 6, 2025
eb75202
Fix configuration cache
Tamaized Apr 6, 2025
3a659dd
rotate the naga head correctly
jodlodi Apr 6, 2025
8bc93a9
She terror on my cotta till I..
jodlodi Apr 6, 2025
32ef988
gen
jodlodi Apr 6, 2025
dcb6b97
WOOD
GizmoTheMoonPig Apr 7, 2025
f9eea90
fix up existing block models
GizmoTheMoonPig Apr 7, 2025
7d201b0
datagen push
GizmoTheMoonPig Apr 7, 2025
d7ff5b0
finish wood blocks, add pale oak blocks
GizmoTheMoonPig Apr 7, 2025
3a49724
datagen push
GizmoTheMoonPig Apr 7, 2025
99d3f58
mazestone and underbrick
GizmoTheMoonPig Apr 7, 2025
bc4168a
datagen push
GizmoTheMoonPig Apr 7, 2025
0b4903f
castle block work
GizmoTheMoonPig Apr 7, 2025
b20201f
datagen push
GizmoTheMoonPig Apr 7, 2025
9ce78bb
trophy pedestal
GizmoTheMoonPig Apr 8, 2025
a10b36b
datagen push
GizmoTheMoonPig Apr 8, 2025
c34ccdf
stronghold shield and towerwood devices
GizmoTheMoonPig Apr 9, 2025
6e72be7
datagen push
GizmoTheMoonPig Apr 9, 2025
e940003
fix up special models
GizmoTheMoonPig Apr 9, 2025
9680feb
finish porting uncrafting table
GizmoTheMoonPig Apr 9, 2025
559506b
giant block, castle door, resource blocks, and uncrafting table models
GizmoTheMoonPig Apr 9, 2025
c481972
datagen push
GizmoTheMoonPig Apr 9, 2025
090dff2
wrought fences, carminite, e115, iron ladder, and rope
GizmoTheMoonPig Apr 9, 2025
f94df97
datagen push
GizmoTheMoonPig Apr 9, 2025
1a36b95
coronation carpet
GizmoTheMoonPig Apr 9, 2025
3c09cea
datagen push
GizmoTheMoonPig Apr 9, 2025
9c474c0
CTM loader now supports custom geometry
GizmoTheMoonPig Apr 10, 2025
cf070d6
highlands and plant blocks
GizmoTheMoonPig Apr 11, 2025
aab6cd4
use vanilla fullbright where possible, clean up forcefield code
GizmoTheMoonPig Apr 11, 2025
0136455
pass more params into baked models
GizmoTheMoonPig Apr 11, 2025
fc2ece2
datagen push
GizmoTheMoonPig Apr 11, 2025
d9b7c30
tint the miniatures
GizmoTheMoonPig Apr 11, 2025
4b091d3
finish last few item models
GizmoTheMoonPig Apr 11, 2025
dcf1db8
datagen push
GizmoTheMoonPig Apr 11, 2025
3e17242
leaf fixes, water plants
GizmoTheMoonPig Apr 11, 2025
3553078
datagen push
GizmoTheMoonPig Apr 11, 2025
52c1b36
item-less blocks, fix particles and patch loops
GizmoTheMoonPig Apr 11, 2025
6d8a4cc
datagen push
GizmoTheMoonPig Apr 11, 2025
bc4b65e
jar block
jodlodi Apr 18, 2025
73b0208
aurora block set
GizmoTheMoonPig Apr 19, 2025
e587002
jar item rendering, add pale oak cork support
GizmoTheMoonPig Apr 19, 2025
43b3bc2
It's that easy
jodlodi Apr 19, 2025
9bdf845
Firefly particle spawner
jodlodi Apr 19, 2025
86b3d93
Gen
jodlodi Apr 19, 2025
2ca4a49
Block&Chain lover has logged in
jodlodi Apr 19, 2025
0375281
fallen leaves, fallen leaves, fallen leaves, on the ground
GizmoTheMoonPig Apr 19, 2025
ce2fbc9
datagen push
GizmoTheMoonPig Apr 19, 2025
f6612d4
every model is now done... finally
GizmoTheMoonPig Apr 19, 2025
5d9574b
datagen push
GizmoTheMoonPig Apr 19, 2025
070e805
fix blockitem names
GizmoTheMoonPig Apr 19, 2025
3b59323
fix projectile weapons
GizmoTheMoonPig Apr 19, 2025
3bcb367
properly check enchants on items
GizmoTheMoonPig Apr 19, 2025
3cd489c
Let me have it
jodlodi Apr 19, 2025
a9ae52f
Fix sheep
jodlodi Apr 19, 2025
545824e
Fix giants
jodlodi Apr 19, 2025
c38edb7
Lich fix
jodlodi Apr 19, 2025
6765dcd
fix maze slime
jodlodi Apr 19, 2025
a638b58
Fix redcap(s)
jodlodi Apr 19, 2025
dc7dd37
fix armor models and emperor's cloth
GizmoTheMoonPig Apr 20, 2025
2d59ea9
remove old enum extensions
GizmoTheMoonPig Apr 20, 2025
a0b952f
fix phantom trophy, fix render state name lol
GizmoTheMoonPig Apr 20, 2025
fc935b7
fix snow guardian renderer
GizmoTheMoonPig Apr 20, 2025
14e0bbc
fix chest missing textures
GizmoTheMoonPig Apr 20, 2025
526f7e0
fix multipart rendering
GizmoTheMoonPig Apr 20, 2025
b255ef4
fix hydra body being invis
GizmoTheMoonPig Apr 20, 2025
901ebbe
fix hint book titles
GizmoTheMoonPig Apr 20, 2025
97a5d5c
fix broken heads
GizmoTheMoonPig Apr 20, 2025
430f5a1
wraith fixes
GizmoTheMoonPig Apr 20, 2025
ad2b133
Fix boss bar rendering somehow changing the color of all text in the …
jodlodi Apr 20, 2025
59d7dbd
Every ASM seems to work 👍
jodlodi Apr 20, 2025
2f8ce4e
Fix candelabras being rotated 180°
jodlodi Apr 20, 2025
aab56f6
Fix paintings
jodlodi Apr 20, 2025
3b57a6e
Is this better, mr Tama?
jodlodi Apr 20, 2025
b80a90b
o
jodlodi Apr 20, 2025
0b645cc
use guigraphics method of rendering bossbars again
GizmoTheMoonPig Apr 21, 2025
769cc94
fix snow queen shield rendering
GizmoTheMoonPig Apr 21, 2025
bd2bbd7
fix boat crash
GizmoTheMoonPig Apr 21, 2025
0745391
fix crumble horn use anim
GizmoTheMoonPig Apr 21, 2025
21dc6b1
fix debug world crashes
GizmoTheMoonPig Apr 21, 2025
e85c459
fix lich hitbox
GizmoTheMoonPig Apr 21, 2025
c1ad69a
Merge branch '1.21.1' into 1.21.x
GizmoTheMoonPig Apr 21, 2025
27f1f88
We dont need this anymore
jodlodi Apr 21, 2025
7813d22
Resolve duplicate source path for module dataForPublishing warning
Tamaized Apr 21, 2025
fd01107
fix hydra necks
GizmoTheMoonPig Apr 21, 2025
467e6cf
tail
GizmoTheMoonPig Apr 21, 2025
e982765
fix cinder wood
GizmoTheMoonPig Apr 21, 2025
7455691
fix brazier
GizmoTheMoonPig Apr 21, 2025
9501985
crying
GizmoTheMoonPig Apr 21, 2025
6fc3d55
Fix twilight oak chest
jodlodi Apr 21, 2025
5b6e6b6
Fix chests
jodlodi Apr 21, 2025
c0ffc2b
partially fix sky rendering
GizmoTheMoonPig Apr 22, 2025
3473676
fix trophies
GizmoTheMoonPig Apr 22, 2025
96daf86
only show arctic tooltip when not dyed
GizmoTheMoonPig Apr 22, 2025
348f884
fix fiery helmet not rendering fullbright
GizmoTheMoonPig Apr 22, 2025
18470d9
fix mist wolf scale and transparency
GizmoTheMoonPig Apr 22, 2025
68d3cef
fix redcap boot offset
GizmoTheMoonPig Apr 22, 2025
8b98c99
fix kobold pogging
GizmoTheMoonPig Apr 22, 2025
3448b77
fix hydra neck position
GizmoTheMoonPig Apr 22, 2025
10dad67
fix ominous fire rendertype
GizmoTheMoonPig Apr 22, 2025
96a97ea
fix block sounds
GizmoTheMoonPig Apr 22, 2025
64ca8ff
boom
jodlodi Apr 23, 2025
1456bd9
Fix maven published jar
Tamaized Apr 25, 2025
b3cd86c
the purge
GizmoTheMoonPig Apr 25, 2025
d998686
dont hardcode limb positions for minoshroom
GizmoTheMoonPig Apr 25, 2025
6094ff0
do the same for the questing ram
GizmoTheMoonPig Apr 25, 2025
7bcdc88
more unhardcoding
GizmoTheMoonPig Apr 26, 2025
9a44424
fix ur-ghast tentacle UVs (broken for 4 years everyone!)
GizmoTheMoonPig Apr 26, 2025
fbfeca1
ok last one I hope
GizmoTheMoonPig Apr 26, 2025
f4bd4ab
clean up forcefield textures, why are there 15???
GizmoTheMoonPig Apr 26, 2025
6fa3db1
datagen push
GizmoTheMoonPig Apr 26, 2025
f590bc2
hmm yes quite cursed
GizmoTheMoonPig Apr 26, 2025
f574558
Port restriction rendering
jodlodi May 1, 2025
ca7c501
better?
jodlodi May 1, 2025
9d5b761
this time for sure
jodlodi May 1, 2025
fa4eadb
Fix crumble horn being weirdly offset
jodlodi May 7, 2025
50182bf
Fix CT models culling faces for no reason
jodlodi May 9, 2025
0c2320f
Dont think this does anything but I didnt mean to change it
jodlodi May 9, 2025
ce45ae8
auto cull faces, clean up CTM logic slightly
GizmoTheMoonPig May 10, 2025
712fae6
Revert "use guigraphics method of rendering bossbars again"
jodlodi May 11, 2025
b0baaec
Revert "We dont need this anymore"
jodlodi May 11, 2025
9628d16
Fix shadow clones not being invisible
jodlodi May 11, 2025
09d4098
Fix force field item models
jodlodi May 11, 2025
f27721d
Copy seed and TP command
jodlodi May 17, 2025
834bb06
Port hydra death animation
jodlodi May 20, 2025
a762a33
Fix lich not putting out fire
jodlodi May 20, 2025
b14ceea
I might be losing my mind but this should work ye?
jodlodi May 23, 2025
04393e3
Boats have names too
jodlodi May 24, 2025
c593c40
Fixed chest boat textures not loading 👽
jodlodi May 24, 2025
9a67204
Uncrafting is a god-given right
jodlodi May 24, 2025
83e237a
Just Enough
jodlodi May 24, 2025
76f0c75
Whoops
jodlodi May 24, 2025
8fe554c
enable discord builds, I think porting is basically done
GizmoTheMoonPig May 26, 2025
7a1b58f
fix crumble horn display and shapeless uncrafting
GizmoTheMoonPig May 26, 2025
552be26
fix #2404, fix #2405
GizmoTheMoonPig May 26, 2025
b757ec7
fix #2409, add skulls back to creative tab
GizmoTheMoonPig May 26, 2025
a639e87
fix #2410
GizmoTheMoonPig May 26, 2025
732746c
I may be stupid
GizmoTheMoonPig May 26, 2025
eff069f
fix #2406, fix initial neck positions
GizmoTheMoonPig May 26, 2025
43b4373
fix hydra jaw rotations
GizmoTheMoonPig May 26, 2025
7e284dd
gross workaround to fix #2407
GizmoTheMoonPig May 26, 2025
5ec5930
Fix #2428
Andromander Jun 8, 2025
921c26d
Fix #2427 and #2432
Andromander Jun 9, 2025
2854c36
Set projectile position, fixes #2421, fixes #2422
Andromander Jun 9, 2025
30b1065
fix #2448
GizmoTheMoonPig Jul 9, 2025
ab660fb
check cancellation too
GizmoTheMoonPig Jul 9, 2025
93cf5fa
Fix #2399 (#2440)
LShiftLess Aug 23, 2025
44c2d56
Prevent crash when placing TrollsteinnBlock on dedicated server (#2484)
sbite0138 Oct 24, 2025
84fe67f
Check if StructureStart is valid to avoid potential crashes when it h…
crabsatellite Feb 12, 2026
5b32f04
Add check to see if candle exists in CANDLE_MAP (#2563)
NarrikSynthfox Feb 17, 2026
83bc141
Fix Minotaur axe spawning and rendering on 1.21.4 (#2415)
albazavr-alba Jun 2, 2026
a437b0a
Removed some extra imports
albazavr-alba Jun 2, 2026
89725eb
Fix Hydra extra heads invisibility on player respawn (#2434)
albazavr-alba Jun 4, 2026
c186b5b
Fix Frosted effect ice cubes rendering on 1.21.x (#2419)
albazavr-alba Jun 4, 2026
b93b78a
Fix Unstable Ice Core death animation scaling on 1.21.4 (#2416)
albazavr-alba Jun 4, 2026
581828c
Fix Twilight Lich rendering height and entity dimensions on 1.21.4 (#…
albazavr-alba Jun 4, 2026
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
109 changes: 85 additions & 24 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
import net.neoforged.moddevgradle.internal.RunGameTask

buildscript {
Expand Down Expand Up @@ -33,11 +35,11 @@ configurations {
}

shadowJar {
archiveClassifier.set('universal')
dependsOn(tasks.named("jar"))
afterEvaluate {
from({ tasks.named("jar").get().outputs })
}
archiveClassifier.set('universal')
configurations = [project.configurations.shade]
relocate 'tamaized.beanification', "${project.mod_id}.beanification"
}
Expand Down Expand Up @@ -92,6 +94,23 @@ subprojects {
version = project(":").version
}

sourceSets {
data {
compileClasspath += main.compileClasspath + main.output

java {
srcDirs = ['src/main/java', 'src/data/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
}

configurations {
dataImplementation.extendsFrom implementation
}

neoForge {
// we need the subprojects to evaluate first so that the sourceSets are properly constructed
evaluationDependsOnChildren()
Expand All @@ -101,6 +120,8 @@ neoForge {

validateAccessTransformers = true

addModdingDependenciesTo sourceSets.data

mods {
"${mod_id}" {
it.sourceSet this.sourceSets.main
Expand All @@ -109,20 +130,29 @@ neoForge {
'tf-asm' {
it.sourceSet project(":tf-asm").sourceSets.main
}

"${mod_id}-data" {
it.sourceSet this.sourceSets.main
it.sourceSet this.sourceSets.data
}
}

def mainMod = mods."${project.mod_id}"
def asmMod = mods."tf-asm"
def dataMod = mods."${project.mod_id}-data"

unitTest {
enable()
testedMod = mainMod
// For whatever reason, tests break if we dont combine all source sets, which the data source set does
testedMod = dataMod
}

runs {
configureEach {
gameDirectory = project.file('run')
systemProperty 'forge.logging.console.level', 'debug'
logLevel = org.slf4j.event.Level.DEBUG
loadedMods = [mainMod, asmMod]
}

client {
Expand All @@ -137,10 +167,12 @@ neoForge {
programArgument '--nogui'
}

data {
data()
clientData {
clientData()
gameDirectory = project.file('run-data')
programArguments.addAll '--mod', mod_id, '--all', '--output', file('src/generated/resources/').getAbsolutePath(), '--existing', file('src/main/resources/').getAbsolutePath()
sourceSet = this.sourceSets.data
loadedMods = [dataMod, asmMod]
}
}
}
Expand All @@ -159,6 +191,13 @@ sourceSets.main.resources { srcDir 'src/generated/resources' }

repositories {
mavenLocal()
maven {
name 'Tama\'s Maven' // Beanification
url 'https://maven.tamaized.com/releases/'
content {
includeGroup("tamaized")
}
}
maven {
name 'Jared\'s Maven' // JEI
url 'https://maven.blamejared.com/'
Expand Down Expand Up @@ -188,13 +227,6 @@ repositories {
includeGroup "curse.maven"
}
}
maven {
name 'Tama\'s Maven' // Beanification
url 'https://maven.tamaized.com/releases/'
content {
includeGroup("tamaized")
}
}
}

dependencies {
Expand All @@ -207,30 +239,30 @@ dependencies {
testCompileOnly "${beanification}:test-sources"

//make sure to only pick one of these when testing (switch others to compileOnly)
implementation "mezz.jei:jei-${project.base_minecraft_version}-neoforge:${project.jei_version}"
compileOnly "me.shedaniel:RoughlyEnoughItems-neoforge:${project.rei_version}"
compileOnly "dev.emi:emi-neoforge:${project.emi_version}+${project.base_minecraft_version}"
implementation "mezz.jei:jei-${project.minecraft_version}-neoforge:${project.jei_version}"
// compileOnly "me.shedaniel:RoughlyEnoughItems-neoforge:${project.rei_version}"
// compileOnly "dev.emi:emi-neoforge:${project.emi_version}+${project.base_minecraft_version}"

// theillusivec4
implementation "top.theillusivec4.curios:curios-neoforge:${project.curios_version}+${project.base_minecraft_version}"
// implementation "top.theillusivec4.curios:curios-neoforge:${project.curios_version}+${project.base_minecraft_version}"

//curse maven
implementation "curse.maven:jade-324717:5529595"
implementation "curse.maven:cosmetic-armor-reworked-237307:5427303"
runtimeOnly "curse.maven:worldedit-225608:5830452"
implementation "curse.maven:jade-324717:6170888"
implementation "curse.maven:cosmetic-armor-reworked-237307:5961480"
// runtimeOnly "curse.maven:jeed-532286:5483315"
// runtimeOnly "curse.maven:museum-curator-859070:4629894"
if (project.enable_tips_mod == 'true') {
runtimeOnly "curse.maven:tips-306549:5844057"
runtimeOnly "curse.maven:bookshelf-228525:6098975"
runtimeOnly "curse.maven:prickle-1023259:5836410"
}
runtimeOnly "curse.maven:suggestion-provider-fix-469647:5598604"
// runtimeOnly "curse.maven:suggestion-provider-fix-469647:5598604"

compileOnly "mcjty.theoneprobe:theoneprobe:${project.top_version}"
// compileOnly "mcjty.theoneprobe:theoneprobe:${project.top_version}"

//mods we dont have compat with but are nice to have
runtimeOnly "com.telepathicgrunt:CommandStructures-Neoforge:4.3.2+1.20.6"
runtimeOnly "com.telepathicgrunt:CommandStructures-Neoforge:4.4.3+1.21.4"
// runtimeOnly "curse.maven:world-edit-225608:6013137"

testImplementation group: 'net.neoforged', name: 'testframework', version: project.neo_version
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.10.3'
Expand Down Expand Up @@ -260,11 +292,20 @@ processResources {
def ver = project.version
filesMatching("META-INF/neoforge.mods.toml") {
expand([
'file' : [
'file': [
'jarVersion': ver
]
])
}
exclude ".cache"
def lazyTree = providers.provider {
fileTree(dir: getOutputs().getFiles().getAsPath(), includes: ["**/*.json", "**/*.mcmeta"])
}
doLast {
lazyTree.get().each {
File file -> file.setText(JsonOutput.toJson(new JsonSlurper().parse(file)))
}
}
}

jar {
Expand All @@ -290,8 +331,10 @@ publishing {
afterEvaluate {
artifact this.project.shadowJar
artifact this.project.sourceJar
artifact this.project.dataJar
artifact this.project.dataSourceJar
}
groupId mavenUser
groupId 'team-twilight'
artifactId this.project.mod_id
}
}
Expand All @@ -312,8 +355,26 @@ tasks.register('sourceJar', Jar) {
archiveClassifier = 'sources'
}

tasks.register('dataClassesForPublishing', JavaCompile) {
dependsOn "dataClasses"
source = fileTree('src/data/java')
classpath = sourceSets.named('data').get().compileClasspath
destinationDirectory = layout.buildDirectory.dir("classes/java/dataForPublishing")
}

tasks.register('dataJar', Jar) {
dependsOn 'dataClassesForPublishing'
from layout.buildDirectory.dir("classes/java/dataForPublishing")
archiveClassifier = 'data'
}

tasks.register('dataSourceJar', Jar) {
from sourceSets.data.allSource
archiveClassifier = 'data-sources'
}

tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}

build.dependsOn shadowJar
build.dependsOn shadowJar
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ org.gradle.daemon=false
org.gradle.configuration-cache=true

# Versions can be found at https://parchmentmc.org/docs/getting-started
neoForge.parchment.minecraftVersion=1.21.1
neoForge.parchment.mappingsVersion=2024.11.17
neoForge.parchment.minecraftVersion=1.21.4
neoForge.parchment.mappingsVersion=2025.03.23

# Mod Info
mod_version=4.7
Expand All @@ -13,16 +13,16 @@ group_name=com.github.teamtwilight.twilightforest

# Minecraft
base_minecraft_version=1.21
minecraft_version=1.21.1
minecraft_version=1.21.4

# NeoForge: https://projects.neoforged.net/neoforged/neoforge
neo_version=21.1.83
neo_version=21.4.124
mdg_version=2.0.76

# Deps
beanification_version=1.5.93
jei_version=19.8.2.99
rei_version=16.0.799
beanification_version=1.5.97
jei_version=20.0.0.4
rei_version=18.0.796
emi_version=1.1.11
curios_version=9.0.5
top_version=1.21_neo-12.0.3-5
Expand Down
28 changes: 28 additions & 0 deletions src/data/java/twilightforest/datagen/DataGenerators.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package twilightforest.datagen;

import net.neoforged.bus.api.IEventBus;
import net.neoforged.neoforge.data.event.GatherDataEvent;
import tamaized.beanification.Autowired;
import tamaized.beanification.Component;
import tamaized.beanification.PostConstruct;
import twilightforest.datagen.generator.AssetsGenerator;
import twilightforest.datagen.generator.DataGenerator;

@Component
public class DataGenerators {

@Autowired
private AssetsGenerator assetsGenerator;

@Autowired
private DataGenerator dataGenerator;

@PostConstruct
private void register(IEventBus bus) {
bus.addListener(GatherDataEvent.Client.class, event -> {
this.dataGenerator.generate(event);
this.assetsGenerator.generate(event);
});
}

}
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
package twilightforest.data;
package twilightforest.datagen.assets;

import net.minecraft.client.renderer.texture.atlas.sources.SingleFile;
import net.minecraft.core.HolderLookup;
import net.minecraft.data.PackOutput;
import net.minecraft.resources.ResourceLocation;
import net.neoforged.neoforge.common.data.ExistingFileHelper;
import net.neoforged.neoforge.common.data.SpriteSourceProvider;
import twilightforest.TwilightForestMod;
import twilightforest.client.MagicPaintingTextureManager;
import twilightforest.entity.MagicPaintingVariant;
import twilightforest.init.custom.MagicPaintingVariants;

import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;

public class AtlasGenerator extends SpriteSourceProvider {
public static final Map<ResourceLocation, MagicPaintingVariant> MAGIC_PAINTING_HELPER = new HashMap<>();

public AtlasGenerator(PackOutput output, CompletableFuture<HolderLookup.Provider> provider, ExistingFileHelper helper) {
super(output, provider, TwilightForestMod.ID, helper);
public AtlasGenerator(PackOutput output, CompletableFuture<HolderLookup.Provider> provider) {
super(output, provider, TwilightForestMod.ID);
}

@Override
protected void gather() {
this.atlas(SHIELD_PATTERNS_ATLAS).addSource(new SingleFile(TwilightForestMod.prefix("entity/knightmetal_shield"), Optional.empty()));
this.atlas(MagicPaintingTextureManager.ATLAS_INFO_LOCATION).addSource(new SingleFile(MagicPaintingTextureManager.BACK_SPRITE_LOCATION, Optional.empty()));

MAGIC_PAINTING_HELPER.forEach((location, parallaxVariant) -> {
MagicPaintingVariants.MAGIC_PAINTING_ATLAS_HELPER.forEach((location, parallaxVariant) -> {
location = location.withPrefix(MagicPaintingTextureManager.MAGIC_PAINTING_PATH + "/");
for (MagicPaintingVariant.Layer layer : parallaxVariant.layers()) {
this.atlas(MagicPaintingTextureManager.ATLAS_INFO_LOCATION).addSource(new SingleFile(location.withSuffix("/" + layer.path()), Optional.empty()));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package twilightforest.datagen.assets;

import net.minecraft.client.data.models.EquipmentAssetProvider;
import net.minecraft.client.resources.model.EquipmentClientInfo;
import net.minecraft.data.PackOutput;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.item.equipment.EquipmentAsset;
import twilightforest.init.TFEquipmentAssets;

import java.util.function.BiConsumer;

public class EquipmentAssetsGenerator extends EquipmentAssetProvider {
public EquipmentAssetsGenerator(PackOutput output) {
super(output);
}

@Override
protected void registerModels(BiConsumer<ResourceKey<EquipmentAsset>, EquipmentClientInfo> output) {
TFEquipmentAssets.bootstrap(output);
}
}
Loading