start of elf origin

This commit is contained in:
2026-02-17 02:13:26 +02:00
parent 7dd1c66dcc
commit 35248dc4bc
15 changed files with 57 additions and 411 deletions

View File

@@ -1,25 +0,0 @@
package com.smithy.faithful.client;
import io.github.apace100.apoli.ApoliClient;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import org.lwjgl.glfw.GLFW;
import java.util.List;
public class TerraKeybinds implements ClientModInitializer {
public List<String> keys = List.of("ternary","quaternary","quinary","senary","septenary","octonary","nonary","denary");
@Override
public void onInitializeClient() {
for(String key : keys) {
KeyBinding binding = new KeyBinding("key.origins."+key+"_active", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_UNKNOWN, "category.origins");
ApoliClient.registerPowerKeybinding(binding.getTranslationKey(), binding);
ApoliClient.registerPowerKeybinding(key, binding);
KeyBindingHelper.registerKeyBinding(binding);
}
}
}

View File

@@ -8,16 +8,10 @@ import net.minecraft.util.Rarity;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
@SuppressWarnings("unused")
public class IconItems {
public static final Item MYNC_EYE = new Item(new Item.Settings().maxCount(1).rarity(Rarity.EPIC));
public static final Item SPIRIT = new Item(new Item.Settings().maxCount(1).rarity(Rarity.EPIC));
public static final Item TINY = new Item(new Item.Settings().maxCount(1).rarity(Rarity.EPIC));
public static void register() {
Registry.register(Registries.ITEM, new Identifier(Faithful.MOD_ID, "mync_eye"), MYNC_EYE);
Registry.register(Registries.ITEM, new Identifier(Faithful.MOD_ID, "spirit"), SPIRIT);
Registry.register(Registries.ITEM, new Identifier(Faithful.MOD_ID, "tiny"), TINY);
}
}