• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Restricting Fuel Types to specific workstations - possible?

poly

New member
I was wondering if a specific fuel can be restricted to a specific workbench.

For example, Wood can be used as a fuel source in the forge, campfire etc.

The 'FuelValue' in items.xml denotes a fuel type, however, can this be made specific to a particular workstation.

In my mod I have Uranium as a fuel source, but realism is lost when you can cook meat stew on a Uranium powered campfire 😁

I'd like to restrict Uranium power to the Alchemy Station.

Is there a workaround anyone can think of if this is not possible?

 
Not sure if this would work but what about making different fuel categories?

Right now, this is in the campfire block.xml code

    <property class="Workstation">
        <property name="Modules" value="tools,output,fuel,input"/>




Is it possible to have fuel2, fuel3 values for modules? 

 
I was wondering if a specific fuel can be restricted to a specific workbench.

For example, Wood can be used as a fuel source in the forge, campfire etc.

The 'FuelValue' in items.xml denotes a fuel type, however, can this be made specific to a particular workstation.

In my mod I have Uranium as a fuel source, but realism is lost when you can cook meat stew on a Uranium powered campfire 😁

I'd like to restrict Uranium power to the Alchemy Station.

Is there a workaround anyone can think of if this is not possible?


Hi Poly

You can make a new windowFuel in the windows.xml of your mod and you only change the name (windowFuelAS) for your alchemy station, you must also change the name resourceWood to resourceUranium or whatever you have named it (There is also this in the code of windowFuelAS) .
Then in the xui.xml of your alchemy station change the name to windowFuelAS instead of windowFuel, it should work for you.
Regards

 
Hi Poly

You can make a new windowFuel in the windows.xml of your mod and you only change the name (windowFuelAS) for your alchemy station, you must also change the name resourceWood to resourceUranium or whatever you have named it (There is also this in the code of windowFuelAS) .
Then in the xui.xml of your alchemy station change the name to windowFuelAS instead of windowFuel, it should work for you.
Regards
This is the setup I use currently, however, by making Uranium a fuel type is also available as a fuel in the forge, campfire too - not specific to a workstation

 
Back
Top