Jump to content

ss7

Forge Modder
  • Posts

    189
  • Joined

  • Last visited

Everything posted by ss7

  1. Hello, I have a few problems and questions for my entity. 1. I've got a entity class, but i don't know if i should extend EntityLiving or just Entity. 2. Every time i spawn my entity the game crashes with a NullPointerException i think it has something to do with the entity health, but getMaxHealth does no longer exists: http://gw.minecraftforge.net/bewF 3. I don't know how to render my entity, cause there are only tutorial for 1.5 and they don't work for 1.6. 4. Are Buildcraft engines only a block and a entity that moves back and forth? Thank you! ss7
  2. ss7

    NBT not saving

    Hello, But that block has no GUI! It only has a TESR that renders a label over the block. ss7
  3. ss7

    NBT not saving

    Hello, But i don't need that for my blocks with a GUI. I can just do it with updateProgressBar. But my battery has no Container, so i can't do that. ss7
  4. Hello, No, it's not bigger than 1x1x1, but i will try your method anyway. ss7
  5. ss7

    NBT not saving

    Hello, Is there a better way to do this? ss7
  6. Hello, Oh, i noticed that it only disappears when i'm at a specific location and use the shift-key. And entites only appear when i look at a specific location. ss7
  7. Hello, I've got a TESR, but when i look far away from the block it disappears. The same with entities. ss7
  8. ss7

    NBT not saving

    Hello, Thank you, that works perfectly. But with the TESR i've got that code in the TileEntity, but it's a little bit buggy: @Override public Packet getDescriptionPacket() { System.out.println("getDescriptionPacket"); NBTTagCompound tag = new NBTTagCompound(); writeToNBT(tag); return new Packet132TileEntityData(xCoord, yCoord, zCoord, 1, tag); } @Override public void onDataPacket(INetworkManager net, Packet132TileEntityData pkt) { System.out.println("onDataPacket"); readFromNBT(pkt.customParam1); } ss7
  9. ss7

    NBT not saving

    Hello, Oh sorry, i missed that updateProgressBar thingy. But how should i do this with my other block, it has a TESR that renders the power on top of the block? And when i place one machine and destroy it and place another machine it crashes with a ClassCastException. It's because the TileEntity still exist, but i made a tileentity = null in the breakBlock method. ss7
  10. ss7

    NBT not saving

    Hello, Thank you very much! One of my machines is now saving the power, but it looks like the others are saving, but the power is not displayed at the client until i give the machine more power. Then the machine updates and shows even the saved power. Do i need to send packets to update the gui of the machine? ss7
  11. Hello, My problem is, that my values that are stored in nbt data are not saving. I need to save the power of my machines, but every time i close minecraft and restart it, the power is 0. Here is my code: http://gw.minecraftforge.net/bDuT And my updateEntity code if it has something to do with that: http://gw.minecraftforge.net/zbSV And no, my vars are not static. ss7
  12. Hello, I think i can help you with that! You need a class with this in it: http://gw.minecraftforge.net/UmGE And a TESR (TileEntitySpecialRenderer, you can google for tutorial for this) with this in it: http://gw.minecraftforge.net/cqRO I this was helpful, please give me a thanks! ss7
  13. Hello, I really don't know what i should do next. ss7
  14. Hello, Here is my code: http://gw.minecraftforge.net/UF28 BTW: Now it burns, but the stack size is not decreased. ss7
  15. Hello, This should also work: @Override public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) { if (tickEnd) { if(kb.keyCode == Key.KEY_0) //OR WHATEVER KEY YOU LIKE { //DO SOMETHING } } } ss7
  16. Hello, With burn, i mean that the item is consumed and the generator starts to generate power. With progress bar code i mean this in updateEntity(): if (progressticks == 10) { progressticks = 0; if (progress != 0) { progress--; power++; } } ss7
  17. Hello, Oh, sorry for that, my mistake. My updateProgressBar, etc... code: http://gw.minecraftforge.net/U7Fz So can i remove my progress bar code in the updateEntity() method now? EDIT: When i check for isRemote == false, it does nothing. I doesn't even burn. ss7
  18. Hello, if (worldObj.isRemote) { if (inventory[0] != null && progress == 0) { if (inventory[0].stackSize > 1) { inventory[0].stackSize--; } if (inventory[0].stackSize == 0) { inventory[0] = null; } progress = 13; power++; } } ss7
  19. Hello, This could help you (not tested) http://www.minecraftforum.net/topic/1501062-forge-keybinding-help/#entry22666285 ss7
  20. Hello, The isRemote does nothing :'(. And i don't know what methods in ContainerFurnace are for the progress bar. There are so many! ss7
  21. Hello, Because when i put in a item in the generator, it burns down and creates power. But when i put a item in, it doesn't decrease the stack size, so the item burns forever. And when i take the item out and right-click with it, it's gone! And i thought this has something to do with desync. ss7
  22. ss7

    TESR Models

    Hello, Sorry, but i have absolutely no idea how i can make connected textures with glRotatef(). I can make connected textures for 1 connection, but not for 4. Here is my old code: http://gw.minecraftforge.net/YZhX And here the new code: http://gw.minecraftforge.net/alc8 ss7
  23. Hello, I don't really understand you. Where should i do the check if the stack size is 0? Sorry i'm bad at packets. What do you mean with logic? Heres is my (now modified) TileEntity: http://gw.minecraftforge.net/ave4 ss7
  24. ss7

    TESR Models

    Oh man! I've just made 16 models for my Cable and now i read this Thank you for the quick answer ss7
  25. ss7

    TESR Models

    Hello, I've got a question. I'm making a mod with cables, and the have got connected textures. But i need 16 different models for all connections. And mods like Applied Energistics have more than 10 blocks with connected textures. Is there a way to just rotate the block and then only need one model for 4 sides? Because i't would be a lot of work to create 16 models for each block. ss7
×
×
  • Create New...

Important Information

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