It is not working as the
minZ
and the
maxZ
in the
setBlockBounds(params)
method (3rd and 6th parameter) are the same. That means the bounding box is so small that you can't see it.
If you want to change the bounding box, you need to use
Block#setBlockBounds(params)
to change the bouding box. If you want the actual model to change, you need to use
GL11.glScalef(scale,scale,scale)
Well, that code starts drawing a quad, adds 4 vertices to the tessellator and draws that to the screen. You need to bind the texture first and then call that method.
From the S35PacketUpdateTileEntity:
@SideOnly(Side.CLIENT)
public NBTTagCompound func_148857_g()
{
return this.field_148860_e;
}
The
getDescriptionPacket()
is called server side, but you are trying to access a method that only exists client-side (
@SideOnly(Side.CLIENT)
. To solve this is, in the
getDescriptionPacket()
method don't call
packet.func_148857_g()
, but create your own NBTTagCompound (
NBTTagCompound tag = new NBTTagCompound()
).
Everything is rendering inside-out because of this line of code:
GL11.glRotatef(180F, 0, 0, 0);
. Either remove this line or actually rotate something (changing on of the 0's to a 1).
You don't need to make a topic in bug reports as Forge is not out yet and FML is still very unstable and in development, and that's why some things may not work yet.
Commands are processed on the server side. You need to send a packet to the client that notifys the client to open the GUI. There's a nice tutorial on the SimpleNetworkWrapper in the tutorials section.
Where did you get that plugin? I would be very interested in that plugin as it makes debugging way easier, as you can just modify it while the game is open, instead of needing to re-open Minecraft.
You're right, your GuiHandler is not right. In the
getServerGuiElement(params)
method you return a Gui instead of a Container. If you don't want a container, you need to call the
EntityPlayer#openGui(params)
method client side (
world.isRemote
is true for client, false for server) and return null for
getServerGuiElement(params)
.