public ItemTemplate(String input){
		//read the string into a template
		try {
			Scanner scan = new Scanner(input);
			image = scan.next();
			name = scan.next().replace('_', ' ');
			description = scan.next().replace('_', ' ');
			type = scan.next();
			sizeMin = scan.nextInt();
			sizeRange = scan.nextInt();
			valueMin = scan.nextInt();
			valueRange = scan.nextInt();
			scan.close();
		} catch (NoSuchElementException e){
			//bad scan, reached end of line before all parameters parsed
			corruptedTemplate = true;
			return;
		}
		//===run checks on inputs===
		//check for negatives
		if (valueMin < 0 || valueRange < 0 || sizeMin < 0 || sizeRange < 0){
			corruptedTemplate = true; return;
		}
		//check to make sure within 100x100 bounds
		if (sizeMin + sizeRange > 100){
			corruptedTemplate = true;
			return;
		}
		random = new Random();
	}