Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Suterusu

Adapter Block with Capacitor Bank

Question

I am trying to get the Adpater Block to read the RF from an Ender IO capacitor bank.  I've been able to read the "max power" (in MJ) but I cannot get the energy stored to work.  Has anyone had luck with this?  The block had 250,000RF (250 MJ stored).

 

wIlEDqS.png

Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

I am trying to get the Adpater Block to read the RF from an Ender IO capacitor bank.  I've been able to read the "max power" (in MJ) but I cannot get the energy stored to work.  Has anyone had luck with this?  The block had 250,000RF (250 MJ stored).

 

wIlEDqS.png

 

If you can post your current, if any, code and any / all error msgs you have received id be happy to help.

Link to post
Share on other sites
  • 0

There is no code for this, I am simply trying to use the Adapater Block to get the amount of power stored in a Capacitor Bank (Ender IO) using the "getEnergyStored" method.

 

It always returns 0 even though that value is not correct.

Try iterating over all of the sides. Maybe its a bug or brain fart.

-- ## where 'c' is the component
for k,v in pairs( sides ) do
  print( "side:", k, "energy:", c.getEnergyStored( v ) )
end
Link to post
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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