Everything posted by MultiMote
-
[1.7.10] isAirBorne Always Evaluating False (Solved)
> 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
-
[1.7.2] How to set slot to null or itemstack
For buttons you must use packets.
-
[1.7.10] Mob with inventory, Simple Network Wrapper problem.
For server you should return your Container, for client - your GuiContainer.
-
[1.7.10] Mob with inventory, Simple Network Wrapper problem.
http://www.minecraftforge.net/forum/index.php/topic,21001.msg106575.html#msg106575
-
[Solved] Rendering a NURBS Curve
RenderFish@doRender last lines I think
-
How to limit the GL11 Viewport?
glScissor, but I don't know how to use it.
-
[SOLVED] Import .obj to my mod
> GL11.glScalef(1.0F, 1.0F, 1.0F); This does nothing. > GL11.glRotatef(0F, 0.0F, 0.0F, 0.0F); And this too.
-
[SOLVED] Translucent Block
public int getRenderBlockPass() { return 1; }
-
[SOLVED] Container not working unless you open the gui.
People recommended S35PacketUpdateTileEntity. Look at TileEntityFlowerPot@getDescriptionPacket for example.
-
Is there a way to change name rendering?
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.
-
[SOLVED] Import .obj to my mod
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.
-
[1.7.10] feed player
http://up42.ru/u/p/2014-10-10_09.29.27.png[/img]
-
Is there a way to change name rendering?
@SubscribeEvent public void getName(PlayerEvent.NameFormat e) {} @SubscribeEvent public void renderNamePlate(RenderLivingEvent.Specials.Pre e) {}
-
[1.7.10] feed player
Ctrl+click on addStats
-
Can't rune Minecraft from Eclipse!
Or downgrade to Java7.
-
Tick Handlers?
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
And use RenderGameOverlayEvent.Post And enable blending
-
Render a custom Gui Overlay like the Pumpkin Blur
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?
@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]
U do it wrong
-
Malformed JSON in mcmod.info
https://gist.githubusercontent.com/MultiMote/96434272a734fe5ac8e1/raw/78bbfd362a3715dab0801088b8d1f88d00a4e388/mcmod.info
-
NBT tag problems
As hugo_the_dwarf said, you forgot to add null-check for stackTagCompound.
-
Is it possible to use my minecraft account in dev workspace? [1.7.10]
Yup. Edit your run configuration: add --username [email protected] --pass yourpass to launch parameters.
-
Making my entity drop an item every 10 minutes?
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
Add e.crafting != null before e.crafting.getItem()
IPS spam blocked by CleanTalk.