Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
HamaIndustries committed Nov 29, 2024
1 parent be796dd commit 00562fc
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
package symbolics.division.modfest_credits;

import com.mojang.datafixers.util.Pair;
import net.fabricmc.api.ClientModInitializer;
import net.minecraft.client.gui.screen.CreditsScreen;
import net.minecraft.client.gui.screen.option.CreditsAndAttributionScreen;

import java.util.Comparator;

// tf is this name whatever
public class Modfest_creditsClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
// This entrypoint is suitable for setting up client-specific logic, such as rendering.

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package symbolics.division.modfest_credits.mixin;

import net.minecraft.client.gui.screen.CreditsScreen;
import net.minecraft.util.Identifier;
import org.spongepowered.asm.mixin.Mixin;

@Mixin(CreditsScreen.class)
public class CreditsScreenMixin {
private Identifier CREDITS_TEXT_LOCATION;

// @WrapOperation(
// method = "init",
// at = @At(value = "FIELD", target = "Lnet/minecraft/client/gui/screen/CreditsScreen;CREDITS_TEXT_LOCATION:Lnet/minecraft/util/Identifier;")
// )
// public Identifier injectCredits(Operation<Identifier> original) {
// return Identifier.of("mf121", "texts/credits.json");
// }

}

This file was deleted.

4 changes: 2 additions & 2 deletions src/client/resources/modfest_credits.client.mixins.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"required": true,
"package": "symbolics.division.modfest_credits.mixin.client",
"package": "symbolics.division.modfest_credits.mixin",
"compatibilityLevel": "JAVA_21",
"client": [
"ExampleClientMixin"
"CreditsScreenMixin"
],
"injectors": {
"defaultRequire": 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,10 @@

public class Modfest_credits implements ModInitializer {
public static final String MOD_ID = "modfest_credits";

// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

@Override
public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state.
// However, some things (like resources) may still be uninitialized.
// Proceed with mild caution.

LOGGER.info("Hello Fabric world!");
}
}
34 changes: 34 additions & 0 deletions src/main/resources/assets/minecraft/texts/credits.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"section": "ModFest Participants",
"disciplines": [
{
"discipline": "Armistice",
"titles": [
{
"title": "God-Executive",
"names": [
"hama"
]
}
]
}
]
},
{
"section": "ModFest Team",
"disciplines": [
{
"discipline": "Being Hot + Sexy",
"titles": [
{
"title": "Cultural Idol & Pop Icon",
"names": [
"hama"
]
}
]
}
]
}
]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/resources/modfest_credits.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"package": "symbolics.division.modfest_credits.mixin",
"compatibilityLevel": "JAVA_21",
"mixins": [
"ExampleMixin"

],
"injectors": {
"defaultRequire": 1
Expand Down

0 comments on commit 00562fc

Please sign in to comment.