Added pony paintings

This commit is contained in:
Sollace 2022-12-15 18:39:27 +00:00
parent 2205e4dd48
commit 2f0e91c91b
16 changed files with 39 additions and 0 deletions

BIN
paintings-2x1.xcf Normal file

Binary file not shown.

BIN
paintings-2x4.xcf Normal file

Binary file not shown.

BIN
paintings-3x3.xcf Normal file

Binary file not shown.

View file

@ -15,9 +15,11 @@ import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityDimensions;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.SpawnGroup;
import net.minecraft.entity.decoration.painting.PaintingVariant;
import net.minecraft.entity.mob.FlyingEntity;
import net.minecraft.tag.BiomeTags;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.world.biome.Biome;
public interface UEntities {
@ -80,5 +82,26 @@ public interface UEntities {
UTradeOffers.bootstrap();
EntityBehaviour.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);
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

View file

@ -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"
]
}