CivMC / FactoryMod

Configurable factories for automating item production - Built for Paper 1.16.5
Other
0 stars 11 forks source link

GUI display of charcoal use per recipe does not work #2

Closed wingzero54 closed 1 year ago

wingzero54 commented 2 years ago

Charcoal cost is tied in the config to factory runtime (1 charcoal per second of runtime) so the display for charcoal cost does not work and is always 0

Diet-Cola commented 2 years ago

The cause of this is due to a missing config flag

  make_diamond_sword:
    production_time: 4s
    name: Make Diamond Sword
    type: PRODUCTION
    input:
      diamond:
        material: DIAMOND
        amount: 10
    output:
      diamond_sword:
        material: DIAMOND_SWORD
        amount: 15

is a typical civclassic config example, however when we add the fuel_consumption_intervall line, as below:

  make_diamond_sword:
    production_time: 4s
    fuel_consumption_intervall: 1s
    name: Make Diamond Sword
    type: PRODUCTION
    input:
      diamond:
        material: DIAMOND
        amount: 10
    output:
      diamond_sword:
        material: DIAMOND_SWORD
        amount: 15

We get: image

wingzero54 commented 2 years ago

Due to fuel_consumption_interval being set globally on the FM config instead of being individually placed on every factory. Diet mentioned adding a bit in the charcoal display to default to the global interval if none is set on each recipe