Jump to content

MultiMote

Forge Modder
  • Posts

    257
  • Joined

  • Last visited

Everything posted by MultiMote

  1. > entity.worldObj.isRemote && entity.worldObj != null - you are accessing world before null-check оО > entity.worldObj != null - i'm not sure, but world can't be null > entity.worldObj.isRemote - it happens at client, not at server, replace with !entity.worldObj.isRemote
  2. For server you should return your Container, for client - your GuiContainer.
  3. http://www.minecraftforge.net/forum/index.php/topic,21001.msg106575.html#msg106575
  4. glScissor, but I don't know how to use it.
  5. > GL11.glScalef(1.0F, 1.0F, 1.0F); This does nothing. > GL11.glRotatef(0F, 0.0F, 0.0F, 0.0F); And this too.
  6. public int getRenderBlockPass() { return 1; }
  7. People recommended S35PacketUpdateTileEntity. Look at TileEntityFlowerPot@getDescriptionPacket for example.
  8. From my old code: @SubscribeEvent public void getName(PlayerEvent.NameFormat event) { int humanity = DayzPlayer.get(event.entityPlayer).getHumanity(); if (humanity <= -5000) { event.displayname = EnumChatFormatting.RED + event.username; } else if (humanity >= 5000) { event.displayname = EnumChatFormatting.BLUE + event.username; } } For RenderLivingEvent.Specials look at RendererLivingEntity@passSpecialRender.
  9. Not rendering = transparent item? EQUIPPED is third-person rendering. Press F5. And why are you casting your renderer to IItemRenderer in ClientProxy? It's not necessary.
  10. http://up42.ru/u/p/2014-10-10_09.29.27.png[/img]
  11. @SubscribeEvent public void getName(PlayerEvent.NameFormat e) {} @SubscribeEvent public void renderNamePlate(RenderLivingEvent.Specials.Pre e) {}
  12. public class Ticker{ @SubscribeEvent public void worldTick(TickEvent.WorldTickEvent event) { if (event.phase == TickEvent.Phase.END){ do_something(); } } } FMLCommonHandler.instance().bus().register(new Ticker());
  13. And use RenderGameOverlayEvent.Post And enable blending
  14. public static void drawDrawFullscreenImage(int width, int height) { Tessellator tessellator = Tessellator.instance; tessellator.startDrawingQuads(); tessellator.addVertexWithUV(0.0D, (double)height, -90.0D, 0.0D, 1.0D); tessellator.addVertexWithUV((double)width, (double)height, -90.0D, 1.0D, 1.0D); tessellator.addVertexWithUV((double)width, 0.0D, -90.0D, 1.0D, 0.0D); tessellator.addVertexWithUV(0.0D, 0.0D, -90.0D, 0.0D, 0.0D); tessellator.draw(); }
  15. @Override public boolean onItemUse(ItemStack is, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) { return true; } =_=
  16. https://gist.githubusercontent.com/MultiMote/96434272a734fe5ac8e1/raw/78bbfd362a3715dab0801088b8d1f88d00a4e388/mcmod.info
  17. As hugo_the_dwarf said, you forgot to add null-check for stackTagCompound.
  18. Yup. Edit your run configuration: add --username [email protected] --pass yourpass to launch parameters.
  19. int timer; int delay = 10 * (20 * 60); //10 mins @Override public void onUpdate() { if(!worldObj.isRemote && timer++ >= delay){ timer=0; this.entityDropItem(new ItemStack(Items.slime_ball), 0); } super.onUpdate(); }
  20. Add e.crafting != null before e.crafting.getItem()
×
×
  • Create New...

Important Information

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