Hello,
I'm very new to modding, and new to Java as well (I have tons of experience with other programming languages however) and I have run into a problem when trying to animate my custom rendered model.
The block is rendered perfectly, and I got it to animate when it received a redstone signal. However, all blocks in the world would animate, not just the one I was giving a redstone signal to.
WAIT!
Before you say "Great.... another idiot who doesn't understand static variables," I know that static allows the variable to be shared across all of the blocks in the world, so I removed the static part of my variables. Now, the animation doesn't run. I have tried:
public static ModelRenderer PedestalOne; -> Animation works, but runs on all blocks in the world.
public ModelRenderer PedestalOne; -> Animation doesn't run.
ModelRenderer PedestalOne; -> Animation doesn't run.
I have tried various ways to render the model from outside of the Model class, but I am unable to figure this out.
Classes:
BlueGeneralSiren.java
BlueSirenTileEntity.java
BlueGeneralSirenRenderer.java
GeneralSirenModel.java
Any help would be appreciated. There is probably a really easy fix for this but I am just overlooking it.
-mcrafter