Topic category: Help with MCreator software
How would one go about getting a single int value of all things in a inventory or gui? Let's say I want to count how many "powerstones" are in my inventory, as of right now I'm using "in inventory tick" to set my values but that only supports 1 item and 1 number from that item "when in inventory tick add 40 to int power" etc but this won't work if I where to try addition that would only result in a timer that constantly adding 40 to that int value per tick.
Any idea on how to remake this system to allow me to use addition when having more than one "powersone"? to clarify 1 powersone = 40, and another one could have the value 30 would then be 70 right? so how would I implement a system that scans for these powerstones and then combinds their different powerlevels to one int value?
I also made a system that Check each slot individually for a certain powerstones but that's not optimal since that would make adding new items harder and I also tried using local variables for each slot so that first you set the local variable based on what items is in that slot and then at the ad settinf the global variable to all the local added up into one but the issue with this is still that it takes a lot of effort to just add a new powerstone and there has to be a better way.
bump
bump 2 electric boogaloo
bump?
bump
bump 34, bump in space