Energy: Difference bethewen 'Extract' and 'Test Extract'

Started by gustavowizard123 on

Topic category: Help with modding (Java Edition)

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Energy: Difference bethewen 'Extract' and 'Test Extract'

what 'Test Extracting' procedure do? i dont understand it

Test extracting will try to…
Mon, 08/03/2020 - 07:42

Test extracting will try to extract energy but not actually do it, just report how much it was actually able to extract.

If you directly extract say 100 and block only has 50, you can not know this without testing the extraction first.

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hum, thank you for replying,…
Tue, 08/04/2020 - 02:26

hum, thank you for replying, still i dont understand how to use it in pratic, im trying to make a energy system here, being working on cables today (quite tricky :D), its kinda working, very basic yet, could you give me maybe some examples of using both procedures on a energy system? i cant find no tutorials, videos or wikis for the energy system yet.

thanks!

Last seen on 06:33, 1. May 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hmm.Can you add a block to…
Sat, 03/20/2021 - 05:52

Hmm.Can you add a block to DO extract them?like

extract {#} energy from block at (x) (y) (z) and return amount extracted

AND this block:

transfer {#} energy from (x) (y) (z) to (x) (y) (z) and return amount transfered

PS:amount transfered should be min(amount_extracted,amount_sent)