| 5183 | 😟 | General | Synchronous mine instruction.
Right now, the mine instruction conflicts with the default behaviour of miners componenent. For example, using this instruction in a simple, naive way results in not mining the last bit of ore. This is due to the miner component already reserving a quantity of one to drop the ore currently mined; then if mine is called while the last piece of ore is being mined, it thinks it is full.
One way to solve this issue while also making this instruction more convenient to use would be to make (a variant of) it synchronous. The success branch would only start when 1 or x amount of resource have been mined, and if needed the miner component register would be cleared. |  | 2025-03-31 21:10:43 |