Started by
BlockyPenguin
on
Topic category: Help with Minecraft modding (Java Edition)
Hi!
Does anyone know how i would make a battery (item, not block) chargeable, and for use in a laser gun, which doesn't fire the battery, but completely discharges it?
Thanks,
~Blocky
Anyone?
You can try to make it with Local Variables
Hi, I've tried many forms to make that. At first I used NBT tags, but it didn't work, because it was like it wasn't the same for the two procedures. Now this days I had some ideas to make it work. So I tried with the durability system, but it didn't work again. Finally today I'll try to make lots of battery items but with different values, so when I extract energy from the Generator the battey will change to another battery but with a different value.
Other ideas I don't have, and if you try to make one, you need to have in mind that items don't store energy, so one way is with NBT tags, but you can't use them in Blocks procedures.
I hope someone has a vetter idea.