Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MultiMote

Forge Modder
  • 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 buttons you must use packets.
  3. For server you should return your Container, for client - your GuiContainer.
  4. http://www.minecraftforge.net/forum/index.php/topic,21001.msg106575.html#msg106575
  5. RenderFish@doRender last lines I think
  6. glScissor, but I don't know how to use it.
  7. > GL11.glScalef(1.0F, 1.0F, 1.0F); This does nothing. > GL11.glRotatef(0F, 0.0F, 0.0F, 0.0F); And this too.
  8. public int getRenderBlockPass() { return 1; }
  9. People recommended S35PacketUpdateTileEntity. Look at TileEntityFlowerPot@getDescriptionPacket for example.
  10. 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.
  11. 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.
  12. http://up42.ru/u/p/2014-10-10_09.29.27.png[/img]
  13. @SubscribeEvent public void getName(PlayerEvent.NameFormat e) {} @SubscribeEvent public void renderNamePlate(RenderLivingEvent.Specials.Pre e) {}
  14. Ctrl+click on addStats
  15. Or downgrade to Java7.
  16. public class Ticker{ @SubscribeEvent public void worldTick(TickEvent.WorldTickEvent event) { if (event.phase == TickEvent.Phase.END){ do_something(); } } } FMLCommonHandler.instance().bus().register(new Ticker());
  17. And use RenderGameOverlayEvent.Post And enable blending
  18. 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(); }
  19. @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; } =_=
  20. https://gist.githubusercontent.com/MultiMote/96434272a734fe5ac8e1/raw/78bbfd362a3715dab0801088b8d1f88d00a4e388/mcmod.info
  21. As hugo_the_dwarf said, you forgot to add null-check for stackTagCompound.
  22. Yup. Edit your run configuration: add --username [email protected] --pass yourpass to launch parameters.
  23. 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(); }
  24. Add e.crafting != null before e.crafting.getItem()

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.