Short-cut for changing charges for EU-compatible items
3TUSK opened this issue ยท 0 comments
Quoted from #8 (comment)
Can you do something similar so that you can conveniently change the charge level and energy of items through scripts? At the moment, all this data is recorded in NBT, and if this is the charge level, in addition to NBT, we also need to edit the damage of the item so that it is displayed visually (for example, if it is a drill, or an energy crystal).
I think it should work like this:
<myic2item>.ic2Charge = 1000000; // set item charge (nbt + damage) print("item: " ~ <myic2item>.ic2Charge); // return item charge print("item: " ~ <myic2item>.ic2MaxCharge); // return item max charge
<myic2item>.ic2Enegy = 4000000; // set item energy (ntb) print("item: " ~ <myic2item>.ic2Enegy); // return item energy print("item: " ~ <myic2item>.ic2MaxEnegy); // return item max energy