Hi,
I am currently making a script that implements a new energy, this one is stored in batteries and can be transferred from one battery to another using an item (battery_linker)
My problem is that a battery cannot transfer its energy to two others, the new link overwrites the old one, while I used a server flag in the foreach...
There's obviously something I'm doing wrong but I can't identify what, if you have the time to guide me that would be very cool 🙂
the relevant part of the script: https://paste.denizenscript.com/View/107728
Content of Denizen Script Paste #107728: Unnamed Denizen Script Paste... pasted 2023/03/22 12:08:02 UTC-07:00, Paste length: 2883 characters across 50 lines, Content: on player places tesla_battery_wifi: - if <context.location.find_blocks_flagged[tesla_...