Jump to content

ItsAMysteriousYT

Members
  • Posts

    785
  • Joined

  • Last visited

Everything posted by ItsAMysteriousYT

  1. Yep And if youz write a good parser, it will be fast. Just set break; and if-stuff right and it will run fast.
  2. But wait, doing if(!world.isRemote) checks if on a client isn't it?
  3. You will have to write a Parser. Basicly a bunch of well suited if, while and for loops in which you check the function for errors and if there aren't any, then do the solving.
  4. Still does not work Crashreport: Thats the modified EventHandler code registered to MinecraftForge.EVENT_BUS
  5. Im kinda stuck making my Mod server compatible. It always crashes saying this: I tried to fix the EventHandler which is called in the erroring line 130, but it just won't work. EventHandler class: I hope someone can help me
  6. I want to create a Drawer in which you can store items, but everything i do, does not remove the two problems i have: 1: I can't click on the last six slots in the playerinventory otherwise the game crashes 2: I can only store items by shift-clicking, otherwise they disappear. Here are the classes: Mainclass: GuiHandler: TileEntity: Container: GuiContainer: I hope someone can help me im really stuck
  7. This mod is about adding all kinds of realistic stuff to Minecraft. From furniture to vehicles and many other thing. Not only decorational, but usefull. All the 3D Models are available in HD and in a minecraftlike-blocky version (Simply set it in the configscreen). It also add a humanlike playermodel (You do not have to use it, it can be turned on/off), Clothes and much much more. For more information please visit the officicial Minecraft Forum thread here: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2196915-project-best-minecraft-ever-real-life-mod-1-7-10
  8. I know that it tries to acces that slot, but the slot is in the inventory of the player and not in my custom slots anyway, ill try this guiHandlerstuff now
  9. I am stuck in working on blocks with custom containers, cuz everything works, storing items and stuff, but i can't drag and drop items and every time i click on the last six slots of the player inventory, game crashes. Java says arrayIndexOutOfBoundsException, but all values that could be causing it are either copy paste from mc (like adding playerslots to the inventory) or coded with a tutorial, i hope somebody can help me cuz it really slows down my work on the mod My Custom Container class: My Custom TileEntity class: My custom Gui class
  10. Since minecraft uses his Tessellator to render stuff, glColor4f can not be used for that. WHat you have to do is creating an instance variable of Tessellator and then calling the setColor-method like this: public void renderTileEntityAt(TileEntity te, double x, double y, double z, float scale) { Tessellator tessellator = Tessellator.instance; glPushMatrix(); tessellator.setColorRGBA(ValueRed,ValueGreen,ValueBlue,ValueAlpha); //Rest of your rendercode here glPopMatrix(); }
  11. Rendering the item works, My problem is, that i have to render it different depending on its world. So if it has no world, it has to excecute some other render options
  12. Hey there, i was tryying to find out if a tileEntity is the one i create to render a 3d item in the playerinventory or if it is the one from a block in the world so i tried this but it won't work: I hope somebody can help me
×
×
  • Create New...

Important Information

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