Jump to content

Chapi

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Chapi

  1. Thanks for the reply, was hoping that minecraft had for some reason info on which source blocks are contributing to the flowing block but guess not, found a adjacentSourceBlocks int inside the BlockDynamicLiquid but it's private and no way to modify it from outside the class and it probably doesn't serve any actual effect if changed. Was afraid I'd have to do an actual manual search but guess I'll just have to figure out a decent algorithm to do this, thanks again.
  2. Hello, I have a tileEntity which detects when a flowing liquid (non source block) is on top of it, and what I need this entity to do, is find the source block that is generating that flowing liquid and delete it. Is this possible and how would it be done? Thanks!
  3. Wow it actually was that, using the copy() on the moment I place the item fixed it >.<. Didn't know that the setInventorySlotContents placed the actual stack and not simply its information! Thank you!
  4. Hello, I'm making a furnace style tileEntity which takes the input of an item and then turns it into another or several other items, all inside a GUI. Everything works perfectly, the input gets consumed and then the outputs are placed on the output slots. But the problem comes along when the user clicks on a empty output slot, somehow making the some of the size of the ItemStacks inside the output itemstacks list become of amount 0 (ItemStack.stackSize becomes 0). I've been looking around the code and can't figure out how is this happening. Even made the output list final and also made a copy of it which is never used and they all turn 0... Here's the relevant part of the code of my tileEntity That the item.uraniumpowder2 turned into a stack size of 0 (0xitem.uraniumpowder2..) in BOTH the listOut and the aux lists! I even checked and the outputList[][] is also changed! So how the heck is this happening?
  5. Thank you! I had seen your tutorials before but never actually used them, now with the help of it I got this done
  6. Thank you, after some research I found out that same thing, that tile entities aren't automatically synced but wasn't quite sure if this was the case. Guess I'll have to write a packet handler..
  7. Hello, I'm trying to make a furnace style block with a progress bar and only thing I'm missing is updating the progress bar in the GUI. And for that I need to access a variable stored in the blocks TileEntity but the problem is that since I can't pass my blocks tilyEntity through the parameters from the getClientGuiElement when I use world.getTileEntity to pass over the tileEntity to the GUI, the world that I use right there (the one that comes in the getClientGuiElement parameters) is the client sided version of the world and when called getTileEntity it doesn't return the actual tileEntity but some other possible fake client side instance of the block which doesn't have the same variable values as the actual server side tileEntity. So basically I need to access the tileEntity from the server side from the GUI or somehow send over the value of an int into the clients GUI. How can I do this? Am I doing something wrong here?
  8. Thanks for the reply, but sadly I saw that post already and I really don't want to make models by code, that's just horrible.. EDIT: I've read that blender is possible to export models as JSON files, do you know anything about how that is done?
  9. First of all, sorry for asking this, I bet there's a million other people asking the same thing, just couldn't find a thread with an answer that suits me. So yes, basically I've been reading around and could only find half done or messy tutorials on how this is actually done. I just need someone to briefly explain me with which software are models created and how are they implemented into a mod or redirect me to a good tutorial. Thanks in advance
×
×
  • Create New...

Important Information

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