module Packing
{
	imports
	{
		Base,
	}
	
	item 10pkThread
	{
		Weight			= 0.5,
		Type			= Normal,
		DisplayName		= 10 x Thread,
		DisplayCategory = Material,
		Icon			= PThread,
		WorldStaticModel= ThreadXL,
	}
	
	item 5pkThread
	{
		Weight			= 0.35,
		Type			= Normal,
		DisplayName		= 5 x Thread,
		DisplayCategory = Material,
		Icon			= PThread,
		WorldStaticModel= ThreadXL,
	}

	recipe Pack 10
	{
		destroy Thread=10,
		
		Result:10pkThread,
		OnCreate:Recipe.OnCreate.SaveUses,
		OnTest:Recipe.OnTest.IsFavorite,
		Time:75.0,
		Category:Storage,
	}
	
	recipe Unpack 10
	{
		destroy 10pkThread,
		
		Result:Thread,
		OnCreate:Recipe.OnCreate.LoadUses,
		RemoveResultItem:true,
		Time:50.0,
		Category:Storage,
	}
	
	recipe Pack 5
	{
		destroy Thread=5,
		
		Result:5pkThread,
		OnCreate:Recipe.OnCreate.SaveUses,
		OnTest:Recipe.OnTest.IsFavorite,
		Time:50.0,
		Category:Storage,
	}
	
	recipe Unpack 5
	{
		destroy 5pkThread,
		
		Result:Thread,
		OnCreate:Recipe.OnCreate.LoadUses,
		RemoveResultItem:true,
		Time:25.0,
		Category:Storage,
	}

	recipe Put Together
	{
		5pkThread=2,
		
		Result:10pkThread=1,
		OnCreate:Recipe.OnCreate.MergeUses,
		Time:30.0,
	}

	recipe Split in Two
	{
		10pkThread=1,
		
		Result:5pkThread,
		OnCreate:Recipe.OnCreate.SplitUsesInTwo,
		RemoveResultItem:true,
		Time:30.0,
	}

	model ThreadXL
	{
		mesh = WorldItems/threadXL,
		texture = WorldItems/Thread,
		scale = 1.0,
	}
}