The Block Asset Files
As part of creating a block, you will need to create the blockstate and model JSON files.
This is a vanilla feature, not GeckoLib specific, but it's included here since people often miss it.
The BlockState JSON
You will need to create a blockstate JSON for your block.
To do so, create a new .json file in your assets/<modid>/blockstates folder, with the same name as your registered Block.
In that file, copy-paste the below contents, replacing the examplemod placeholder with your mod's id, and
example_block with your block's registered id.
{
"variants": {
"": {
"model": "examplemod:block/example_block"
}
}
}
The Block Model JSON
You will also need to create a block model JSON for your block.
To do so, create a new .json file in your assets/<modid>/models/block folder, with the same name as your registered Block.
In that file, copy-paste the below contents, replacing the examplemod placeholder with your mod's id, and
example_block with your block's registered id.
{
"textures": {
"particle": "examplemod:block/example_block"
}
}
You may also target another block entirely for your particle texture. Vanilla chests target oak planks, for example!