diff --git a/src/main/java/com/chromexunderscore/originstweaks/Main.java b/src/main/java/com/chromexunderscore/originstweaks/Main.java index 25adc20..ac7fa94 100644 --- a/src/main/java/com/chromexunderscore/originstweaks/Main.java +++ b/src/main/java/com/chromexunderscore/originstweaks/Main.java @@ -1,13 +1,30 @@ package com.chromexunderscore.originstweaks; +import net.minecraft.util.Identifier; + +import net.fabricmc.loader.api.FabricLoader; import net.fabricmc.api.ModInitializer; +import net.fabricmc.fabric.api.resource.ResourceManagerHelper; +import net.fabricmc.fabric.api.resource.ResourcePackActivationType; + import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Main implements ModInitializer { - public static final Logger LOGGER = LoggerFactory.getLogger("originstweaks"); + public static final String ID = "originstweaks"; + public static final String NAME = "OriginsTweaks"; + public static final Logger LOGGER = LoggerFactory.getLogger(NAME); + + public static Identifier asId(String path) { + return new Identifier(ID, path); + } + @Override public void onInitialize() { - LOGGER.info("[OriginsTweaks] Remember to enable flying in the server.properties for the Arachnid's webshot ability!"); + LOGGER.info("Remember to enable flying in the server.properties for some movement abilites!"); + FabricLoader.getInstance().getModContainer(ID).ifPresent(container -> { + ResourceManagerHelper.registerBuiltinResourcePack(asId("elytra_wings"), container, + ResourcePackActivationType.NORMAL); + }); } } \ No newline at end of file