hey guys,
i just made some custom fences with the help of the wiki-article MultiBlocks (see http://www.minecraftforge.net/wiki/Tutorials/Multiblock).
for this i created a class "MultiFence" with the following code:
the class MultiItemBlock:
and i even modified the BlockFence.java, i added my constructor to fit in the tutorial-parameters.
FYI, BlockFence doesnt have a contructor, that takes only the id and the material as parameters.
I set the MultiFence as a subclass of BlockFence to get the typical Fence-behavior and the right texture-rendering. I dont think it is possible to manage it without being subclass of BlockFence.
I really followed all the other steps in the Tutorial.
So here the Problem:
While the textures of the fences are perfectly fine block, the inventory takes only one particular texture for all fences.
If i change the MultiFence class to extend Block (instead of BlockFence), the inventory works fine, but (ofc.) the Fences are normal Blocks.
How can i set the ItemBlock textures to fit the texture of the Block itself?
Below are 2 screenshots of exact the same situation. First having MultiFence extends Block, second extends BlockFence.
Thanks,
Zhor