Skip to content

Commit f16f05c

Browse files
committed
Updated the code to latest 0.8.1 mod version + updated/downgraded the code to 1.21.4
2 parents c1d0351 + 1aff004 commit f16f05c

78 files changed

Lines changed: 4352 additions & 2515 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
generated/
44
src/main/generated/
55

6+
src/main/resources/resourcepacks/alternate_wooden_mosaic_recipies/data
7+
src/main/resources/resourcepacks/alternate_wooden_mosaic_recipies/data/*
8+
src/main/resources/resourcepacks/alternate_wooden_mosaic_recipies/data/**
9+
src/main/resources/resourcepacks/alternate_wooden_mosaic_recipies/data/humility-afm/recipes
10+
src/main/resources/resourcepacks/alternate_wooden_mosaic_recipies/data/humility-afm/recipes/*
11+
src/main/resources/resourcepacks/alternate_wooden_mosaic_recipies/data/humility-afm/recipes/**
612

713

814
# Python

README.md

Lines changed: 90 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
## Description
66
This is a simple and small mod that adds some simple decorative blocks such as cabinets (which are fancier types of item frames) as well as some vanilla block variations.
77
<br>
8-
It specializes in procedurally generating variants of the same block so that you can always find the look you were searching for.
8+
It specialises in procedurally generating variants of the same block so that you can always find the look you were searching for.
99

1010
### Download
11-
The only official downloads are from [**Modrinth**](https://modrinth.com/mod/humility-afm/versions) and [Github](https://github.com/MikiP98/HumilityAFM)
11+
The only official downloads are from [**Modrinth**](https://modrinth.com/mod/humility-afm/versions) and [GitHub](https://github.com/MikiP98/HumilityAFM)
1212
I can't ensure any other downloads are safe and don't include viruses
1313
PLS download the mod from Modrinth if you can
1414

@@ -84,64 +84,66 @@ Lighten up your builds with unobtrusive light source
8484

8585
## Roadmap:
8686

87-
### Done in the development version:
88-
89-
- ~~Fix long block breaking caused by mining tag failure when not all features are enabled~~
90-
- ~~Add Standing Candlestick variants~~
91-
- ~~Add floor and ceiling variants of the cabinets~~
92-
- ~~Convert all the Python code to Java Fabric Datagen~~
93-
- ~~Restructure the code a bit *(e.g. dedicated registry files)*~~
94-
- ~~Add `Fully resourcepack compatible!` to the `Features` section in the readme~~
95-
- ~~Compress candlesticks into 4 items for each metal type~~
96-
- ~~Move VoxelShapes from switches to maps or variables~~
97-
- ~~Fix Light Strips loosing their Block Entity~~
98-
- ~~Fix Light Strip brightening breaking on corner pieces~~
99-
- ~~Fix Light Strip voxel shape~~
100-
- ~~Fix candlestick waterlog ability~~
101-
- ~~Improve Cabinet rendering~~
102-
- ~~Improve config logic~~
103-
- ~~Fix Cabinet open and close models not matching and cabinet inside texture stretch~~
104-
- ~~De-separate the particle texture from the block texture in cabinets and others~~
105-
- ~~Make Redstone Jack o'Lanterns to turn off when powered~~
106-
- ~~Make Soul Jack o'Lanterns special in some way (for now particles)~~
107-
- ~~Port to newer MC versions:~~
108-
- ~~1.20.4~~
109-
- ~~1.20.6~~
110-
- ~~1.21.1~~
111-
- ~~Add coloured torches:~~
112-
- ~~`LED powder` into `Glowing powder`~~
113-
- ~~1 powder - weak torch; 2 powders - torch; 3 powders - strong torch~~
114-
- ~~Move LEDs to misc tab, alongside the powders~~
115-
- ~~Rename LEDs to light strips, consider enabling them by default?~~
116-
- ~~Make coloured Jack o'Lanterns~~
117-
- ~~Finish coloured torches and jack o'Lanterns textures~~
118-
- ~~Fix built-in cabinet resourcepacks~~
87+
### Done:
88+
89+
- Add special built-in mod support for:
90+
- BetterNether
91+
- BetterEnd
92+
- Biomes o' Plenty
93+
- Fix nether wood block variants burning
94+
- Move duplicated code to Interfaces (candlesticks)
95+
- Reworked the whole block generation system
96+
- Add an optional datapack with alternate, non crafting-table colliding, wooden mosaic recipes
97+
- This datapack will be disabled by default on MC versions from 1.20.1 (included) to 1.21.4 (excluded)
98+
- From 1.21.4 onwards, the datapack will be enabled by default because of `polymorph` mod's absence
11999

120100
### High priority:
121101

122-
- Rethink the README structure
123102
- Redo the window capture screenshots or at least crop the window app bar
124-
- Fix Cabinet breaking animation being invisible:
103+
- Fix Cabinet breaking animation being invisible
125104
- Make sure all other breaking animations are also visible
126-
127-
128-
### Medium priority:
129-
130105
- Finish built-in jack o'Lantern rp compat resourcepack
131106
- Finish built-in coloured torches rp compat resourcepack
132-
- Improve the speciality of Soul Jack o'Lantern :/
133107
- Add 'Shimmer' and 'Bliss' support for all the blocks from coloured feature set:
134108
- Coloured Torches
135109
- Coloured Jack o'Lanterns
136110
- Light Strips
111+
- Add Illuminated Cabinet Brightening to the config
112+
- Add PBR data to:
113+
- Cabinet front texture:
114+
- LabPBR specular (pixels only)
115+
- Optional resourcepacks for:
116+
- LabPBR specular (full texture)
117+
- Jack o'Lanterns textures:
118+
- vanilla emission (coloured face only)
119+
- LabPBR emission (coloured face only)
120+
- Optional resourcepacks for:
121+
- vanilla emission (full texture)
122+
- LabPBR emission (full texture)
123+
- Redo coloured torch textures using the Jack o'Lantern palette system
124+
- Reduce the number of coloured torches and jack o'Lanterns
125+
- Think of a system that can replace the current 3 blocks per colour with different light output levels
126+
- Improve the built-in mod support for:
127+
- BetterNether
128+
- BetterEnd
129+
- Biomes o' Plenty
130+
- Add stone variants from the above mods, and fix the missing wood variants
131+
- Add special built-in mod support for:
132+
- DivineRPG
133+
- Couple other mods with custom wood types
134+
- Move duplicated code to Interfaces (cabinet block entity renderers)
135+
136+
### Medium priority:
137+
138+
- Improve the speciality of Soul Jack o'Lantern :/
139+
- Make them work as bookshelves for enchanting?
140+
- Make them boost monster spawners?
141+
- Make them scare away Endermen or other mobs?
137142
- Add Fancy carpets
138143
- Add hanging pots
139144
- Add hanging candlesticks
140145
- Add more candlestick variants:
141146
- small, medium, large, etc.
142-
- Re-add Better Nether built-in support
143-
- Add Better End built-in support
144-
- Add Biomes o' Plenty built-in support
145147
- Add correct map colours to generated blocks:
146148
- Cabinets and Illuminated Cabinets
147149
- Candlesticks
@@ -153,27 +155,14 @@ Lighten up your builds with unobtrusive light source
153155
- Forced Corner Stairs
154156
- Rethink cabinet opening, item insertion and removal, and such
155157
- Add the ability to rotate items displayed in the cabinets
156-
- Fix nether wood block variants burning
157-
- Add Illuminated Cabinet Brightening to the config
158-
- Port to newer MC versions:
159-
- 1.21.4 *(need to wait for 'polymorph')*
160158
- Expand Light Stips:
161159
- Vertical mount
162160
- Fit multiple Light Strips in 1 block
163161
- Make coloured flame particles for coloured torches
164-
- Add PBR data to:
165-
- Cabinet front texture:
166-
- LabPBR specular (pixels only)
167-
- Optional resourcepacks for:
168-
- LabPBR specular (full texture)
169-
- Jack o'Lanterns textures:
170-
- vanilla emission (coloured face only)
171-
- LabPBR emission (coloured face only)
172-
- Optional resourcepacks for:
173-
- vanilla emission (full texture)
174-
- LabPBR emission (full texture)
175-
- Redo coloured torch textures using Jack o'Lantern palette system
176-
162+
- Improve the sounds by varying the pitch and volume slightly
163+
- Optimise the model datagen
164+
- Convert the config from JSON to TOML
165+
- Consider making Polymorph an optional dependency, now with the alternative wooden mosaic recipie datapack it is no longer needed, that said people might still be confused if they didn't have either enabled/installed
177166

178167
### Low/unknown priority:
179168

@@ -182,8 +171,6 @@ Lighten up your builds with unobtrusive light source
182171
- Add carpet covered stairs?
183172
- Server feature sync?
184173
- If done through a datapack, the blocks can be enabled by default on the client?
185-
- Port to newer MC versions:
186-
- 1.21.5? *(need to wait for 'polymorph')*
187174
- Backport to older MC versions?:
188175
- 1.19.2?
189176
- 1.18.2?
@@ -193,14 +180,10 @@ Lighten up your builds with unobtrusive light source
193180
- 1.7.10?
194181
- 1.0?
195182
- Add crafting table on a stick?:
196-
- If the right-clicked block has a recipie that requires only itself and output only 1 other block, it will replace the right-clicked block with the output block from that recipe
183+
- If the right-clicked block has a recipe that requires only itself and outputs only one other block, it will replace the right-clicked block with the output block from that recipe
197184
- Add variant choosing block?:
198185
- A GUI block that will show all the variants that can be crafted in the crafting table following the *crafting table on a stick* logic, and it will allow you to choose the variant you want to craft
199-
- Should be really useful for candlesticks if they would get a lot of variants
200-
- Make Light Strips and Candlesticks into integrated datapacks?:
201-
- Because of new tag system, the vanilla tool tags should no longer break, so at most this will fix the console spam with disabled features
202-
- Make BetterNether and BetterEnd support into integrated datapacks?
203-
- Because of new tag system, the vanilla tool tags should no longer break, so at most this will fix the console spam with disabled features
186+
- It Should be really useful for candlesticks if they get a lot of variants
204187
- Consider doing a HumilityLib library mod for config or such?
205188
- Improve Illuminated Cabinet Brightening rendering?
206189
- Add thin <sup>*(Blibiocraft style)*</sup> and short cabinets?
@@ -215,9 +198,9 @@ Lighten up your builds with unobtrusive light source
215198
**A:** Depends, I'm interested in supporting multiple MC versions, but can't support all of them.
216199
If you want support for specific MC version pls create an [issue on GitHub](https://github.com/MikiP98/HumilityAFM/issues)
217200

218-
**Q:** Can you port to mod to forge?
201+
**Q:** Can you port to mod to forge?
219202
**A:** I wanted this to be a forge mod, but I just could get even the empty template to work and I gave up.
220-
I'm not planing on porting the mod myself, but if you are interested in porting it yourself, you can, pls let me know of such projects on Github :)
203+
I'm not planing on porting the mod myself, but if you are interested in porting it yourself, you can, pls let me know of such projects on GitHub :)
221204
You can also use the mod [Kilt](https://github.com/KiltMC/Kilt) to run forge mods on fabric
222205

223206
**Q:** Why don’t I see *Light Strips* / *Coloured Torches* / *Coloured Jack o'Lanterns* in my game?
@@ -226,8 +209,8 @@ You can also use the mod [Kilt](https://github.com/KiltMC/Kilt) to run forge mod
226209
**Q:** Why don’t my *Light Strips* / *Coloured Torches* / *Coloured Jack o'Lanterns* emit coloured light?
227210
**A:** For coloured lighting you need a separate compatible mod or shader. For now this includes [**Bliss** shader](https://github.com/MikiP98/Bliss-Shader) and [**Shimmer** mod](https://modrinth.com/mod/shimmer!)
228211
If the light sources still don't emmit coloured light:
229-
When using Shimmer mod, there is probably some mod incompatibility. Try disabling the 'NVIDIUM' mod if present and it should start working again, if 'NVIDIUM' is not the causem try asking in Shimmer DC server for help
230-
When using Bliss shader, make sure to load it via [Iris](https://modrinth.com/mod/iris) or [Oculus](https://modrinth.com/mod/oculus) and __***not***__ using **Optifine**! Then make sure floodfill option is enabled in the shader settings
212+
When using **Shimmer** mod, there is probably some mod incompatibility. Try disabling the 'NVIDIUM' mod if present and it should start working again, if 'NVIDIUM' is not the cause try asking in Shimmer DC server for help
213+
When using **Bliss** shader, make sure to load it via [Iris](https://modrinth.com/mod/iris) or [Oculus](https://modrinth.com/mod/oculus) and __***not***__ using **Optifine**! Then make sure floodfill option is enabled in the shader settings
231214

232215
**Q:** Why is the inside of Cabinets transparent?
233216
**A:** Sodium <0.6.0 has issues with rendering transparency. You can try replacing it with Embeddium or installing other mods, like NVIDIUM, may help fix the problem. If that doesn't help, you can disable partial Cabinet transparency in the configuration (you will still be able to see the items inside)
@@ -238,4 +221,38 @@ You can also use the mod [Kilt](https://github.com/KiltMC/Kilt) to run forge mod
238221
<br>
239222

240223

224+
## Versioning:
225+
226+
### `{major}.{minor}.{patch}.{mc_version_specific_patch}`
227+
- `major` - Big changes, possibly breaking backward compatibility
228+
- `minor` - New features, but backward compatible
229+
- `patch` - Bug fixes, optimizations, small changes
230+
- `mc_version_specific_patch` - Patches (see above) exclusive to specific to a Minecraft version release
231+
232+
Note that features marked as *beta* may change or be removed even in minor updates,
233+
breaking their backward compatibility
234+
235+
<br>
236+
237+
238+
## Building instructions:
239+
240+
1. Download the source code from [GitHub](https://github.com/MikiP98/HumilityAFM)
241+
2. Download the dependent mods for datagen and put them under `./build/datagen/mods/`
242+
- [**Better End**](https://modrinth.com/mod/betterend)
243+
- [**Better Nether**](https://modrinth.com/mod/betternether)
244+
- [**Biomes o' Plenty**](https://modrinth.com/mod/biomes-o-plenty)
245+
- *Dependencies of the above mods*
246+
3. Run command `./gradlew runDatagen` or `gradlew runDatagen` in the terminal
247+
- When the command fails, enable `datagenMode` in the config file under `./build/datagen/config/humility-afm.json`
248+
4. Move the content *(the inside of the folder)* of `src/main/generated/data/humility-afm/recipies/datapack` to `src/main/resources/resourcepacks/alternate_wooden_mosaics_recipes/data/humility-afm/recipies/`
249+
5. Move the content *(the inside of the folder)* of `src/main/generated/data/humility-afm/advancements/recipes/misc/datapack` to `src/main/resources/resourcepacks/alternate_wooden_mosaics_recipes/data/humility-afm/advancements/recipes/misc/`
250+
6. Run command `./gradlew build` or `gradlew build` in the terminal
251+
7. The compiled mod jar should be located in `./build/libs/` folder
252+
253+
[//]: # (TODO: Create a script to automate the above steps, or at least step 4)
254+
255+
<br>
256+
257+
241258
*Checkout my [other mods](https://modrinth.com/user/Miki-Liki) :)*

build.gradle

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
id 'maven-publish'
44
}
55

6-
version = project.mod_version
6+
version = "${project.mod_version}-mc${project.minecraft_version}"
77
group = project.maven_group
88

99
base {
@@ -32,11 +32,11 @@ repositories {
3232
}
3333
}
3434

35-
// Required for 'polymorph'
36-
maven {
37-
name = 'Ladysnake Mods'
38-
url = 'https://maven.ladysnake.org/releases'
39-
}
35+
// Required for 'polymorph' (see 'dependencies' to know why commented out)
36+
// maven {
37+
// name = 'Ladysnake Mods'
38+
// url = 'https://maven.ladysnake.org/releases'
39+
// }
4040
}
4141

4242
loom {
@@ -51,12 +51,16 @@ loom {
5151
}
5252

5353
fabricApi {
54-
configureDataGeneration {
54+
configureDataGeneration() {
5555
client = true
5656
}
5757
}
5858

5959
dependencies {
60+
// Lombok for annotations like @Getter, @Setter, etc.
61+
compileOnly 'org.projectlombok:lombok:1.18.32'
62+
annotationProcessor 'org.projectlombok:lombok:1.18.32'
63+
6064
// To change the versions see the gradle.properties file
6165
minecraft "com.mojang:minecraft:${project.minecraft_version}"
6266
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
@@ -100,7 +104,7 @@ java {
100104
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
101105
// if it is present.
102106
// If you remove this line, sources will not be generated.
103-
withSourcesJar()
107+
// withSourcesJar()
104108

105109
sourceCompatibility = JavaVersion.VERSION_21
106110
targetCompatibility = JavaVersion.VERSION_21

gradle.properties

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@ org.gradle.parallel=true
44

55
# Fabric Properties
66
# check these on https://fabricmc.net/develop
7-
minecraft_version=1.21.6
8-
yarn_mappings=1.21.6+build.1
9-
loader_version=0.16.14
10-
loom_version=1.10-SNAPSHOT
11-
# TODO: Update to look 1.11-SNAPSHOT
7+
minecraft_version=1.21.4
8+
yarn_mappings=1.21.4+build.8
9+
loader_version=0.17.2
10+
loom_version=1.11-SNAPSHOT
1211

1312
# Mod Properties
14-
mod_version=0.7.0
13+
mod_version=0.8.1
1514
maven_group=io.github.mikip98.humilityafm
1615
archives_base_name=humility-afm
1716

1817
# Dependencies
19-
fabric_version=0.128.2+1.21.6
20-
config2_version=19.0.147
21-
modmenu_version=15.0.0-beta.3
18+
fabric_version=0.119.2+1.21.4
19+
config2_version=17.0.144
20+
modmenu_version=13.0.3
2221

2322
# As of now, Polymorph has not updated past 1.21.1
2423
## Polymorph runtime

gradle/wrapper/gradle-wrapper.jar

181 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)