Jump to content

opssemnik

Members
  • Posts

    269
  • Joined

  • Last visited

Everything posted by opssemnik

  1. for the mobs, this is not the best way,but u can use EntityRegistry.removeSpawn then u create a new entity using vannila model and render with your new healt or whatever. ps: sorry the bad english.
  2. Hi with the new forge versions i get this error (ver .394+)
  3. its the object of entity if i dont use them i get an error lol. can u show me a example of one item render?
  4. var3[0] is the Object and its casting i´ve changed my code but still wont work but here is the cast if (var3[0] != null && var3[0] instanceof EntityPlayer)
  5. renderEntityLine its correct, the line 55 is this.gunModel.render((Entity)var3[0], 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
  6. Hi im making a mod, i´ve made a control which i want to render in 3d like the portal gun but the render is giving me a error here is the error And here is the code package FunMod.cliente; import net.minecraft.client.Minecraft; import net.minecraft.src.Block; import net.minecraft.src.Entity; import net.minecraft.src.EntityItem; import net.minecraft.src.EntityLiving; import net.minecraft.src.EntityPlayer; import net.minecraft.src.GuiInventory; import net.minecraft.src.ItemStack; import net.minecraft.src.ModelBase; import net.minecraft.src.RenderBlocks; import net.minecraft.src.RenderManager; import net.minecraft.src.Tessellator; import net.minecraftforge.client.ForgeHooksClient; import net.minecraftforge.client.IItemRenderer; import org.lwjgl.opengl.GL11; public class ItemRenderControle implements IItemRenderer { protected ModelBase gunModel = new ModelControle(); public boolean shouldUseRenderHelper(ItemRenderType var1, ItemStack var2, ItemRendererHelper var3) { return false; } public void renderItem(ItemRenderType var1, ItemStack var2, Object ... var3) { GL11.glPushMatrix(); ForgeHooksClient.bindTexture("/FunMod/cliente/texturas/modelos/controle.png", 0); if (var3[0] != null && var3[0] instanceof EntityPlayer) { if ((EntityPlayer)var3[0] == Minecraft.getMinecraft().renderViewEntity && Minecraft.getMinecraft().gameSettings.thirdPersonView == 0 && (!(Minecraft.getMinecraft().currentScreen instanceof GuiInventory) || RenderManager.instance.playerViewY != 180.0F)) { GL11.glTranslatef(0.45F, 0.75F, 0.0F); } else { GL11.glTranslatef(0.65F, 0.75F, 0.0F); } GL11.glScalef(1.8F, 1.8F, 1.8F); GL11.glRotatef(84.0F, 0.0F, 1.0F, 0.0F); GL11.glRotatef(-35.0F, 1.0F, 0.0F, 0.0F); GL11.glRotatef(181.0F, 0.0F, 0.0F, 1.0F); } this.gunModel.render((Entity)var3[0], 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); ForgeHooksClient.unbindTexture(); Tessellator var4; float var5; GL11.glPopMatrix(); this.gunModel.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); } public void renderEntityItem(RenderBlocks var1, EntityItem var2) { GL11.glPushMatrix(); float var3 = 0.5F; GL11.glScalef(var3, var3, var3); this.renderInventoryItem(var1, var2.item); GL11.glPopMatrix(); } public void renderEquippedItem(RenderBlocks var1, EntityLiving var2, ItemStack var3) { GL11.glPushMatrix(); GL11.glTranslatef(0.5F, 0.5F, 0.5F); float var4 = 0.6F; if (var2 != Minecraft.getMinecraft().renderViewEntity || Minecraft.getMinecraft().gameSettings.thirdPersonView != 0 || Minecraft.getMinecraft().currentScreen instanceof GuiInventory && RenderManager.instance.playerViewY == 180.0F) { GL11.glScalef(var4, var4, var4); GL11.glRotatef(80.0F, 1.0F, 0.0F, 1.0F); float var5 = 0.55F; GL11.glTranslatef(var5, 0.25F, -var5); } this.renderInventoryItem(var1, var3); GL11.glPopMatrix(); } public void renderInventoryItem(RenderBlocks var1, ItemStack var2) { int var3 = var2.itemID; int var4 = var2.getItemDamage(); } public boolean handleRenderType(ItemStack item, ItemRenderType type) { // TODO Auto-generated method stub return true; } } PLSSS Help
  7. What is the error?
  8. Hi guys The mod which im trying to make it for smp uses a new inventory so on client side i use the void renderInvBlocks and use onTickInGame but i dont know ho to make for smp here is the code for client (only these things)
  9. Hi guys im searching on google about one week but anyone can help me. Im trying to update the mod aether to mp. in my version single player works but when i connect to the server i get this error and here is the full log and here is the main class from server anyone can help me? i think i have to make ap acket but im newbie with smp modding.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.