How do I make a block able to be oriented (Minecraft 1.13)

Solution 1:

Okay, so I know this is old, but in case you still are wondering, I have a little bit of feedback. This is more like what needs to happen, not how to make it happen, as I am rather inexperienced with this kind of thing. I believe you need to define variants of the block in the blockstates json file (if there is one in resource packs, I only know about modding, but I assume there is one). The variant that exists by default is just "normal." However, you need 3 variants: axis=x, axis=y, and axis=z. There is also axis=none but I don't think that it is required. (I found this information on an old Minecraft Forums modding thread here)

Furthermore, you need a way to find which way the block is facing. There is a bit on how to do that in the thread above and can probably be found by investigating the code. Unfortunately, this is where I am not certain, but there is some info on blockstates in the Minecraft Wiki here.

As you can probably tell, I am not the most competent person to help, but I figured that even a little bit could help a bit and maybe you could figure out what you need to do. Hope this helps anyway!