﻿// Any part could be UtilityWeight. 
// Just make sure its name start with UtilityWeight_ 
// and you remove all unnecesary modules.
// There is example for stock Large Ore Tank

+PART[LargeTank]:FOR[UtilityWeight]
{
	@name = UtilityWeight_OreTank
	@TechRequired = start
	@entryCost = 1000
	@cost = 0
	@mass = 0
	@category = Utility
	@title = Utility Weight
	@description = Utility Weight

	@rescaleFactor = 0.5
	@node_attach = 0,0,1.2,  0,0,-1,  1
	%attachRules = 1,0,1,1,0 // attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision

	-node_stack_top = placeholder
	-node_stack_bottom = placeholder
	 
	node_stack_top    = 0.0, 0.9, 0.0, 0.0, 1.0, 0.0, 1
	node_stack_bottom = 0.0, -0.9, 0.0, 0.0, -1.0, 0.0, 1

	-RESOURCE[Ore]{}
	-MODULE[ModuleFuelJettison]{}
}



// optional patch for size switching

@PART[UtilityWeight_OreTank]:NEEDS[B9PartSwitch]:AFTER[UtilityWeight]
{
	MODULE
	{
		name = ModuleB9PartSwitch

		switcherDescription = Size 
		switcherDescriptionPlural = Sizes

		SUBTYPE
		{
			name = 0.625m
			primaryColor = grey
			secondaryColor = grey
			transform = ksp_l_resourceContainer_fbx
			TRANSFORM 
			{
				name = ksp_l_resourceContainer_fbx
				scaleOffset = 0.5
			}
			NODE
			{
				name = top
				position = 0.0, 0.45, 0.0
			}
			NODE
			{
				name = bottom
				position = 0.0, -0.45, 0.0
			}
		}

		SUBTYPE
		{
			name = 1.25m
			primaryColor = black
			secondaryColor = white
			defaultSubtypePriority = 1  // The unlocked subtype with the highest priority will be the default. The default value for this is zero.
			transform = ksp_l_resourceContainer_fbx
			NODE
			{
				name = top
				position = 0.0, 0.9, 0.0
			}
			NODE
			{
				name = bottom
				position = 0.0, -0.9, 0.0
			}
		}

		SUBTYPE
		{
			name = 2.5m
			primaryColor = Orange
			secondaryColor = Orange
			transform = ksp_l_resourceContainer_fbx
			TRANSFORM 
			{
				name = ksp_l_resourceContainer_fbx
				scaleOffset = 2
			}
			NODE
			{
				name = top
				position = 0.0, 1.8, 0.0
			}
			NODE
			{
				name = bottom
				position = 0.0, -1.8, 0.0
			}
		}
	}
}