I'm new to this myself, but from what I can gather, the blockstates JSON file define the direction to place a block in.
I copied the carved_pumpkin.json in net.minecraft.client.extra:1.18.1:
{
"variants": {
"facing=east": {
"model": "minecraft:block/carved_pumpkin",
"y": 90
},
"facing=north": {
"model": "minecraft:block/carved_pumpkin"
},
"facing=south": {
"model": "minecraft:block/carved_pumpkin",
"y": 180
},
"facing=west": {
"model": "minecraft:block/carved_pumpkin",
"y": 270
}
}
}
Unfortunately I still can't get it to work, mine says "Unknown blockstate property: 'facing'"
Update:
The error is for all four directions. This works however:
{
"variants": {
"": {
"model": "minecraft:block/carved_pumpkin",
"y": 270
}
}
}
The reply to the following (old) post seems to be saying that blockstates don't work in Forge, is that true?
https://forums.minecraftforge.net/topic/70947-1132-solved-trouble-getting-forge-blockstate-json-to-work/
Could it be that my versions for things are wrong?
Good luck!