Aground

Aground

Not enough ratings
Vehicle Upgrade Framework
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
91.913 KB
22 Oct, 2018 @ 2:26pm
1 Change Note ( view )

Subscribe to download
Vehicle Upgrade Framework

Description
THIS IS NOT A MOD! IT IS JUST A FRAMEWORK TO BE USED BY OTHER MODS!

Vehicle Upgrade Framework

This mod arose as a tool to allow me and other modders to create vehicle equipment that changes stuff beyond flight height.

Just include this mode as a dependency in your mod and do the following:

  • all vehicles that you want to be upgradeable by equipment must extend "vufb_vehicle"
  • all equipment on them that changes what they do must extend "vufb_equip"

Then you can use the tags inside vehicle equipment:

  • <statChange id="{stat_id}" value="{delta}" /> to change the stat by delta (supports "speed", "speedY", "max_weight", "flight_height", "health", "fuel"
  • <fuelChange id="{item_id}" fuel="{amount}" /> to override default fuel recipe with this (can be multiple recipes by adding multiple tags
  • <fuelChange type="{recipe_type}" /> adds all recipes of type as fuel
  • <electric /> to change the fuel type to "Power" (hides all other fuel the vehicle might have had and only displays the "Charge from batteries" option
  • <clearFuel /> drops all fuel on equip / unequip
  • <storeFuel /> stores fuel as durability on unequip and uses durabililty as fuel on equip
  • <repairChange id="{item.id}" value="{repair_value}" /> changes default repair for the new one (can be multiple elements to do multiple repairs)

For example

<item id="nuke_engine" type="equipment" slot="engine" equipOn="zeppelin" cost="3000" weight="100" efficiency="0.5" icon="nuke_engine.ico" extends="vufb_equip"> <statChange id="max_weight" value="1000" /> <statChange id="fuel" value="10000" /> <statChange id="speed" value="3" /> <statChange id="speedY" value="2" /> <fuelChange id="uranium" fuel="2500" /> <fuelChange id="coal" fuel="25" /> <storeFuel /> </item>

For example of usage, download latest version of Zeppelin mod.
1 Comments
aninus 1 Feb, 2020 @ 8:29am 
Wow