1
How to add alternate blocks that animate like Prismarine
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:
Json for stones:
Json for this type:
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
Mcmeta:
Click to reveal
{
"animation": {
"frametime": 300,
"interpolate": true,
"frames": [
0,
1,
2,
3,
2,
1
]
}
}
"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" }
]
}
}
"__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"
}
}
"__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
Create an account or sign in to comment.
1
1
I'll post the mcmeta file of one of my animated blocks
This is all there is to it:
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
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