I copied BlockFenceGate to create the BasicFenceGate class, although i changed it's constructor from accepting BlockPlanks.EnumType to Material and MapColor. I tried to create a direct copy of fence, and then extend that, although that produces no different results. I guess the real question should be asking is how to extend BlockFenceGate correctly, although the fact the item model shows up in game correctly suggests the blockstate may be wrong after all. I really have no clue lol.
Edit:
Also, I register the models in the proxies:
Further Edit - having looked back through the forums the same problem was already discussed.
I changed the blockstate to:
and it all works. Thanks MCrafterzz for your old post!
Further further edit: Getting it to work with my walls and fences however is a different story, and it looks as though I will need to do the same with the wall class as with the fence gate.
Is this the preferable method of adding new variants of existing blocks then, rather than extending the base files?
I have this code in my wall class, is it possible to have something which would make neighboring blocks have the same effect? allowing you to have vanilla fences/walls work with new ones? Or is there another way?