-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
register builtin elytra_wings resourcepack
- Loading branch information
1 parent
403fcee
commit b16f2ae
Showing
1 changed file
with
19 additions
and
2 deletions.
There are no files selected for viewing
21 changes: 19 additions & 2 deletions
21
src/main/java/com/chromexunderscore/originstweaks/Main.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
} | ||
} |