You can add fuel to your excavator by opening its Options GUI, clicking the furnace, and dropping your fuel in the middle slot.
Fuel sources (currently coal or charcoal), can add different amounts of fuel to an excavator
For example, coal is currently set to add 2 to the fuel of the excavator, while charcoal is set to add 1.
These values are changeable in the on load structure of the script.
There are 2 new options available: have-fuel-on-get and use-fuel
have-fuel-on-get is how much fuel an excavator should have in it after using the /excavator get command. This option must be kept as an integer.
use-fuel is as simple as it sounds. If set to true, the excavator will burn through its fuel and require more to be added to keep it going. If set to false, the excavator will still burn through its fuel until its left at 1, and then continuously add to itself, never running out.
Fuel Sources:
Currently there are only 2 valid fuel sources
Coal - has a fuel amount of 2
Charcoal - has a fuel amount of 1
The fuel amount is the number of blocks the excavator will be able to mine using 1 of the respective fuel source
For example, if 1 coal is dropped in the GUI, the excavator will be able to mine 2 blocks before it needs to be topped up again.
As stated above, the fuel amounts for these fuel sources can be changed in the on load structure.
The Fuel GUI:
The Fuel GUI is simple, but the following is a guide if its confusing to you at first:
The middle slot is where you drop your fuel sources
You can right click to add only 1, or left click to add the whole stack (of your cursor slot)
Additionally, you can shift + left click to add the whole clicked stack.
Other changes:
Made changes to the excavator loop to accomodate for the fuel addition. Now loops according to fuel instead of whether its alive or not.
Changed the placement of some items in the Options GUI.
Added comments to parts which should have had them already. The options and on load structures now have brief descriptions of each part.