I've been working on updating my mod to 1.14, and for some reason my custom fence posts won't connect to each other, however they will connect to my custom fence gates. I have no idea why it's not working.
Here's the code I use for the fence gate/post:
PIER_FENCE = new FenceBlock(Block.Properties.create(Material.WOOD, Blocks.OAK_PLANKS.getMaterialColor(null, null, null)).hardnessAndResistance(2.0f, 5.0f));
PIER_FENCE_GATE = new FenceGateBlock(Block.Properties.create(Material.WOOD, Blocks.OAK_PLANKS.getMaterialColor(null, null, null)));
I'm not sure, but it might be because the fence post (PIER_FENCE), isn't in the "fences" Block Tag?
Any help would be useful :)
SOLVED:
Fixed this by adding a minecraft/tags/blocks/fences.json file to the data folder, and adding the block id to that file