MultiMote
Forge Modder-
Posts
257 -
Joined
-
Last visited
Everything posted by MultiMote
-
[1.7.10] isAirBorne Always Evaluating False (Solved)
MultiMote replied to Izzy Axel's topic in Modder Support
> 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 -
For buttons you must use packets.
-
[1.7.10] Mob with inventory, Simple Network Wrapper problem.
MultiMote replied to SSslimer's topic in Modder Support
For server you should return your Container, for client - your GuiContainer. -
[1.7.10] Mob with inventory, Simple Network Wrapper problem.
MultiMote replied to SSslimer's topic in Modder Support
http://www.minecraftforge.net/forum/index.php/topic,21001.msg106575.html#msg106575 -
RenderFish@doRender last lines I think
-
glScissor, but I don't know how to use it.
-
> GL11.glScalef(1.0F, 1.0F, 1.0F); This does nothing. > GL11.glRotatef(0F, 0.0F, 0.0F, 0.0F); And this too.
-
public int getRenderBlockPass() { return 1; }
-
[SOLVED] Container not working unless you open the gui.
MultiMote replied to Jordor's topic in Modder Support
People recommended S35PacketUpdateTileEntity. Look at TileEntityFlowerPot@getDescriptionPacket for example. -
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.
-
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.
-
http://up42.ru/u/p/2014-10-10_09.29.27.png[/img]
-
@SubscribeEvent public void getName(PlayerEvent.NameFormat e) {} @SubscribeEvent public void renderNamePlate(RenderLivingEvent.Specials.Pre e) {}
-
Ctrl+click on addStats
-
Or downgrade to Java7.
-
public class Ticker{ @SubscribeEvent public void worldTick(TickEvent.WorldTickEvent event) { if (event.phase == TickEvent.Phase.END){ do_something(); } } } FMLCommonHandler.instance().bus().register(new Ticker());
-
Render a custom Gui Overlay like the Pumpkin Blur
MultiMote replied to Kloonder's topic in Modder Support
And use RenderGameOverlayEvent.Post And enable blending -
Render a custom Gui Overlay like the Pumpkin Blur
MultiMote replied to Kloonder's topic in Modder Support
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(); } -
How to make the OnRightClick Method point to the crosshair?
MultiMote replied to MyNameIsSilver's topic in Modder Support
@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; } =_= -
0 - 1 FPS when looking at my rendered block [SOLVED] [1.7.10]
MultiMote replied to TheEpicTekkit's topic in Modder Support
U do it wrong -
https://gist.githubusercontent.com/MultiMote/96434272a734fe5ac8e1/raw/78bbfd362a3715dab0801088b8d1f88d00a4e388/mcmod.info
-
As hugo_the_dwarf said, you forgot to add null-check for stackTagCompound.
-
Yup. Edit your run configuration: add --username [email protected] --pass yourpass to launch parameters.
-
Making my entity drop an item every 10 minutes?
MultiMote replied to KingYoshiYT's topic in Modder Support
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(); } -
Subscribing to item crafted event crashes the game
MultiMote replied to ilan321's topic in Modder Support
Add e.crafting != null before e.crafting.getItem()