Advertisement
tomdodd4598

Untitled

Apr 29th, 2021
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #loader contenttweaker
  2.  
  3. import scripts.nc_script_addons.FuelInfoExample.FuelInfo.FuelInfo;
  4. import scripts.nc_script_addons.FuelInfoExample.ExampleAddonSetup.fuelNameSuffix;
  5. import scripts.nc_script_addons.FuelInfoExample.ExampleAddonSetup.fuelInfoList;
  6.  
  7. import mods.contenttweaker.Item;
  8. import mods.contenttweaker.VanillaFactory;
  9.  
  10. function registerFuel(info as FuelInfo) {
  11. for suffix in fuelNameSuffix {
  12. var fuel = VanillaFactory.createItem("fuel_" ~ info.name ~ suffix);
  13. fuel.register();
  14.  
  15. var depleted = VanillaFactory.createItem("depleted_fuel_" ~ info.name ~ suffix);
  16. depleted.register();
  17. }
  18. }
  19.  
  20. for info in fuelInfoList {
  21. registerFuel(info);
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement