Jump to content

m_lugg

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by m_lugg

  1. Hi, I'm trying to get a dropped item equivalent of an IBlockState. I presumed this would be as simple as this: state.getBlock().getItemDropped(state, new Random(), 0); But that seems to ignore the block state. Why doesn't this work? Is it to do with the Random? (I wasn't sure what that was for). Thanks in advance, -Matthew
  2. Don't worry, I figured it out. Energy cables are responsible for putting the energy into the machine, not the machine itself. Thanks for all your help!
  3. Sorry for the delay in replying. I've got everything working now, thanks One last question; I'm making a block that I want to consume power. That's working fine, but the problem is if I place _ANOTHER_ block which consumes power next to it, it sees the capability and extracts energy from it. Should I remove the getCapability override, or is there another way to get around this? Thanks -Matthew
  4. That doesn't exist for me?
  5. Thanks! One quick question: How would I write the currently stored energy into NBT? I presume I would use ENERGY_CAPABILITY.writeNBT with my EnergyStorage as the first parameter; but I am confused as to what the EnumFacing is for. EDIT: After a re-read, would I be correct in saying that that can be anything, since my EnergyStorage can be used from any face?
  6. Hi, I'm making a little mod and I want to use the new Forge Energy API with it - specifically, have a block receive and use power. After a couple hours on the interwebs, I couldn't find any good explanations of how to do this (I literally just have an EnergyStorage inside of a TileEntity at the moment). I would appreciate it if anyone could explain this or even just give me some basic code to learn from. (I'm brand new to the Capabilities system too, so a quick explanation of that wouldn't go amiss.) Many thanks, -Matthew
×
×
  • Create New...

Important Information

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