mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-04-01 08:45:28 +02:00
Added pony paintings
This commit is contained in:
parent
2205e4dd48
commit
2f0e91c91b
16 changed files with 39 additions and 0 deletions
paintings-2x1.xcfpaintings-2x4.xcfpaintings-3x3.xcf
src/main
java/com/minelittlepony/unicopia/entity
resources
assets/unicopia/textures/painting
bells.pngbloom.pngchicken.pngcrystal.pngequality.pngequestria.pngharmony.pnghurricane.pngplatinum.pngpudding.pngsolar.png
data/minecraft/tags/painting_variant
BIN
paintings-2x1.xcf
Normal file
BIN
paintings-2x1.xcf
Normal file
Binary file not shown.
BIN
paintings-2x4.xcf
Normal file
BIN
paintings-2x4.xcf
Normal file
Binary file not shown.
BIN
paintings-3x3.xcf
Normal file
BIN
paintings-3x3.xcf
Normal file
Binary file not shown.
|
@ -15,9 +15,11 @@ import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityDimensions;
|
import net.minecraft.entity.EntityDimensions;
|
||||||
import net.minecraft.entity.EntityType;
|
import net.minecraft.entity.EntityType;
|
||||||
import net.minecraft.entity.SpawnGroup;
|
import net.minecraft.entity.SpawnGroup;
|
||||||
|
import net.minecraft.entity.decoration.painting.PaintingVariant;
|
||||||
import net.minecraft.entity.mob.FlyingEntity;
|
import net.minecraft.entity.mob.FlyingEntity;
|
||||||
import net.minecraft.tag.BiomeTags;
|
import net.minecraft.tag.BiomeTags;
|
||||||
import net.minecraft.util.registry.Registry;
|
import net.minecraft.util.registry.Registry;
|
||||||
|
import net.minecraft.util.registry.RegistryKey;
|
||||||
import net.minecraft.world.biome.Biome;
|
import net.minecraft.world.biome.Biome;
|
||||||
|
|
||||||
public interface UEntities {
|
public interface UEntities {
|
||||||
|
@ -80,5 +82,26 @@ public interface UEntities {
|
||||||
UTradeOffers.bootstrap();
|
UTradeOffers.bootstrap();
|
||||||
EntityBehaviour.bootstrap();
|
EntityBehaviour.bootstrap();
|
||||||
UEntityAttributes.bootstrap();
|
UEntityAttributes.bootstrap();
|
||||||
|
Paintings.bootstrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Paintings {
|
||||||
|
private static void register(String id, int width, int height) {
|
||||||
|
Registry.register(Registry.PAINTING_VARIANT, RegistryKey.of(Registry.PAINTING_VARIANT_KEY, Unicopia.id(id)), new PaintingVariant(16 * width, 16 * height));
|
||||||
|
}
|
||||||
|
|
||||||
|
static void bootstrap() {
|
||||||
|
register("bloom", 2, 1);
|
||||||
|
register("chicken", 2, 1);
|
||||||
|
register("bells", 2, 1);
|
||||||
|
register("crystal", 3, 3);
|
||||||
|
register("harmony", 3, 3);
|
||||||
|
register("equality", 2, 4);
|
||||||
|
register("solar", 2, 4);
|
||||||
|
register("platinum", 2, 4);
|
||||||
|
register("hurricane", 2, 4);
|
||||||
|
register("pudding", 2, 4);
|
||||||
|
register("equestria", 2, 4);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
BIN
src/main/resources/assets/unicopia/textures/painting/bells.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/painting/bells.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 3 KiB |
BIN
src/main/resources/assets/unicopia/textures/painting/bloom.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/painting/bloom.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 3.1 KiB |
BIN
src/main/resources/assets/unicopia/textures/painting/chicken.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/painting/chicken.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 3 KiB |
BIN
src/main/resources/assets/unicopia/textures/painting/crystal.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/painting/crystal.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 18 KiB |
Binary file not shown.
After ![]() (image error) Size: 2 KiB |
Binary file not shown.
After ![]() (image error) Size: 6.5 KiB |
BIN
src/main/resources/assets/unicopia/textures/painting/harmony.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/painting/harmony.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 19 KiB |
Binary file not shown.
After ![]() (image error) Size: 5.7 KiB |
Binary file not shown.
After ![]() (image error) Size: 5.7 KiB |
BIN
src/main/resources/assets/unicopia/textures/painting/pudding.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/painting/pudding.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 6.1 KiB |
BIN
src/main/resources/assets/unicopia/textures/painting/solar.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/painting/solar.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 5.7 KiB |
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"unicopia:bloom",
|
||||||
|
"unicopia:chicken",
|
||||||
|
"unicopia:bells",
|
||||||
|
"unicopia:crystal",
|
||||||
|
"unicopia:harmony",
|
||||||
|
"unicopia:equality",
|
||||||
|
"unicopia:solar",
|
||||||
|
"unicopia:platinum",
|
||||||
|
"unicopia:hurricane",
|
||||||
|
"unicopia:pudding",
|
||||||
|
"unicopia:equestria"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue