Jump to content

N1xx1

Members
  • Posts

    41
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

N1xx1's Achievements

Tree Puncher

Tree Puncher (2/8)

5

Reputation

  1. You can either use Reflections or IndustrialCraft API. RedPower has some rules about decompiling, so you should ask Eloraam before doing anything with it.
  2. Item and Block classes aren't instantiated for every item in the game or every block in the game. That's why we have ItemStacks and chunks containg an array of block ids, and that's why we have NBTTags in ItemStacks and TileEntities. If you make a variable in your Item and do something with that, you won't be able to save it and it will conflict with all other Items of the same type.
  3. http://jd.minecraftforge.net/net/minecraft/entity/player/EntityPlayer.html#playerCloakUrl
  4. You should use a custom spawning packet. I don't know what's the proper way to do it, but take a look at: cpw.mods.fml.common.registry.EntityRegistry.EntityRegistration cpw.mods.fml.common.registry.EntityRegistry.EntityRegistration.setCustomSpawning cpw.mods.fml.common.registry.EntityRegistry.doModEntityRegistration
  5. The color isn't part of the Matrix so you have to reset it manually. Add a GL11.glColor3f(1F, 1F, 1F); just before (or after) that glPopMatrix.
  6. So OpenGL works with matrix. Basically you can draw stuff and transform the matrix itself. You draw stuff using GL11.glVertex#f (where f can be either f (floats), i (ints) and d (doubles) and # can be 2, 3 or 4 (representing the number of dimensions you are working on) and other methods (GL11.glBegin and GL11.glEnd) and trasform matrix with GL11.glTranslate#f, GL11.glRotatef. You can also save your matrix to the stack in order to get back after a series of matrix transformation with GL11.glPushMatrix and GL11.glPopMatrix. Example: GL11.glPushMatrix(); //save the current matrix // Your transformation here // Your rendering here GL11.glPopMatrix(); //revert everything For each PushMatrix there must be a PopMatrix or the code will break and it'll start spamming a lot of openGL errors About Tessellator, that's just a bridge beetwen OpenGL and your code. It has some useful code (transforming quads to triangles, for instance) and it uses VetrexBuffers instead of glVertex calls. I suggest you to take a look on some openGL guides (they are universal, don't look for java specific) and at Tessellator.java itself.
  7. Yep, Universal Electricity looks a nice project. And it is open source and provide an API to developers.
  8. Well, this error means only two things: your MCP version is wrong or your Forge version is wrong. Try to replace everything in runtime directory and replace with the ones in the new MCP version zip.
  9. Well that's the same.... You have to change the name you assing depending on translated value. Ok, I think I'll make something later to show you what I mean.
  10. Wait, if it's "public static int" you can just do TileEntityMine.myinteger and get the value. Also, when you create a Gui you always have an TileEntity instance stored and a Container, so you have everything you need.
  11. You can easily do that with a new configuration. String translated = config.get("language", "myblock1", "My Block").value; So you can switch beetwen different configuration files depending on Language you choose. If you want to get current language: FMLClientHandler.instance().getClient().gameSettings.language
  12. If you want to make something like EE's PS or RP's handsaw you need a custom recipe. Take a look at IRecipe interface. If you want to make something like a lava bucket you have to set the container item in the item. I don't remember the right method, but you can see it in lava bucket declaration.
  13. You'd better use the right MCP version.
  14. Has ItemTossEvent the player who dropped it? If it has you can just put the item back to player's inventory and delete the item.
  15. You need a TileEntity to do that. Basically you have to make a simple variable like "orientation" where to store the orientation. After that you should use a ISimpleBlockRender too to change the actual block orientation depending on TileEntity data. I don't know if you can find any readytouse code, you may want to check out UE wich is public in github.
×
×
  • Create New...

Important Information

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