Skip to content

Commit

Permalink
register builtin elytra_wings resourcepack
Browse files Browse the repository at this point in the history
  • Loading branch information
ChromexUnderscore committed May 27, 2024
1 parent 403fcee commit b16f2ae
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/main/java/com/chromexunderscore/originstweaks/Main.java
Original file line number Diff line number Diff line change
@@ -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);
});
}
}

0 comments on commit b16f2ae

Please sign in to comment.