Jump to content

Nicba1010

Forge Modder
  • Posts

    90
  • Joined

  • Last visited

Everything posted by Nicba1010

  1. This is the way to register it NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GUIHandler());
  2. Thx shield and grey. Yes shield that is what I meant TGG thx for that piece, it was easy to figure out once I had an example. Just so others can see: private boolean isDoorOpen(World world, int x, int y, int z) { int metadata = world.getBlockMetadata(x, y, z); return (metadata & 4) != 0; }
  3. I don't know, try putting the Chat color signs maybe.
  4. Hint: events!
  5. Hey guys I have only one question. Since I have never worked with bitwise operators I can't figure is out myself. How would I check if a door is open? Sincerely, Roberto
  6. Do you have a gui handler?
  7. I don't have the answer to your question, but please update to 1.7. Packet Handling is much simpler!
  8. All I can tell you is the same thing I did with my custom door! N steps! 1: copy the whole BlockStairClass. 2: deobfuscate it as much as you can if it's not already deobfuscated 3: do one and 2 for all classes it needs to function properly ( for me it was ItemDoor) 4: repeat 1 and 2 for those classes (if any) 5: remove unnecessary things 6: profit???
  9. I'm a fucking idiot! Didn't make the door item -.-
  10. Oh and @Mod.EventHandler or @EventHandler is for registering your events so forge can find them!
  11. Nope not mine But very good, I bookmarked them when I was using them, so I wanted to share them with you. I'm not an ultra advanced user, but if you need help with something you can always pm me. I'm more than good with Java. 1st place in a Balkan(5 country (I think)) competition.
  12. oh and btw http://mousetutorial.co.nf
  13. Ok, FIRST, you NEED to know at least basic Java: by that I mean, OOP, and ,well OOP. Then, work through ALL of the tutorials, doesn't matter if you will not make a custom chest! Learn it you might need it. And if I may suggest learning NBT, you're gonna need it. Good luck!
  14. So I've wanted to make a new door, with a code gui. I have a problem obviously. BlockBase: BlockContainerBase: BlockCodeDoor: So, the problem is that the block is displaying invisible, and does not have a 2 high bounding box; P.S. I have no texture, but it should have that pretty (khm sarcasm) pink-black missing texture. P.P.S. As you see I've taken my time to deobf the code so you can read it easier!
  15. Please post the code of the TE & the Recipe Handler. Did you make a custom handler that will not consume the bucket.
  16. As the others said, no stacktrace=no help
  17. All variables in your class will have 2 instances: sevrer, and client side, if you set it manually it will be the same, but all stuff you do (like smelt) are done server side (no cheating), so you need to sync the 2 vars when you change them servervar-->clientvar.
  18. Bump. I really need help on this.
  19. So, I have 2 questions. 1. How would I draw a tool-tip when I hover over Certain coordinates on the GUI 2. Is there an interface I can implement for liquid storage in my tile entity This is my current code so you can see how am I doing it, if you see stuff that needs to be optimized please tell me, I would greatly appreciate it. Tile Entity GUI
  20. PS I did this if (!worldObj.isRemote) { if (oldSteam!= steam) { sync(); oldSteam= steam; } }
  21. Oh my God, it works, and I've learnt something. Thanks so much for the help!
  22. I was wondering WTH does that mean It works thanks. So how often should i call it, i suppose like when the server and client steam values dont match but how would i go about doing that.
  23. Ok, so ondata and getdescpacket get called on world load but after that never again.
  24. Yeah all Override tags good all methods overriden(the ones that are in the superclass). Fixed the typo my bad ; But still doesnt explain why the readNbt doesnnt get called, but the write does, i put some debug prints there;
×
×
  • Create New...

Important Information

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