private static void CreateBlockStackSizeMaps() { var blockItems = Item.AllItems.Where(x => x is BlockItem).Cast <BlockItem>().ToList(); // Excavator var excavatorMap = new StackLimitTypeRestriction(true, 30); excavatorMap.AddListRestriction(blockItems.GetItemsByBlockAttribute <Diggable>(), 20); excavatorMap.AddListRestriction(blockItems.GetItemsByBlockAttribute <Minable>(), 80); AdvancedVehicleStackSizeMap.Add(typeof(ExcavatorObject), excavatorMap); // Skidsteer (same as excavator currently) AdvancedVehicleStackSizeMap.Add(typeof(SkidSteerObject), excavatorMap); // Tractor var tractorMap = new StackLimitTypeRestriction(); tractorMap.AddListRestriction(ItemUtils.GetItemsByTag("Vegetable", "Fruit", "Seeds", "Raw Food", "Grain", "NaturalFiber"), 500); AdvancedVehicleStackSizeMap.Add(typeof(SteamTractorObject), tractorMap); }