1

How to add alternate blocks that animate like Prismarine

RageLokiCat's Avatar RageLokiCat4/12/15 6:06 pm
1 emeralds 934 1
4/12/2015 9:10 pm
Skitto493's Avatar Skitto493
Explaining it isn't hard, I want to add extra rare stone variants that animate through several frames like prismarine. I've added the proper texture and mcmeta file in 'texturse', and .json files in blockstates and models, but I get the missing block texture in game. Can anyone give me a walk-though?

Mcmeta:
Click to reveal
{
"animation": {
"frametime": 300,
"interpolate": true,
"frames": [
0,
1,
2,
3,
2,
1
]
}
}


Json for stones:
Click to reveal
{
"__comment": "Fair warning, this format is highly likely to change even more in the future!",
"variants": {
"normal": [
{ "model": "stone", "weight"=100},
{ "model": "stone_mirrored", "weight"=100},
{ "model": "stone", "y": 180, "weight"=100},
{ "model": "stone_mirrored", "y": 180, "weight"=100},
{ "model": "stone_0" },
{ "model": "stone_1" },
{ "model": "stone_2" }
]
}
}


Json for this type:
Click to reveal
{
"__comment": "Fair warning, this format is highly likely to change even more in the future!",
"parent": "block/cube_all",
"textures": {
"all": "blocks/stone_2"
}
}


I'm guessing this last file needs to specify that there is an mcmeta file that goes with it but I'm not sure how to do.

Thanks,
RageLokiCat
Posted by RageLokiCat's Avatar
RageLokiCat
Level 21 : Expert Pony
20

Create an account or sign in to comment.

1

1
04/12/2015 9:10 pm
Level 55 : Grandmaster Dragon
Skitto493
Skitto493's Avatar
I'll post the mcmeta file of one of my animated blocks

This is all there is to it:
{ "animation": {"frametime": 5, "frames":[ 0, 1] } }

The name file of the mcmeta goes in the same folder the texture it applies to is in, and is named TEXTURENAME.png

the .mcmeta will be on the end if you have file endings being shown, to amount to

TEXTURENAME.png.mcmeta
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome