Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.21.1] Cumulus Compatibility Example #2308

Draft
wants to merge 3 commits into
base: 1.21.x
Choose a base branch
from
Draft
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
// Version List: https://projects.neoforged.net/neoforged/ModDevGradle
id 'net.neoforged.moddev' version "${mdg_version}"
id "com.dorongold.task-tree" version "4.0.0"
id 'io.github.0ffz.github-packages' version '[1,2)'
}

def secrets = new Properties()
Expand Down Expand Up @@ -147,6 +148,7 @@ repositories {
includeGroup "curse.maven"
}
}
maven githubPackage.invoke("The-Aether-Team/Cumulus")
}

dependencies {
Expand All @@ -159,6 +161,7 @@ dependencies {
// 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 "com.aetherteam.cumulus:cumulus_menus:${project.cumulus_version}"

// theillusivec4
// implementation "top.theillusivec4.curios:curios-neoforge:${project.curios_version}+${project.base_minecraft_version}"
Expand All @@ -179,6 +182,8 @@ dependencies {
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.10.3'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.10.3'
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '5.12.0'

// implementation fileTree(dir: 'libs', include: '*.jar')
}

configurations.testImplementation {
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ jei_version=19.8.2.99
rei_version=16.0.744
emi_version=1.1.11
curios_version=9.0.5
top_version=1.21_neo-12.0.3-5
top_version=1.21_neo-12.0.3-5
cumulus_version=1.21.3-2.0.0-neoforge
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 1.21.1 2024-09-29T13:06:16.2225603 Languages: en_us for mod: twilightforest
3359d21ffe53e8483ca6b28f2ac99fa87e0a2a6a assets/twilightforest/lang/en_ud.json
25f41bf24d71fff78c740d89f8f199850f0e539d assets/twilightforest/lang/en_us.json
// 1.21.1 2024-11-30T21:22:12.5079017 Languages: en_us for mod: twilightforest
89d43d4e41a688eddf848dd6d840fc9e5efad177 assets/twilightforest/lang/en_ud.json
28a5be4f16c8a203d04179cc9317dddee7c95026 assets/twilightforest/lang/en_us.json
bbbd252baa65057cac7aee7c411bd4a3ba6a8cc2 assets/twilightforest/tips/anvil_squashing.json
1847d9d9f397462f50271efcfc70684c2d413dca assets/twilightforest/tips/arctic_armor.json
36bde1f293696f4253bed0a224e7a1bb3abc3f9a assets/twilightforest/tips/banister_shape.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1726,6 +1726,7 @@
"twilightforest.configuration.section.twilightforest.common.toml": "sᵷuᴉʇʇǝS uoɯɯoƆ",
"twilightforest.configuration.section.twilightforest.common.toml.title": "sᵷuᴉʇʇǝS uoɯɯoƆ",
"twilightforest.configuration.title": "ᵷᴉɟuoƆ ʇsǝɹoℲ ʇɥᵷᴉꞁᴉʍ⟘",
"twilightforest.menu_title.twilight_forest": "ʇsǝɹoℲ ʇɥᵷᴉꞁᴉʍ⟘",
"twilightforest.tips.anvil_squashing": "˙sꞁᴉʌuⱯ ʎq pǝɥsɐnbs ǝq uɐɔ sᵷnᗺ",
"twilightforest.tips.arctic_armor": "˙ɹoꞁoɔ ʎuɐ pǝʎp ǝq uɐɔ ɹoɯɹⱯ ɔᴉʇɔɹⱯ",
"twilightforest.tips.banister_shape": "˙ʇɥᵷᴉǝɥ ɹᴉǝɥʇ ǝᵷuɐɥɔ oʇ ǝxɐ uɐ ɥʇᴉʍ pǝʞɔᴉꞁɔ-ʇɥᵷᴉɹ ǝq uɐɔ sɹǝʇsᴉuɐᗺ",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1726,6 +1726,7 @@
"twilightforest.configuration.section.twilightforest.common.toml": "Common Settings",
"twilightforest.configuration.section.twilightforest.common.toml.title": "Common Settings",
"twilightforest.configuration.title": "Twilight Forest Config",
"twilightforest.menu_title.twilight_forest": "Twilight Forest",
"twilightforest.tips.anvil_squashing": "Bugs can be squashed by Anvils.",
"twilightforest.tips.arctic_armor": "Arctic Armor can be dyed any color.",
"twilightforest.tips.banister_shape": "Banisters can be right-clicked with an axe to change their height.",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package twilightforest.client;

import net.minecraft.client.gui.screens.TitleScreen;
import net.minecraft.sounds.Music;
import twilightforest.init.TFSounds;

public class TwilightForestTitleScreen extends TitleScreen {
public static final Music MENU = new Music(TFSounds.MUSIC_DISC_HOME, 20, 600, true);
}
30 changes: 30 additions & 0 deletions src/main/java/twilightforest/compat/CumulusCompat.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package twilightforest.compat;

import com.aetherteam.cumulus.api.CumulusEntrypoint;
import com.aetherteam.cumulus.api.Menu;
import com.aetherteam.cumulus.api.MenuInitializer;
import com.aetherteam.cumulus.api.MenuRegisterCallback;
import net.minecraft.client.renderer.CubeMap;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import twilightforest.TwilightForestMod;
import twilightforest.client.TwilightForestTitleScreen;

@CumulusEntrypoint
public class CumulusCompat implements MenuInitializer {
private static final ResourceLocation TWILIGHT_FOREST_ICON = ResourceLocation.fromNamespaceAndPath(TwilightForestMod.ID, "textures/gui/menu_api/menu_icon_twilight_forest.png");
private static final Component TWILIGHT_FOREST_NAME = Component.translatable("twilightforest.menu_title.twilight_forest");
public static final Menu TWILIGHT_FOREST = new Menu(
TWILIGHT_FOREST_ICON,
TWILIGHT_FOREST_NAME,
new TwilightForestTitleScreen(),
new Menu.Properties()
.music(TwilightForestTitleScreen.MENU)
.panorama(new CubeMap(ResourceLocation.fromNamespaceAndPath(TwilightForestMod.ID, "textures/gui/title/panorama/panorama")))
);

@Override
public void registerMenus(MenuRegisterCallback menuRegisterCallback) {
menuRegisterCallback.registerMenu(ResourceLocation.fromNamespaceAndPath(TwilightForestMod.ID, "twilight_forest"), TWILIGHT_FOREST);
}
}
3 changes: 3 additions & 0 deletions src/main/java/twilightforest/data/LangGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -1089,5 +1089,8 @@ protected void addTranslations() {
this.add("config.twilightforest.multiplayer_fight_adjuster.more_loot", "More Loot");
this.add("config.twilightforest.multiplayer_fight_adjuster.more_health", "More Health");
this.add("config.twilightforest.multiplayer_fight_adjuster.more_loot_and_health", "More Loot & Health");


this.add("twilightforest.menu_title.twilight_forest", "Twilight Forest");
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading