mirror of
https://github.com/Pridecraft-Studios/joy.git
synced 2025-08-03 06:26:00 -04:00
Add optional enchantment glint
This commit is contained in:
parent
4180170b74
commit
0e06c39b36
@ -43,9 +43,8 @@ public class JoyClient implements ClientModInitializer {
|
||||
|
||||
ParticleFactoryRegistry.getInstance().register(JoyParticles.TOTEM_OF_PRIDE_PARTICLE, TotemOfPrideParticle.Factory::new);
|
||||
|
||||
final ModContainer self = FabricLoader.getInstance().getModContainer(Joy.MOD_ID).orElseThrow();
|
||||
|
||||
ResourceManagerHelper.registerBuiltinResourcePack(JoyUtil.id("menu"), self, Text.of("Joy's Main Menu & HUD"), ResourcePackActivationType.DEFAULT_ENABLED);
|
||||
JoyUtil.registerEnabledPack("menu", Text.of("Joy's Main Menu & HUD"));
|
||||
JoyUtil.registerEnabledPack("glint", Text.of("Joy's Enchantment Glint"));
|
||||
}
|
||||
|
||||
private static void registerBedBlockRenderLayers() {
|
||||
|
@ -1,5 +1,10 @@
|
||||
package gay.pridecraft.joy;
|
||||
|
||||
import net.fabricmc.fabric.api.resource.ResourceManagerHelper;
|
||||
import net.fabricmc.fabric.api.resource.ResourcePackActivationType;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.fabricmc.loader.api.ModContainer;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
/**
|
||||
@ -7,7 +12,22 @@ import net.minecraft.util.Identifier;
|
||||
* @since 1.0.0
|
||||
**/
|
||||
public final class JoyUtil {
|
||||
public static final ModContainer joyContainer =
|
||||
FabricLoader.getInstance().getModContainer(Joy.MOD_ID).orElseThrow();
|
||||
|
||||
public static Identifier id(String name) {
|
||||
return Identifier.of(Joy.MOD_ID, name);
|
||||
}
|
||||
|
||||
public static void registerEnabledPack(String name, Text text) {
|
||||
registerPack(name, text, ResourcePackActivationType.DEFAULT_ENABLED);
|
||||
}
|
||||
|
||||
public static void registerPack(String name, Text text) {
|
||||
registerPack(name, text, ResourcePackActivationType.NORMAL);
|
||||
}
|
||||
|
||||
public static void registerPack(String name, Text text, ResourcePackActivationType type) {
|
||||
ResourceManagerHelper.registerBuiltinResourcePack(JoyUtil.id(name), joyContainer, text, type);
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
6
src/main/resources/resourcepacks/glint/pack.mcmeta
Normal file
6
src/main/resources/resourcepacks/glint/pack.mcmeta
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"pack": {
|
||||
"pack_format": 34,
|
||||
"description": "From §cPr§6id§eep§2ac§9k 7§5.0§r"
|
||||
}
|
||||
}
|
BIN
src/main/resources/resourcepacks/glint/pack.png
Normal file
BIN
src/main/resources/resourcepacks/glint/pack.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 65 KiB |
Loading…
x
Reference in New Issue
Block a user