Skip to content

Commit 2c41dc4

Browse files
committed
🍱 yay, changed enderscape end city nbt [vaults]
1 parent 97488dc commit 2c41dc4

File tree

9 files changed

+17
-0
lines changed

9 files changed

+17
-0
lines changed

β€Žsrc/main/kotlin/one/devos/nautical/winterssummerfixes/WintersSummerFixes.ktβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ object WintersSummerFixes : ModInitializer {
2222
val MOD_NAME: String = FMW.getName(MOD_ID)
2323

2424
override fun onInitialize() {
25+
// Despite the fucking name, this actually can load Datapack bullshit as well! As Octal said, `Fabric is just
26+
// bad at naming things most of the time`. ugh. So we're trying to fucking override it as a resource pack
27+
// instead of the data folder in the fucking mod itself because priority i guess? fucking hell lmao
28+
// https://github.com/FabricMC/fabric/tree/1.21.1/fabric-resource-loader-v0/src/testmod/resources/resourcepacks/test2
29+
ResourceManagerHelper.registerBuiltinResourcePack(
30+
ResourceLocation.fromNamespaceAndPath(WintersSummerFixes.MOD_ID, "enderscape"),
31+
FabricLoader.getInstance().getModContainer(WintersSummerFixes.MOD_ID).get(),
32+
Component.literal("Enderscape Data Fixes"),
33+
ResourcePackActivationType.DEFAULT_ENABLED
34+
)
35+
2536
MidnightConfig.init(MOD_ID, Config::class.java)
2637
LOGGER.info("[${MOD_NAME}] Winter's Summer Fixes v${FMW.getVersion(MOD_ID)} loaded!")
2738
LOGGER.info("[${MOD_NAME}] Who let the gay cat furry into the server room? Get them out! Oh wait they have a wrench.")

src/main/resources/data/enderscape/structure/end_city/ship.nbt renamed to src/main/resources/resourcepacks/enderscape/data/enderscape/structure/end_city/ship.nbt

File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"pack": {
3+
"description": "Changes Enderscape structure data",
4+
"pack_format": 48
5+
}
6+
}

0 commit comments

Comments
Β (0)