Started by
vortexstars
on
Topic category: Help with Minecraft modding (Java Edition)
summary:
help how do I calculate if a number is greater than or equal to a percentage of another number but less than another percentage of the same number
I wanted to know if there is a way to do a procedure, like if the energy of the block in x y z is 5% of the capacity of the block in x y z energy, set the energy display to 1 if 10% set the energy display to 2, I wanted to make a system to show energy in a bar that works independently of the energy and the energy capacity of the block that was placed (it would be in the machine's Gui)