Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

TH3Doctor_11th

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by TH3Doctor_11th

  1. Ok! ? So if I store the correct blocks in a matrix (static and final) for every configuration, would it be ok? Or is it too much? This structure in particular is a 3x3x3 ?
  2. After some trials, I found out a possible solution that I would like to share and get some feedback from both As you said, I have to recognize the unique pieces of the multiblock first. If any of them is missing, I just say "nope, no correct structure". Then, through BlockPos.getAllInBox() or something like that, I get the positions in the N x N x N, and I iterate through them (ignoring the positions of the special ones, that I asserted to be there at this stage) and check if the blocks at the corresponding locations are, for example, casings. Again, if anything is not at its place, then it's not a valid structure. Else, everything is in its place, and the structure is ready let me know
  3. Thanks for the answers @Cadiboo @jabelar So, since I wanted to use an energy containment / transfer block (I am working on a Technical Mod) in conjuction with the controller, I could start by checking if and where it is located relative to the controller itself. So, I have to do 4 conditional checks for the x and z axis, both negative and positive, and if I am planning on adding a transfer and a battery with different costs in crafting terms, i need to check separately for both. Is it correct? (I am using Structure classes, Singletons, to hold off 3D Matrixes that contain the correct order of blocks). Just another thing, would it be better to have the structure made of TEs so wherever I click I can open the future GUI of the controller following the Master-Slave principle, or should I make players click just on the controller (which will have a different texture of course) keeping the other blocks of the structure without TEs? (except the transferer / battery, which will have their own GUIs). Thanks again for both your answers!
  4. Hi all. I have some TEs ready, with blocks and everything set, and I would like to figure out how to efficiently recognize a multiblock structure with those TEs. As regards mechanics, Master-Slave is just right. But are there any best practices about finding out if a multiblock structure is valid or not? I am currently trying with the for loops for each axis, since I don't think recursion would be much better (It's not a Fluid Tank, so the TEs composing the structure could be different. I could implement recursion, but at the moment I am focusing on solving the structure recognition first). The problem is, the structure controller is not at the perfect center of the Multiblock, and as a result I have to check where the TE block is facing. I don't think this is an efficient solution, and I was hoping someone could lead me in the right direction to figure out a good way to solve this. Thanks in advance!
  5. Hi Everyone I recently got back to minecraft modding.. and last week I asked something about Techne. I am clearly making a mob, but here s a new dilemma: I would like to make it completely uncollidable. Entities and player should pass through it. I have seen that noppes, in his CustomNPCs, has done something to make it possible. But i really can't get how he does it. Is there someone who knows how to do it? Am I missing something really simple? Thanks in advance.
  6. Hi Everyone I recently got back to minecraft modding.. and last week I asked something about Techne. I am clearly making a mob, but here s a new dilemma: I would like to make it completely uncollidable. Entities and player should pass through it. I have seen that noppes, in his CustomNPCs, has done something to make it possible. But i really can't get how he does it. Is there someone who knows how to do it? Am I missing something really simple? Thanks in advance.
  7. That's why i said having no animations was normal btw, here are is code: and here are the pics: , . What I am saying is clear if you look at its left shoulder. Thanks again
  8. Hi all I am recently using Techne to create some new mobs.. I have created it, textured it, but when i try to render it in minecraft.. Well, the model appears correctly, there are no animations at the moment, everything normal, but there are some boxes of the model that in techne appear to be correctly rotated, but in game they are wrongly rotated. I was trying to remember if there was some kind of correction i had to do about angles from techne to minecraft.. And I am asking your help to remind me what the problem is Thanks in advance
  9. Hello everyone. I'm not used to create containers, and i was wondering if there's a way to set which items can be put in a slot. As an example, I was trying to create a slot which only accepts water buckets. Thanks in advance.
  10. Why am I trying to do that? Because I need a new level of authentication and I need to modify the allowUserToConnect adding a call to my method
  11. Hello everyone, I'm trying to get ServerConfigurationManager properly patched (using a ClassTransformer), but even if the class is correctly recognized by this method http://i.imgur.com/HsVBrh4.png and the patch method is called, the server does not seem to show any change. I'm also patching another method of another class (that can be found both on client and server side) and it's perfectly working so I don't understand why this isn't Emoticon unsure No matter what I change of the target method of ServerConfigurationManager, I can't see any change when recompiled. Moreover, the problem comes only when the source is recompiled, on a dev environment all gets patched. Do you have any ideas about the solution/problem source?
  12. God, I feel stupid lol . I focused on the last lines and I forgot to check the first part.. Thanks for helping, man Next time I hope I'll be more careful
  13. So, can you please have a look on these lines? I can't upload it on github for personal reasons, sorry I have put System.out.println as a sort of debug, and it prints false. I know that code isn't so good, but I'll clean it after first i need to sort the problem out If you can help me, it would be great
  14. As the title says, i'm trying to open a GuiScreen from PlayerInteractEvent. I think the problem is that event.world is WorldServer, and that it doesn't open GuiScreen beacuse this type of Gui is only client side. I perfectly know that through onBlockActivated it works, but I'm curious to know if what I'm asking is possible Thanks in advance, bros.
  15. Not asking about changin' it I fully understand, this was my last try.. You'll find it very strange, but i hate metadata. I don't know why, but I hate it. However, I have to use it.. Thanks for such a fast answer, man
  16. I asked not to say such things lel I'm asking beacuse I know it's nearly impossible, but there will be a way.. There must be a way.. How could no one think about this possibility?
  17. Hi all, guys. This is THEDoctor. I'll be straight to the point I'm currently developing a mod, that includes items that, through NBTs, gets rot or saved with items. I've successfully implemented such thing, but there's a problem.. Following the logic behind the mod, you should be able to craft, for example, a saved item through a normal item(it is going to decay but it is not rot) and salt. And for furnaces, for example, only normal meat can be cooked, and not the one decayed. I know there are and there were other topics about such question, but no one of them had an answer to solve it.. Pls, don't say things like "You can't do it" or "Change everything", beacuse it's very useless Thanks in advance
×
×
  • Create New...

Important Information

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