An example is this:
In the player's inventory, a stack of 28 items.
I will call it this:
Code: Select all
local factor = ("item name"). value (how much is in the stack)
And I need to do the following in code:
Code: Select all
mining_speed = 2 * 0.05 * factor,
mining_power = 6 * 0.05 * factor,
Tell me pls - how I can implement this in my code.
Sorry for my English