diff --git a/src/main/java/fr/hugman/promenade/Promenade.java b/src/main/java/fr/hugman/promenade/Promenade.java index c1f16403..ce0f8e48 100644 --- a/src/main/java/fr/hugman/promenade/Promenade.java +++ b/src/main/java/fr/hugman/promenade/Promenade.java @@ -7,6 +7,7 @@ import fr.hugman.promenade.entity.PromenadeEntityTypes; import fr.hugman.promenade.entity.ai.brain.sensor.PromenadeSensorTypes; import fr.hugman.promenade.entity.data.PromenadeTrackedData; +import fr.hugman.promenade.entity.decoration.painting.PromenadePaintingVariants; import fr.hugman.promenade.item.PromenadeItems; import fr.hugman.promenade.registry.PromenadeRegistries; import fr.hugman.promenade.sound.PromenadeSoundEvents; @@ -50,6 +51,8 @@ public void onInitialize() { PromenadeBiomes.appendWorldGen(); PromenadePlacedFeatures.appendWorldGen(); PromenadeEntityTypes.appendWorldGen(); + + PromenadePaintingVariants.register(); } public static Identifier id(String path) { diff --git a/src/main/java/fr/hugman/promenade/entity/decoration/painting/PromenadePaintingVariantKeys.java b/src/main/java/fr/hugman/promenade/entity/decoration/painting/PromenadePaintingVariantKeys.java new file mode 100644 index 00000000..fa6b205a --- /dev/null +++ b/src/main/java/fr/hugman/promenade/entity/decoration/painting/PromenadePaintingVariantKeys.java @@ -0,0 +1,16 @@ +package fr.hugman.promenade.entity.decoration.painting; + +import fr.hugman.promenade.Promenade; +import net.minecraft.entity.decoration.painting.PaintingVariant; +import net.minecraft.registry.RegistryKey; +import net.minecraft.registry.RegistryKeys; + +public class PromenadePaintingVariantKeys { + public static final RegistryKey OPTIMISM = of("optimism"); + public static final RegistryKey NURTURE = of("nurture"); + + + private static RegistryKey of(String path) { + return RegistryKey.of(RegistryKeys.PAINTING_VARIANT, Promenade.id(path)); + } +} diff --git a/src/main/java/fr/hugman/promenade/entity/decoration/painting/PromenadePaintingVariants.java b/src/main/java/fr/hugman/promenade/entity/decoration/painting/PromenadePaintingVariants.java new file mode 100644 index 00000000..0efcc035 --- /dev/null +++ b/src/main/java/fr/hugman/promenade/entity/decoration/painting/PromenadePaintingVariants.java @@ -0,0 +1,12 @@ +package fr.hugman.promenade.entity.decoration.painting; + +import net.minecraft.entity.decoration.painting.PaintingVariant; +import net.minecraft.registry.Registries; +import net.minecraft.registry.Registry; + +public class PromenadePaintingVariants { + public static void register() { + Registry.register(Registries.PAINTING_VARIANT, PromenadePaintingVariantKeys.OPTIMISM, new PaintingVariant(32, 32)); + Registry.register(Registries.PAINTING_VARIANT, PromenadePaintingVariantKeys.NURTURE, new PaintingVariant(32, 32)); + } +} diff --git a/src/main/resources/assets/promenade/lang/en_us.json b/src/main/resources/assets/promenade/lang/en_us.json index a19d4271..7d24fb07 100644 --- a/src/main/resources/assets/promenade/lang/en_us.json +++ b/src/main/resources/assets/promenade/lang/en_us.json @@ -203,5 +203,9 @@ "text.autoconfig.promenade.option.animals.capybaras_weight": "Spawning weight of Capybaras", "text.autoconfig.promenade.option.animals.ducks_weight": "Spawning weight of Ducks", "text.autoconfig.promenade.option.monsters.lush_creepers_weight": "Spawning weight of Lush Creepers", - "text.autoconfig.promenade.option.monsters.sunkens_weight": "Spawning weight of Sunkens" + "text.autoconfig.promenade.option.monsters.sunkens_weight": "Spawning weight of Sunkens", + "painting.promenade.optimism.title": "Optimism", + "painting.promenade.optimism.author": "Hugman", + "painting.promenade.nurture.title": "Nurture", + "painting.promenade.nurture.author": "Hugman" } \ No newline at end of file diff --git a/src/main/resources/assets/promenade/textures/painting/nurture.png b/src/main/resources/assets/promenade/textures/painting/nurture.png new file mode 100644 index 00000000..1e108d30 Binary files /dev/null and b/src/main/resources/assets/promenade/textures/painting/nurture.png differ diff --git a/src/main/resources/assets/promenade/textures/painting/optimism.png b/src/main/resources/assets/promenade/textures/painting/optimism.png new file mode 100644 index 00000000..eaf6bf49 Binary files /dev/null and b/src/main/resources/assets/promenade/textures/painting/optimism.png differ diff --git a/src/main/resources/data/minecraft/tags/painting_variant/placeable.json b/src/main/resources/data/minecraft/tags/painting_variant/placeable.json new file mode 100644 index 00000000..c4705b6b --- /dev/null +++ b/src/main/resources/data/minecraft/tags/painting_variant/placeable.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "values": [ + "promenade:optimism", + "promenade:nurture" + ] +} \ No newline at end of file