EnderIO Capacitors with NBT Tag Preservation.

How did you use MineTweaker? Discuss your experience here! You can post your MineTweaker-enabled modpack here, too.

EnderIO Capacitors with NBT Tag Preservation.

Postby CyricV » Sun Mar 13, 2016 4:32 am

This took me a while to figure out, sorry if this is known information but I found a way to pull specific NBT tags from crafting inputs and use them as ints or strings in the output. My first use of this was for the Ender IO Capacitor Bank which stores it's RF as an NBT Tag.

: [Select all] [/] [] ()
  1. # Capacitor Bank
  2. recipes.remove(capacitorBank);
  3. recipes.addShaped(capacitorBank, [
  4.     [steelIngot,            doubleLayerCapacitor,               steelIngot],
  5.     [doubleLayerCapacitor,  capacitorBankBasic.marked("inp"),   doubleLayerCapacitor],
  6.     [steelIngot,            doubleLayerCapacitor,               steelIngot]],
  7.     function(output, inputs, crafting) {
  8.         return output.withTag({type: "ACTIVATED", storedEnergyRF: inputs.inp.tag.storedEnergyRF});
  9.     }
  10. );
GeSHi © Codebox Plus
Posts: 9
Joined: Sun Jan 31, 2016 12:23 am

Return to Usage Discussions

Who is online

Users browsing this forum: No registered users and 0 guests