Posted August 2, 20196 yr Hello, so i've recently made a plasma capability and would like there to be a block to relay, or transfer, plasma. The problem is, whenever i try to use the block to transfer plasma between multiple relay blocks, it will only transfer plasma to one. I think this is because the second plasma relay is also transfering back to the previous relay. Here is my sendPlasma method: private void sendPlasma() { if (plasmaStorage.getPlasmaStored() > 0) { for (EnumFacing facing : EnumFacing.VALUES) { TileEntity tileEntity = world.getTileEntity(pos.offset(facing)); if (tileEntity != null && tileEntity.hasCapability(CapabilityPlasma.PLASMA, facing.getOpposite())) { IPlasmaStorage handler = tileEntity.getCapability(CapabilityPlasma.PLASMA, facing.getOpposite()); if (handler != null && handler.canReceive()) { int accepted = handler.receivePlasma(plasmaStorage.getPlasmaStored(), false); plasmaStorage.consumePlasma(accepted); if (plasmaStorage.getPlasmaStored() <= 0) { break; } } } } markDirty(); } } Is there any way i can make this directional? I have tried to limit the capability to EnumFacing.NORTH, but it only works for one direction. Any ideas why? Any help would be greatly appreciated. Thanks.
August 2, 20196 yr 2 hours ago, TesterTesting135 said: break; WE FOUND ONE, ABORT THE SEARCH, SEND EVERYTHING THERE. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
August 3, 20196 yr You break out of the loop. It terminates. No more looking at other directions. Everything's over. Go home. Return to when ye came. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.