diff --git a/src/main/java/com/minelittlepony/unicopia/client/UnicopiaClient.java b/src/main/java/com/minelittlepony/unicopia/client/UnicopiaClient.java index 5a88ab00..f3a236d4 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/UnicopiaClient.java +++ b/src/main/java/com/minelittlepony/unicopia/client/UnicopiaClient.java @@ -25,6 +25,8 @@ import com.minelittlepony.unicopia.util.Lerp; import net.fabricmc.api.ClientModInitializer; import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents; import net.fabricmc.fabric.api.resource.ResourceManagerHelper; +import net.fabricmc.fabric.api.resource.ResourcePackActivationType; +import net.fabricmc.loader.api.FabricLoader; import net.minecraft.client.MinecraftClient; import net.minecraft.client.gui.screen.OpenToLanScreen; import net.minecraft.client.gui.screen.Screen; @@ -38,6 +40,7 @@ import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Vec3d; public class UnicopiaClient implements ClientModInitializer { + private static final Text PROGRAMMER_ART_NAME = Text.translatable("resourcepack.unicopia.programmer_art"); private static UnicopiaClient instance; @@ -128,6 +131,10 @@ public class UnicopiaClient implements ClientModInitializer { ClientTickEvents.END_WORLD_TICK.register(this::onWorldTick); ScreenInitCallback.EVENT.register(this::onScreenInit); + FabricLoader.getInstance().getModContainer("unicopia").ifPresent(container -> { + ResourceManagerHelper.registerBuiltinResourcePack(Unicopia.id("unicopia_programmer_art"), container, PROGRAMMER_ART_NAME, ResourcePackActivationType.NORMAL); + }); + ResourceManagerHelper.get(ResourceType.CLIENT_RESOURCES).registerReloadListener(ViewportShader.INSTANCE); ResourceManagerHelper.get(ResourceType.CLIENT_RESOURCES).registerReloadListener(SpellEffectsRenderDispatcher.INSTANCE); } diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index ab336372..45fd4625 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -1,4 +1,5 @@ { + "resourcepack.unicopia.programmer_art": "Programmer Art (Unicopia)", "block.unicopia.bed.not_safe": "You may not rest here, there are enemies nearby", "block.unicopia.bed.not_tired": "You do not feel tired right now", diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/acacia.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/acacia.png new file mode 100644 index 00000000..659c43ec Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/acacia.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/bamboo.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/bamboo.png new file mode 100644 index 00000000..9ccce81f Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/bamboo.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/birch.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/birch.png new file mode 100644 index 00000000..c713d435 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/birch.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/cherry.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/cherry.png new file mode 100644 index 00000000..125cc263 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/cherry.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/dark_oak.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/dark_oak.png new file mode 100644 index 00000000..1fb82eeb Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/dark_oak.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/jungle.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/jungle.png new file mode 100644 index 00000000..6c08b195 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/jungle.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/mangrove.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/mangrove.png new file mode 100644 index 00000000..6cb5b7f7 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/mangrove.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/oak.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/oak.png new file mode 100644 index 00000000..7be9cba5 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/oak.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/palm.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/palm.png new file mode 100644 index 00000000..1f18d94f Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/palm.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/spruce.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/spruce.png new file mode 100644 index 00000000..fc07e72a Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/entity/air_balloon/basket/spruce.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/acacia_basket.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/acacia_basket.png new file mode 100644 index 00000000..f3ddfeb5 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/acacia_basket.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/bamboo_basket.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/bamboo_basket.png new file mode 100644 index 00000000..02960817 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/bamboo_basket.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/birch_basket.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/birch_basket.png new file mode 100644 index 00000000..440cb721 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/birch_basket.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/cherry_basket.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/cherry_basket.png new file mode 100644 index 00000000..539b9173 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/cherry_basket.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/cooked_zap_apple.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/cooked_zap_apple.png new file mode 100644 index 00000000..00a3a28e Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/cooked_zap_apple.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/dark_oak_basket.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/dark_oak_basket.png new file mode 100644 index 00000000..2ad6eb8f Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/dark_oak_basket.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/green_apple.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/green_apple.png new file mode 100644 index 00000000..aa2f9769 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/green_apple.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/jungle_basket.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/jungle_basket.png new file mode 100644 index 00000000..e148292d Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/jungle_basket.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/mangrove_basket.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/mangrove_basket.png new file mode 100644 index 00000000..7150a690 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/mangrove_basket.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/oak_basket.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/oak_basket.png new file mode 100644 index 00000000..147e5ff6 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/oak_basket.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/palm_basket.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/palm_basket.png new file mode 100644 index 00000000..49383f90 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/palm_basket.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/rotten_apple.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/rotten_apple.png new file mode 100644 index 00000000..84869075 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/rotten_apple.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/sour_apple.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/sour_apple.png new file mode 100644 index 00000000..0d148cc7 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/sour_apple.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/spruce_basket.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/spruce_basket.png new file mode 100644 index 00000000..940773e8 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/spruce_basket.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/sweet_apple.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/sweet_apple.png new file mode 100644 index 00000000..81308495 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/sweet_apple.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/zap_apple.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/zap_apple.png new file mode 100644 index 00000000..cc49215b Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/zap_apple.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/zap_bulb.png b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/zap_bulb.png new file mode 100644 index 00000000..49ba4bcf Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/assets/unicopia/textures/item/zap_bulb.png differ diff --git a/src/main/resources/resourcepacks/unicopia_programmer_art/pack.png b/src/main/resources/resourcepacks/unicopia_programmer_art/pack.png new file mode 100644 index 00000000..1640da82 Binary files /dev/null and b/src/main/resources/resourcepacks/unicopia_programmer_art/pack.png differ